Amended and Restated Securities Purchase Agreement