SECOND AMENDED AND RESTATED BROKER-DEALER AGREEMENT