MASTER ASSIGNMENT, AGREEMENT AND AMENDMENT NO. 4 TO SECOND AMENDED AND RESTATED CREDIT AGREEMENT