// // sub_CA5088 from 0xca5088 to 0xca50e4 (92 bytes) // // 4 xrefs: // > sub_C998E4 @ 0xc99b24 // > sub_CA0328 @ 0xca0830 // > sub_CA0328 @ 0xca09f0 // > sub_CA1168 @ 0xca1824 // // 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_CA5088(__int64 a1, int a2) { __int64 v2; // x2 __int64 v3; // x4 int v4; // w3 v2 = *(_QWORD *)(a1 + 48); if ( !a2 ) return 1; v3 = *(_QWORD *)(v2 + 8); if ( !*(_QWORD *)(v3 + 144) ) return 1; v4 = *(_DWORD *)(a1 + 344); if ( v4 <= 0 ) return sub_CB54BC(v3, *(unsigned int *)(a1 + 348), v2 + 536); else return sub_CB54BC(v3, (unsigned int)(a2 * (v4 - *(_DWORD *)(a1 + 340)) / v4 + *(_DWORD *)(a1 + 348)), v2 + 536); }
GD Web Decomp Icon

GD Web Decomp

Raw Source