Amended and Restated SECURITIES PURCHASE AGREEMENT