// // sub_77C350 from 0x77c350 to 0x77c3fc (172 bytes) // // 2 xrefs: // > sub_77C404 @ 0x77c44c // > sub_77E8CC @ 0x77e972 // // 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_77C350(_DWORD *a1, int a2) { _BYTE *v2; // r6 int v3; // r2 _BYTE *v4; // r3 int v7; // r3 int v8; // r12 _DWORD *result; // r0 v2 = (_BYTE *)a1[3]; if ( a1[1] - (int)v2 < a2 ) return nullptr; v3 = a1[2]; v4 = &v2[a2]; a1[3] = &v2[a2]; if ( (v3 & 4) != 0 && *v4 == 36 ) a1[3] = v4 + 1; if ( a2 <= 9 || memcmp(v2, "_GLOBAL_", 8u) || v2[8] != 95 && v2[8] != 46 && v2[8] != 36 || v2[9] != 78 ) { v7 = a1[5]; if ( v7 < a1[6] ) { v8 = a1[4]; a1[5] = v7 + 1; result = (_DWORD *)(12 * v7 + v8); if ( v2 != nullptr && a2 != 0 ) { if ( result ) { *result = result == nullptr; result[1] = v2; result[2] = a2; return result; } } } return nullptr; } a1[12] = a1[12] + 22 - a2; return sub_77BDE8(a1, (int)"(anonymous namespace)", 21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source