// // sub_C150B4 from 0xc150b4 to 0xc151a8 (244 bytes) // // 2 xrefs: // > sub_C14E0C @ 0xc14ec8 // > sub_C14E0C @ 0xc14ed4 // // 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_C150B4(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, _DWORD *a6, int a7) { __int64 v7; // x20 unsigned int v9; // w4 __int64 v12; // x1 __int64 v13; // x1 unsigned int v14; // w6 unsigned int v15; // w19 __int64 result; // x0 unsigned int v17; // w1 unsigned int v18; // w19 int v19; // [xsp+48h] [xbp+48h] v7 = *(_QWORD *)(a1 + 600); v9 = *(_DWORD *)(v7 + 40); if ( v9 ) { v12 = *(_QWORD *)(v7 + 24); } else { v19 = a7; v12 = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(a1 + 8) + 56LL))( a1, *(_QWORD *)(v7 + 16), *(unsigned int *)(v7 + 36), *(unsigned int *)(v7 + 32), 0); v9 = *(_DWORD *)(v7 + 40); *(_QWORD *)(v7 + 24) = v12; a7 = v19; } v13 = v12 + 8LL * v9; v14 = a7 - *a6; v15 = *(_DWORD *)(v7 + 32) - v9; if ( v14 > *(_DWORD *)(a1 + 140) - *(_DWORD *)(v7 + 36) ) v14 = *(_DWORD *)(a1 + 140) - *(_DWORD *)(v7 + 36); if ( v14 <= v15 ) v15 = v14; (*(void (__fastcall **)(__int64, __int64, __int64, _QWORD))(*(_QWORD *)(a1 + 656) + 8LL))( a1, v13, a5 + 8LL * (unsigned int)*a6, v15); *a6 += v15; result = *(unsigned int *)(v7 + 40); v17 = *(_DWORD *)(v7 + 32); v18 = v15 + result; *(_DWORD *)(v7 + 40) = v18; if ( v18 >= v17 ) { result = *(unsigned int *)(v7 + 36); *(_DWORD *)(v7 + 40) = 0; *(_DWORD *)(v7 + 36) = result + v17; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source