// // sub_1004C24E4 from 0x1004c24e4 to 0x1004c25b4 (208 bytes) // // 1 xrefs: // > sub_100458EF0 @ 0x100458f2c // // 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_1004C24E4(__int64 a1, unsigned int *a2, int a3) { unsigned int v4; // w8 unsigned int v5; // w8 __int64 result; // x0 unsigned __int64 v7; // x9 unsigned int v8; // w10 if ( atomic_load((unsigned int *)(a1 + 272)) ) { v4 = atomic_load((unsigned int *)(a1 + 272)); if ( v4 != 7 ) return 46; } if ( !a2 ) return 31; switch ( a3 ) { case 1: v5 = (unsigned int)(float)(*(float *)(a1 + 108) * (float)((float)*(unsigned int *)(a1 + 392) / 1000.0)); goto LABEL_14; case 4: v7 = *(unsigned int *)(a1 + 392); v8 = *(_DWORD *)(a1 + 40) - 1; if ( v8 <= 4 ) v7 = (qword_10064B328[v8] * v7) >> 3; v5 = v7 * *(_DWORD *)(a1 + 104); goto LABEL_14; case 2: v5 = *(_DWORD *)(a1 + 392); LABEL_14: *a2 = v5; return 0; } result = sub_10045FE78(*(_QWORD *)(a1 + 96), a2, a3); if ( !(_DWORD)result ) return 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source