1. Get it onto version control.
2. Make sure there is some workable strategy for deploying and testing the code.
3. Ask somebody to provide you with a list of the changes, or else try to create some kind of diff against the original version of the code. If you can see crazy stuff here then find out who did it...
4. Ask somebody what the biggest bugs are? Which things are causing clients the most problems?
5. Try to establish which convention is 'winning' in the codebase. But you might want to create a more sensible convention which will allow unit testing (start this immediately!)
6. At this point, ask if you can hire people to work on this with you as it's a big problem, and you need to free yourself up for the rewrite.
7. If that isn't possible then leave. You have done enough to make your CV better and a company which passes you something like this does not care about your career.