Ida Pro: Decompile To C ~repack~

For professional malware analysis or vulnerability research, IDA's decompiler is the most accurate. For casual reversing, Ghidra is often "good enough" and costs nothing.

Decompiled C (after pressing F5):