SECOND AMENDMENT AND AMENDMENT AND RESTATEMENT AGREEMENT TO FIRST LIEN CREDIT AGREEMENT