AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT Dated as of September 2, 2005, amended and restated to and including September 28, 2006