AMENDED AND RESTATED INVESTMENT ADVISORY AGREEMENT