// // sub_1004C55A8 from 0x1004c55a8 to 0x1004c5680 (216 bytes) // // 4 xrefs: // > @ 0x100828640 // > @ 0x1008287e8 // > @ 0x100828990 // > @ 0x100828b20 // // 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_1004C55A8(__int64 a1, _DWORD *a2, int a3) { float v4; // s0 __int64 v5; // x8 unsigned __int64 v6; // x9 int v7; // w8 __int64 v8; // x0 if ( !a2 ) return 31; if ( a3 != 1 ) { if ( a3 != 4 ) { if ( a3 == 2 ) { *a2 = *(_DWORD *)(a1 + 68); return 0; } v8 = *(_QWORD *)(a1 + 96); if ( v8 ) return sub_10045FABC(v8, a2, a3); return 31; } v6 = *(unsigned int *)(a1 + 68); if ( (_DWORD)v6 != -1 ) { v7 = *(_DWORD *)(a1 + 40) - 1; if ( (unsigned int)v7 <= 4 ) v6 = (qword_10064B368[v7] * v6) >> 3; *a2 = v6 * *(_DWORD *)(a1 + 104); return 0; } LABEL_17: *a2 = -1; return 0; } v4 = *(float *)(a1 + 108); if ( v4 == 0.0 ) goto LABEL_17; v5 = *(unsigned int *)(a1 + 68); if ( (_DWORD)v5 == -1 ) *a2 = -1; else *a2 = 1000 * v5 / (unsigned __int64)v4; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source