// // sub_1004A3E48 from 0x1004a3e48 to 0x1004a3f54 (268 bytes) // // 2 xrefs: // > sub_10043E2C8 @ 0x10043e5ec // > sub_100457B78 @ 0x100457c40 // // 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_1004A3E48(__int64 a1, __int64 a2, int a3, int a4) { char v4; // w21 unsigned int *v7; // x22 __int16 v8; // w8 __int64 result; // x0 int *v10; // x8 unsigned int v11; // w8 int v12; // w21 int i; // w22 _QWORD *v14; // x8 int v15; // w9 int *v16; // [xsp+8h] [xbp-28h] BYREF v4 = a3; v7 = (unsigned int *)(a1 + 100); v8 = atomic_load((unsigned int *)(a1 + 100)); if ( (v8 & 0x100) != 0 || !a4 ) { if ( a3 ) { v12 = *(__int16 *)(a1 + 416); if ( v12 >= 1 ) { for ( i = 0; i != v12; ++i ) { v14 = *(_QWORD **)(a1 + 120); if ( i ) { v15 = i; do { v14 = (_QWORD *)*v14; --v15; } while ( v15 ); } (***(void (__fastcall ****)(_QWORD, __int64))(v14[2] + 88LL))(*(_QWORD *)(v14[2] + 88LL), a2); } } } (**(void (__fastcall ***)(__int64, __int64))a1)(a1, a2); return 0; } else { result = sub_10043E710(*(_QWORD *)(a1 + 168), &v16, 32, 1); if ( !(_DWORD)result ) { *(_BYTE *)v16 = 12; v10 = v16; *((_QWORD *)v16 + 1) = a1; *((_QWORD *)v10 + 2) = a2; *((_BYTE *)v10 + 24) = v4; *(_QWORD *)(a1 + 432) = a2; do v11 = __ldaxr(v7); while ( __stlxr(v11 | 0x800, v7) ); return sub_10043E7B4(*(_QWORD *)(a1 + 168), (__int64)v16, 1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source