Even used cars sold by dealers are required to have a stat warranty by law. But there are some limitations to that afaik...like has to be less than 10 years old, something like 150,000km or so max on the odometer and some things aren't covered at all.

Statutory warranty is only like 3 months/5000km though. In this state anyway iirc.