// // sub_180017CB0 from 0x180017cb0 to 0x180017d6f (191 bytes) // // 2 xrefs: // > sub_180017BF0 @ 0x180017c24 // > @ 0x1801f720c // // 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_180017CB0(_QWORD *a1, __int64 a2, int a3, _DWORD *a4) { int v4; // edi int v5; // ebx int v9; // eax __int64 v10; // rcx int v11; // ebx __int64 result; // rax int v13; // [rsp+40h] [rbp+8h] BYREF int v14; // [rsp+50h] [rbp+18h] BYREF v4 = 0; v5 = a3; v13 = a3; v14 = 0; for ( *a4 = 0; v13; v4 = v14 ) { if ( (unsigned int)sub_180003D30(a1[52], nullptr, 0) ) { v9 = sub_180003D30(a1[52], (float *)(a2 + 4LL * (unsigned int)(*(_DWORD *)(a1[1] + 12LL) * v4)), v5); v10 = a1[52]; v4 += v9; v11 = v5 - v9; v14 = v4; v13 = v11; sub_180003F00(v10, v9); if ( !v11 ) break; } result = sub_180017A50(a1, a2, &v13, &v14); if ( (_DWORD)result ) return result; v5 = v13; } *a4 = v4; return 0; }