SECOND AMENDED AND RESTATED IRREVOCABLE STANDBY STOCK PURCHASE AGREEMENT (as amended through October 13, 2006)