// // sub_1004B9194 from 0x1004b9194 to 0x1004b9250 (188 bytes) // // 1 xrefs: // > sub_1004B8F48 @ 0x1004b8f84 // // 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_1004B9194(__int64 *a1) { __int64 v2; // x20 __int64 result; // x0 int v4; // w10 int v5; // w9 int v6; // w8 int v7; // w2 int v8; // w8 int v9; // [xsp+Ch] [xbp-14h] BYREF v2 = *a1; v9 = 0; result = sub_1004B5828(&v9); if ( !(_DWORD)result ) { v4 = *(_DWORD *)(v2 + 16); v5 = v9 - *(_DWORD *)(v2 + 12); *(_DWORD *)(v2 + 12) = v9; if ( v5 <= 1000 ) v6 = v5; else v6 = 0; v7 = *(_DWORD *)(v2 + 4); v8 = v6 * *(_DWORD *)v2 / 1000 + *(_DWORD *)(v2 + 20); *(_DWORD *)(v2 + 20) = v8; if ( v8 - v4 >= v7 ) { result = ((__int64 (__fastcall *)(__int64 *, _QWORD))a1[1])(a1, *(_QWORD *)(v2 + 24)); if ( !(_DWORD)result ) *(_DWORD *)(v2 + 16) += *(_DWORD *)(v2 + 4); } else { sub_1004B586C(*(_DWORD *)(v2 + 8)); return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source