// // sub_10052FD80 from 0x10052fd80 to 0x10052fe64 (228 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051f907 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:31:49 +0000 // int __fastcall sub_10052FD80(__int64 a1, __int64 a2, unsigned __int8 *a3) { _QWORD *v3; // r12 __int64 v4; // r15 _QWORD *v5; // rcx _QWORD *v6; // rax _QWORD *v7; // rcx bool v8; // zf const char *v9; // r14 int result; // eax _QWORD *v11; // rdi __int64 (__fastcall **v12)(_QWORD *, _QWORD); // rcx v3 = (_QWORD *)(a1 + 720); v4 = sub_100309350(a1 + 720, a3); if ( v4 != a1 + 728 ) { v5 = *(_QWORD **)(v4 + 8); if ( v5 ) { do { v6 = v5; v5 = (_QWORD *)*v5; } while ( v5 ); } else { v7 = (_QWORD *)v4; do { v6 = (_QWORD *)v7[2]; v8 = *v6 == (_QWORD)v7; v7 = v6; } while ( !v8 ); } if ( *v3 == v4 ) *v3 = v6; --*(_QWORD *)(a1 + 736); sub_1001454C0(*(__int64 **)(a1 + 728), (__int64 *)v4); if ( (*(_BYTE *)(v4 + 32) & 1) != 0 ) operator delete(*(void **)(v4 + 48)); operator delete((void *)v4); } if ( (*(_BYTE *)a2 & 1) != 0 ) v9 = *(const char **)(a2 + 16); else v9 = (const char *)(a2 + 1); result = atoi(v9); v11 = *(_QWORD **)(a1 + 1320); if ( result <= 0 ) { if ( !v11 ) return result; v12 = (__int64 (__fastcall **)(_QWORD *, _QWORD))(*v11 + 8LL); } else { if ( !v11 ) return result; v12 = (__int64 (__fastcall **)(_QWORD *, _QWORD))*v11; } return (*v12)(v11, (unsigned int)result); }
GD Web Decomp Icon

GD Web Decomp

Raw Source