// // sub_CF2C28 from 0xcf2c28 to 0xcf2c88 (96 bytes) // // 1 xrefs: // > @ 0x121dab8 // // 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_CF2C28(__int64 a1, unsigned int a2) { unsigned __int64 v2; // x2 _BOOL4 v4; // w3 v2 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(a1 + 8) >= v2 ) return (unsigned int)-1; if ( a2 == -1 ) { a2 = 0; *(_QWORD *)(a1 + 16) = v2 - 4; return a2; } v4 = *(_DWORD *)(v2 - 4) == a2; if ( *(_DWORD *)(v2 - 4) == a2 || (*(_DWORD *)(a1 + 64) & 0x10) != 0 ) { *(_QWORD *)(a1 + 16) = v2 - 4; if ( !v4 ) *(_DWORD *)(v2 - 4) = a2; } else { return (unsigned int)-1; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source