EX-10.25.4



 Exhibit 10.25.4 

EXECUTION 
 AMENDMENT NO. 4

 TO MASTER REPURCHASE AGREEMENT 

Amendment No. 4, dated as of March 27, 2014 (this “Amendment”), between UBS REAL ESTATE SECURITIES INC. (the
“Buyer”) and LOANDEPOT.COM, LLC (the “Seller”). 
 RECITALS 

The Buyer and Seller are parties to (a) that certain Master Repurchase Agreement, dated as of March 14, 2012 (as amended from time
to time, the “Existing Repurchase Agreement”; as further amended by this Amendment, the “Repurchase Agreement”) and (b) that certain Pricing Letter, dated as of March 14, 2012 (as amended from time to
time, the “Pricing Letter”). Capitalized terms used but not otherwise defined herein shall have the meanings given to them in the Existing Repurchase Agreement. 

The Buyer and Seller have agreed, subject to the terms and conditions of this Amendment, that the Existing Repurchase Agreement be amended to
reflect certain agreed upon revisions to the terms of the Existing Repurchase Agreement. 
 Accordingly, the Buyer and Seller hereby agree,
in consideration of the mutual promises and mutual obligations set forth herein, that the Existing Repurchase Agreement is hereby amended as follows: 

SECTION 1. Definitions. Section 2 of the Existing Repurchase Agreement is hereby amended by adding the following definitions in
their proper alphabetical order: 
 “Ability to Repay Rule” shall mean 12 CFR 1026.43(c), including all applicable official
staff commentary. 
 “QM Rule” shall mean 12 CFR 1026.43(e), including all applicable official staff commentary. 

“Qualified Mortgage” shall mean a Mortgage Loan that satisfies the criteria for a “qualified mortgage” as set forth
in the QM Rule. 
 “Rebuttable Presumption Qualified Mortgage” shall mean a Qualified Mortgage with an annual percentage
rate that exceeds the average prime offer rate for a comparable mortgage loan as of the date the interest rate is set by 1.5 or more percentage points for a first-lien Mortgage Loan or by 3.5 or more percentage points for a subordinate-lien Mortgage
Loan. 
 “Safe Harbor Qualified Mortgage” shall mean a Qualified Mortgage with an annual percentage rate that does not
exceed the average prime offer rate for a comparable mortgage loan as of the date the interest rate is set by 1.5 or more percentage points for a first-lien Mortgage Loan or by 3.5 or more percentage points for a subordinate-lien Mortgage Loan. 


  
 1 








 SECTION 2. Covenants. Section 12 of the Existing Repurchase Agreement is hereby
amended by: 
 2.1 deleting subsection (c)(iii) in its entirety and replacing it with the following: 

(iii) any litigation or proceeding that is pending or threatened (a) against Seller Party in which the amount involved exceeds the
Litigation Threshold and is not covered by insurance, in which injunctive or similar relief is sought, or which, would reasonably be expected to have a Material Adverse Effect, (b) in connection with any of the Repurchase Assets, which, if
adversely determined, would reasonably be expected to have a Material Adverse Effect and (c) that questions or challenges compliance of any Mortgage Loan with the Ability to Repay Rule or QM Rule; 

2.2 adding the following subsection (dd) to the end thereof: 

(dd) QM/ATR Reporting. Seller shall deliver to Buyer, with reasonable promptness upon Buyer’s request, copies of all documentation
in connection with the underwriting and origination of any Purchased Mortgage Loan that evidences compliance with the Ability to Repay Rule and the QM Rule. 

SECTION 3. Servicing. Section 16 of the Existing Repurchase Agreement is hereby amended by deleting subsection (g) in its
entirety and replacing it with the following: 
 (g) Buyer reserves the right to appoint a successor servicer at any time to service any
Purchased Mortgage Loan (each a “Successor Servicer”) in its sole discretion. If Buyer elects to make such an appointment due to a Default or Event of Default, Seller shall be assessed all costs and expenses incurred by Buyer
associated with transferring the servicing of the Purchased Mortgage Loans to the Successor Servicer. In the event of such an appointment, Seller shall perform all acts and take all action so that any part of the Credit File and related Records held
by Seller, together with all funds in the Custodial Account and other receipts relating to such Purchased Mortgage Loan, are promptly delivered to Successor Servicer, and shall otherwise reasonably cooperate with Buyer in effectuating such transfer.
Seller shall have no claim for lost servicing income, lost profits or other damages if Buyer appoints a Successor Servicer hereunder and the servicing fee is reduced or eliminated. For the avoidance of doubt any termination of the Servicer’s
rights to service by the Buyer as a result of an Event of Default shall be deemed part of an exercise of the Buyer’s rights to cause the liquidation, termination or acceleration of this Agreement. 

  
 2 








 SECTION 4. Representations and Warranties. Schedule 1 of the Existing Repurchase Agreement
is hereby amended by: 
 4.1 deleting clauses (n) and (ccc) in their entirety and replacing them with the following, respectively: 

(n) Full Disbursement of Proceeds. The Mortgage Loan has been closed and the proceeds of the Mortgage Loan have been fully disbursed and
there is no requirement for future advances thereunder, and any and all requirements as to completion of any on-site or off-site improvement and as to disbursements of any escrow funds therefor have been complied with. All costs, fees and expenses
incurred in making or closing the Mortgage Loan and the recording of the Mortgage were paid, and the Mortgagor is not entitled to any refund of any amounts paid or due under the Mortgage Note or Mortgage. All points and fees related to each Mortgage
Loan were disclosed in writing to the Mortgagor in accordance with applicable state and federal law and regulation. No Mortgagor was charged “points and fees” (whether or not financed) in an amount that exceeds 3% of the total loan amount
(or such other applicable limits for lower balance Mortgages) as specified under 12 CFR 1026.43(e)(3), and the points and fees were calculated using the calculation required for qualified mortgages under 

12 CFR 1026.32(b) to determine compliance with applicable requirements. 

(ccc) Qualified Mortgage. Each Mortgage Loan satisfies the following criteria: (i) such Mortgage Loan is a Qualified Mortgage;
(ii) such Mortgage Loan is accurately identified in writing to Buyer as either a Safe Harbor Qualified Mortgage or a Rebuttable Presumption Qualified Mortgage; (iii) prior to the origination of such Mortgage Loan, the related originator
made a reasonable and good faith determination that the related Mortgagor would have a reasonable ability to repay such Mortgage Loan according to its terms, in accordance with, at a minimum, the eight underwriting factors set forth in 12 CFR
1026.43(c)(2); and (iv) such Mortgage Loan is supported by documentation that evidences compliance with the Ability to Repay Rule and the QM Rule. 

4.2 adding the following clause (ttt) at the end thereof: 

(ttt) Ability to Repay Determination. There is no action, suit or proceeding instituted by or against or threatened against Seller in
any federal or state court or before any commission or other regulatory body (federal, state or local, foreign or domestic) that questions or challenges the compliance of any Mortgage Loan (or the related underwriting) with the Ability to Repay Rule
or the QM Rule. 
 SECTION 5. Conditions Precedent. This Amendment shall become effective as of January 10, 2014 (the
“Amendment Effective Date”), subject to the satisfaction of the following conditions precedent: 
 5.1 Delivered
Documents. On the date hereof, the Buyer shall have received the following documents, each of which shall be satisfactory to the Buyer in form and substance: 

(a) this Amendment, executed and delivered by duly authorized officers of the Buyer and Seller; and 

(b) such other documents as the Buyer or counsel to the Buyer may reasonably request. 

  
 3 








 SECTION 6. Ratification of Agreement. As amended by this Amendment, the Existing
Repurchase Agreement is in all respects ratified and confirmed and the Existing Repurchase Agreement as so modified by this Amendment shall be read, taken, and construed as one and the same instrument. 

SECTION 7. Representations and Warranties. Seller hereby represents and warrants to the Buyer that it is in compliance with all the
terms and provisions set forth in the Repurchase Agreement on its part to be observed or performed, and that no Event of Default has occurred or is continuing, and hereby confirms and reaffirms the representations and warranties contained in
Section 11 of the Repurchase Agreement. 
 SECTION 8. Limited Effect. Except as expressly amended and modified by this
Amendment, the Existing Repurchase Agreement shall continue to be, and shall remain, in full force and effect in accordance with its terms. 

SECTION 9. Severability. Each provision and agreement herein shall be treated as separate and independent from any other provision or
agreement herein and shall be enforceable notwithstanding the unenforceability of any such other provision or agreement. 
 SECTION 10.
Counterparts. This Amendment may be executed in any number of counterparts, all of which taken together shall constitute one and the same instrument, and any of the parties hereto may execute this Amendment by signing any such counterpart.
The parties agree that this Amendment, any documents to be delivered pursuant to this Amendment and any notices hereunder may be transmitted between them by email and/or by facsimile. Delivery of an executed counterpart of a signature page of this
Amendment in Portable Document Format (PDF) or by facsimile shall be effective as delivery of a manually executed original counterpart of this Amendment. The original documents shall be promptly delivered, if requested. 

SECTION 11. GOVERNING LAW. THIS AMENDMENT AND ANY CLAIM, CONTROVERSY OR DISPUTE ARISING UNDER OR RELATED TO THIS AMENDMENT,
THE RELATIONSHIP OF THE PARTIES TO THIS AMENDMENT, AND/OR THE INTERPRETATION AND ENFORCEMENT OF THE RIGHTS AND DUTIES OF THE PARTIES TO THIS AMENDMENT SHALL BE GOVERNED BY AND CONSTRUED IN ACCORDANCE WITH THE INTERNAL LAWS AND DECISIONS OF THE STATE
OF NEW YORK, WITHOUT REGARD TO THE CHOICE OF LAW RULES THEREOF. THE PARTIES HERETO INTEND THAT THE PROVISIONS OF SECTION 5-1401 OF THE NEW YORK GENERAL OBLIGATIONS LAW SHALL APPLY TO THIS AMENDMENT. NOTWITHSTANDING ANYTHING TO THE CONTRARY, THE
EFFECTIVENESS, VALIDITY AND ENFORCEABILITY OF ELECTRONIC CONTRACTS, OTHER RECORDS, ELECTRONIC RECORDS AND ELECTRONIC SIGNATURES USED IN CONNECTION WITH ANY ELECTRONIC TRANSACTION BETWEEN BUYER AND SELLER PARTY SHALL BE GOVERNED BY E-SIGN. 

[SIGNATURE PAGE FOLLOWS] 

  
 4 








 IN WITNESS WHEREOF, the parties have caused their names to be signed hereto by their respective
officers thereunto duly authorized as of the day and year first above written. 
  

					
	UBS REAL ESTATE SECURITIES INC., as Buyer
		
	By:	 	




		 	Name:	 	Kimberly Browne
		 	Title:	 	Managing Director
		
	By:	 	




		 	Name:	 	ARI LASH
		 	Title:	 	DIRECTOR
	
	LOANDEPOT.COM, LLC, as Seller
		
	By:	 	




		 	Name:	 	John H. Lee
		 	Title:	 	CFO


 Signature Page to Amendment No. 4 to Master Repurchase Agreement