Wow, sure enough. As long as the car has <100k miles the dealer cannot sell the car “as-is” and is obligated to fix it. Print this out, roll it up real tight, and shove it up your salesman’s ass.
http://www.oag.state.ny.us/consumer/cars/usedcar_lemonlaw_brochure.pdf