AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT Dated as of March 21, 2005