THIRD AMENDED AND RESTATED NOTE FUNDING AGREEMENT Dated as of August 1, 2010 among