// // sub_40C612 from 0x40c612 to 0x40c664 (82 bytes) // // 2 xrefs: // > GameStatsManager::tryFixPathBug @ 0x419e06 // > GameStatsManager::tryFixPathBug @ 0x419e1c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // _DWORD *__fastcall sub_40C612(_DWORD *result, _DWORD *a2) { char *v2; // r5 _DWORD *i; // r4 _DWORD *v5; // r7 int v6; // r1 int v7; // r2 _DWORD *v8; // r3 int v9; // r4 int v10; // r0 v2 = (char *)result; if ( result != a2 ) { for ( i = result + 2; i != a2; i = v5 ) { result = (_DWORD *)sub_40C45C(i, v2); v5 = i + 2; if ( result ) { v6 = *i; v7 = i[1]; v8 = i + 2; v9 = ((char *)i - v2) >> 3; while ( v9 > 0 ) { v10 = *(v8 - 4); --v9; v8 -= 2; *v8 = v10; result = (_DWORD *)*(v8 - 1); v8[1] = result; } *(_DWORD *)v2 = v6; *((_DWORD *)v2 + 1) = v7; } else { result = (_DWORD *)sub_40C5A0(i); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source