// // sub_1004A8118 from 0x1004a8118 to 0x1004a823c (292 bytes) // // 2 xrefs: // > FMOD::DSP::getParameterData @ 0x1004869d8 // > sub_1005086F0 @ 0x10050880c // // 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_1004A8118(__int64 a1, unsigned int a2, _QWORD *a3, _DWORD *a4, __int64 a5, __int64 a6) { __int64 v6; // x8 __int64 (__fastcall *v7)(__int64); // x9 char *v12; // x23 __int64 result; // x0 char v14; // [xsp+18h] [xbp-58h] BYREF if ( (a2 & 0x80000000) != 0 ) return 31; v6 = *(_QWORD *)(a1 + 232); if ( !v6 || *(_DWORD *)(v6 + 96) <= (signed int)a2 ) return 31; v7 = *(__int64 (__fastcall **)(__int64))(v6 + 168); if ( !v7 ) return 68; if ( **(_DWORD **)(*(_QWORD *)(v6 + 104) + 8LL * a2) != 3 ) return 31; *(_QWORD *)(a1 + 176) = a1; v14 = 0; if ( a5 || !*(_DWORD *)(a1 + 256) ) v12 = &v14; else v12 = nullptr; result = v7(a1 + 176); if ( !(_DWORD)result ) { if ( a3 ) *a3 = 0; if ( a4 ) *a4 = 0; if ( a5 ) sub_1004C6BD0(a5, v12, a6); return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source