AMENDED AND RESTATED LICENSE PURCHASE AGREEMENT