SECOND AMENDED AND RESTATED ENGAGEMENT AGREEMENT