// // sub_1004EC600 from 0x1004ec600 to 0x1004ec6c0 (192 bytes) // // 6 xrefs: // > sub_1004EC44C @ 0x1004ec5ec // > sub_1004EC600 @ 0x1004ec6a0 // > sub_1004EDC80 @ 0x1004edce4 // > sub_1004EDD94 @ 0x1004eddf8 // > sub_1004EDEE0 @ 0x1004edf34 // > sub_1004EDEE0 @ 0x1004edf70 // // 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 // float __fastcall sub_1004EC600(__int64 a1, int a2) { int v3; // w21 float v4; // s8 __int64 v6; // x20 if ( *(int *)(a1 + 128) < 2 ) return -131.0; if ( !*(_DWORD *)(a1 + 8) ) return -131.0; v3 = *(_DWORD *)(a1 + 64); if ( v3 <= a2 ) return -131.0; if ( (a2 & 0x80000000) == 0 ) return (float)*(__int64 *)(*(_QWORD *)(a1 + 96) + 8LL * ((2 * a2) | 1)) / (float)*(int *)(*(_QWORD *)(a1 + 104) + 40LL * (unsigned int)a2 + 8); if ( v3 < 1 ) return 0.0; v6 = 0; v4 = 0.0; do { v4 = v4 + sub_1004EC600(a1, v6); v6 = (unsigned int)(v6 + 1); } while ( v3 != (_DWORD)v6 ); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source