I follow the free software implementation of OpenRCT2 from the beggining (when it was in other repository).
And the first commits are a bunch of C files, these files has a lot of asm blocks of code inline of C, and there were a lot of C functions with automatic names.
I don't know the tool. I was trying with Ghidra and Cutter but it is not a "correct" C that it can not is compiled it.
A example of code from first commits of OpenRCT2:
// rct2: 0x00683499
void rct2_init_directories()
{
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char), "C:\\Program Files (x86)\\Infogrames\\RollerCoaster Tycoon 2");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH_SLASH, char), RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char));
strcat(RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH_SLASH, char), "\\");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_SAVED_GAMES_PATH, char), RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char));
strcat(RCT2_ADDRESS(RCT2_ADDRESS_SAVED_GAMES_PATH, char), "\\Saved Games\\");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char));
strcat(RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), "\\Scenarios\\*.SC6");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_LANDSCAPES_PATH, char), RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char));
strcat(RCT2_ADDRESS(RCT2_ADDRESS_LANDSCAPES_PATH, char), "\\Landscapes\\*.SC6");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char));
strcat(RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), "\\ObjData\\*.DAT");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), RCT2_ADDRESS(RCT2_ADDRESS_APP_PATH, char));
strcat(RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), "\\Tracks\\*.TD?");
strcpy(RCT2_ADDRESS(RCT2_ADDRESS_SAVED_GAMES_PATH_2, char), RCT2_ADDRESS(RCT2_ADDRESS_SAVED_GAMES_PATH, char));
}
// rct2: 0x00674B42
void rct2_startup_checks()
{
// check if game is already running
RCT2_CALLPROC(0x00674C0B);
}
void rct2_update()
{
__asm {
mov eax, 009DE564h
mov[eax], esp
}
if (!setjmp(_end_update_jump))
rct2_update_2();
}
void rct2_update_2()
{
int tick, tick2;
tick = timeGetTime();
RCT2_GLOBAL(0x009DE588, sint16) = tick2 = tick - RCT2_GLOBAL(0x009DE580, sint32);
if (RCT2_GLOBAL(0x009DE588, sint16) > 500)
RCT2_GLOBAL(0x009DE588, sint16) = 500;
RCT2_GLOBAL(0x009DE580, sint32) = tick;
if (RCT2_GLOBAL(0x009DEA6E, uint8) == 0)
RCT2_GLOBAL(0x009DE584, sint32) += tick2;
if (RCT2_GLOBAL(0x009DEA6E, uint8) == 0)
RCT2_GLOBAL(0x009DE584, sint32) += tick2;
if (RCT2_GLOBAL(RCT2_ADDRESS_ON_TUTORIAL, uint8) != 0)
RCT2_GLOBAL(0x009DE588, sint16) = 31;
// TODO: screenshot countdown process
// Screens
if (RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, uint8) != 0)
intro_update();
else if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & 1)
title_update();
else
game_update();
}