SECOND AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT Dated as of May 13, 2002, amended and restated to and including September 15, 2005