// // sub_1004C5DF0 from 0x1004c5df0 to 0x1004c5eb0 (192 bytes) // // 4 xrefs: // > @ 0x100828698 // > @ 0x100828840 // > @ 0x1008289e8 // > @ 0x100828b78 // // 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_1004C5DF0(__int64 a1, int a2, __int64 **a3) { __int64 result; // x0 __int64 *v7; // x9 __int64 *v8; // x8 int v9; // w10 int v10; // [xsp+Ch] [xbp-24h] BYREF result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 232LL))(a1, &v10); if ( !(_DWORD)result ) { result = 31; if ( (a2 & 0x80000000) == 0 && a3 && v10 > a2 ) { v7 = *(__int64 **)(a1 + 248); v8 = **(__int64 ***)(a1 + 240); if ( v8 == v7 ) return 0; v9 = 0; while ( 1 ) { if ( !*(_QWORD *)(a1 + 168) || *(_DWORD *)(a1 + 192) == *((unsigned __int16 *)v8 + 24) ) { if ( v9 >= a2 ) { *a3 = v8; return 0; } ++v9; } v8 = (__int64 *)*v8; if ( v8 == v7 ) return 0; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source