AMENDED AND RESTATED LICENSE PURCHASE AGREEMENT by and among