// // sub_1004A3074 from 0x1004a3074 to 0x1004a3154 (224 bytes) // // 6 xrefs: // > sub_100468BBC @ 0x100468ce4 // > sub_10046C840 @ 0x10046c998 // > sub_10046EE84 @ 0x10046efb8 // > sub_10047DE80 @ 0x10047dfa8 // > sub_10048454C @ 0x100484674 // > sub_1004B7A3C @ 0x1004b7c30 // // 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_1004A3074(__int64 a1, __int64 a2, __int64 a3, __int64 a4) { int v5; // w8 __int64 v6; // x9 int v7; // w8 unsigned int v8; // w11 __int64 v9; // x10 unsigned int *v10; // x10 unsigned int v11; // w11 char v13; // [xsp+Fh] [xbp-11h] BYREF v13 = 0; *(_WORD *)(a2 + 88) = 0; *(_WORD *)(a2 + 90) = a3; *(_DWORD *)(a2 + 44) = 0x100000; *(_DWORD *)(a1 + 60) = 0; sub_1004A3154(a2 + 8, a1, a2 + 8, a3, 0, a3, a4, &v13); v5 = *(_DWORD *)(a1 + 12); if ( *(_DWORD *)(a1 + 60) < v5 ) { if ( v5 < 1 ) { v7 = 0; } else { v6 = 0; v7 = 0; do { v8 = atomic_load((unsigned int *)(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 8 * v6) + 92LL)); v9 = *(_QWORD *)(a1 + 32); if ( (v8 & 0x40000) != 0 ) { *(_QWORD *)(v9 + 8LL * v7++) = *(_QWORD *)(v9 + 8 * v6); } else { v10 = (unsigned int *)(*(_QWORD *)(v9 + 8 * v6) + 92LL); do v11 = __ldaxr(v10); while ( __stlxr(v11 & 0xFFE7FFFF, v10) ); } ++v6; } while ( v6 < *(int *)(a1 + 12) ); } *(_DWORD *)(a1 + 12) = v7; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source