Might want to build on other people's work to save yourself some time.

Decompilation of RA2

https://github.com/r-melvin/gagarin

Static recompilation of RA2

https://github.com/sp00nznet/redalert2-recomp

We are vibecoder, we push NIH to the max.