// // sub_1004B2FD8 from 0x1004b2fd8 to 0x1004b3030 (88 bytes) // // 4 xrefs: // > sub_100463FD0 @ 0x1004651ec // > sub_10046D2DC @ 0x10046d6c4 // > sub_10047BDAC @ 0x10047c21c // > sub_100481C14 @ 0x100482334 // // 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_1004B2FD8(__int64 a1, int a2) { int v2; // w8 float v3; // s0 if ( a2 <= 1 ) v2 = 1; else v2 = a2; *(_DWORD *)(a1 + 3060) = v2; v3 = (float)((float)((float)v2 + (float)v2) / 5.0) * *(float *)(a1 + 3028); if ( v3 >= 0.01 ) *(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source