Help with resetting Mac

My mac is facing lots of problems and the only way out seems to be a factory reset. On searching through Google, the only way seems to download it again. Unfortunately my internet speeds are hilariously low and the only thing I can do is wait. Is there a way to do it without a download? Or maybe to use an already downloaded file? Please help. I have a 2013 iMac running Mavericks.