// // sub_1004D47F4 from 0x1004d47f4 to 0x1004d4978 (388 bytes) // // 1 xrefs: // > FMOD::System::recordStart @ 0x1004cd5ac // // 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_1004D47F4(__int64 a1, unsigned int a2, __int64 a3, char a4) { __int64 v8; // x21 char *v10; // x0 int *v11; // x24 __int64 v12; // x8 int v13; // w9 int v14; // w10 int v15; // w9 v8 = sub_1004D41B4(a1); if ( !(_DWORD)v8 ) { v8 = 31; if ( (a2 & 0x80000000) == 0 && a3 && *(_DWORD *)(a1 + 1684) > (signed int)a2 ) { if ( (*(_BYTE *)(a3 + 44) & 0x80) != 0 || !*(_DWORD *)(a3 + 68) ) { return 31; } else if ( (*(_BYTE *)(*(_QWORD *)(a1 + 1696) + 56LL * a2 + 24) & 1) != 0 ) { v8 = sub_1004CF54C(a1, a2); if ( !(_DWORD)v8 ) { v10 = (char *)sub_1004B14F8( *((__int64 **)off_1008524C8 + 54), 96, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_systemi.cpp", 5493, 0); if ( v10 ) { v11 = (int *)v10; v12 = *(_QWORD *)(a1 + 1696) + 56LL * a2; *(_DWORD *)v10 = *(_DWORD *)(v12 + 8); v10[48] = a4; *((_QWORD *)v10 + 8) = a3; v13 = (int)*(float *)(a3 + 108); v14 = *(_DWORD *)(a3 + 104); *((_DWORD *)v10 + 6) = *(_DWORD *)(a3 + 40); *((_DWORD *)v10 + 7) = v13; v15 = *(_DWORD *)(a3 + 68); *((_DWORD *)v10 + 8) = v14; *((_DWORD *)v10 + 9) = v15; *(_OWORD *)(v10 + 4) = *(_OWORD *)(v12 + 28); v8 = sub_1004B66C0(*(_QWORD *)(a1 + 1648), (__int64)v10); if ( (_DWORD)v8 ) { sub_1004B695C(*(_QWORD *)(a1 + 1648), v11); sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), v11); } else { *(_QWORD *)(*(_QWORD *)(a1 + 1696) + 56LL * a2 + 48) = v11; } } else { return 38; } } } else { return 80; } } } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source