AMENDED AND RESTATED WARRANTY AND MAINTENANCE AGREEMENT