SECOND AMENDED AND RESTATED ASSET AND SECURITIES PURCHASE AGREEMENT