Chances are if it was an easy or cost effective fix the dealer would do it, detail it out , and make a profit.

I would guess their asking price plus the cost to make it pass emissions is likely more than the thing is worth.