AMENDED AND RESTATED INVESTMENT AGREEMENT