The warning lights might casued by gas tank cap
Get a second opinion on the car. If you live in California or some states, you might need to pass the emission test. If it is the catalytic converter problem, the car will typically fail the test. Then you can ask the dealer to fix it for free, because they should sale you a car who can pass the air test.