What would you do if you inherited a codebase with no documentation?

Situational