// // sub_1004C2240 from 0x1004c2240 to 0x1004c22d4 (148 bytes) // // 4 xrefs: // > sub_10043FA1C @ 0x100441428 // > sub_1004546E4 @ 0x100454898 // > sub_100458AC0 @ 0x100458e08 // > sub_1004C51B4 @ 0x1004c5260 // // 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_1004C2240(__int64 a1) { __int64 v2; // x8 __int64 v3; // x20 __int64 v4; // x8 __int64 result; // x0 __int64 v6; // x0 unsigned int v7; // w8 unsigned int *v8; // x8 unsigned int v9; // w9 v2 = *(_QWORD *)(a1 + 384); if ( !v2 ) goto LABEL_10; if ( (*(_BYTE *)(a1 + 45) & 4) != 0 ) { v4 = *(unsigned int *)(v2 + 68); } else { v3 = *(unsigned int *)(a1 + 68); v4 = *(unsigned int *)(v2 + 68); if ( (unsigned int)v3 <= (unsigned int)v4 ) goto LABEL_7; } v3 = v4; LABEL_7: result = sub_1004C1EA0(a1, 0, v3, nullptr); if ( (result & 0xFFFFFFEF) != 0 ) return result; v6 = *(_QWORD *)(a1 + 384); v7 = *(_DWORD *)(v6 + 68); if ( v7 > (unsigned int)v3 ) sub_1004C45B4(v6, v3, v7 - (unsigned int)v3); LABEL_10: v8 = (unsigned int *)(a1 + 88); do v9 = __ldaxr(v8); while ( __stlxr(v9 & 0xFFFFFFEF, v8) ); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source