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