Amended and restated SECURITIES PURCHASE AGREEMENT