// // sub_8C9C8 from 0x8c9c8 to 0x8ca58 (144 bytes) // // 3 xrefs: // > sub_8D2F8 @ 0x8d450 // > sub_8D6F8 @ 0x8e08c // > sub_8D6F8 @ 0x8e1cc // // 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 // __int64 __fastcall sub_8C9C8(__int64 *a1) { __int64 v1; // x8 __int64 v2; // x11 int v3; // w9 int v4; // w10 bool v5; // zf __int64 v6; // x11 int v7; // w10 __int64 v8; // x11 int v9; // w10 if ( !*((_BYTE *)a1 + 261) ) { v2 = *a1; v1 = a1[1]; v3 = *((_DWORD *)a1 + 64); v4 = *(_DWORD *)(v1 + 64); if ( v4 >= v3 ) { if ( v4 <= v3 ) goto LABEL_12; v5 = (*(_WORD *)(v2 + 3046) & 0x20) == 0; v8 = 244; if ( !v5 ) v8 = 260; v9 = v4 - 4 * *((unsigned __int8 *)a1 + v8); *(_DWORD *)(v1 + 64) = v9; if ( v9 >= v3 ) goto LABEL_12; } else { v5 = (*(_WORD *)(v2 + 3046) & 0x20) == 0; v6 = 244; if ( !v5 ) v6 = 260; v7 = v4 + 4 * *((unsigned __int8 *)a1 + v6); *(_DWORD *)(v1 + 64) = v7; if ( v7 < v3 ) goto LABEL_12; } *(_DWORD *)(v1 + 64) = v3; *((_BYTE *)a1 + 261) = 1; LABEL_12: *(_BYTE *)(v1 + 60) |= 1u; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source