AMENDED AND RESTATED GUARANTY AND SECURITY AGREEMENT (CONTINUING/UNLIMITED)