RESTATED UNDERWRITING, CONTINUING INDEMNITY, AND SECURITY AGREEMENT