AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT (the “Agreement”) between BANK OF AMERICA, N.A. (“Buyer”) and LOANDEPOT.COM, LLC (“Seller”) dated as of July 17, 2015