How is a code audit different from system modernization?
An audit is diagnosis: it changes nothing in the code and ends with a list of risks and a plan. Modernization is change: refactoring, platform upgrades, replacing parts of the system, data migration. The audit comes first, and its results decide whether modernization is needed and how much.
More in the guide to software code audits.