// // FMOD::Sound::readData from 0x1800a90d0 to 0x1800a927e (430 bytes) // // 5 xrefs: // > FMOD_Sound_ReadData @ 0x1800c6739 // > @ 0x1801872f8 // > @ 0x18018732c // > @ 0x180194348 // > @ 0x1801fbc64 // // 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 FMOD::Sound::readData(__int64 a1, __int64 a2, unsigned int a3, __int64 a4) { int v6; // r15d unsigned int v8; // esi int v9; // ebx int v10; // ebx int v11; // ebx int v12; // eax _DWORD *v14; // [rsp+30h] [rbp-158h] BYREF __int64 v15; // [rsp+38h] [rbp-150h] BYREF _BYTE v16[256]; // [rsp+40h] [rbp-148h] BYREF v6 = a1; v15 = 0; v8 = sub_1800E1460(a1, &v14, &v15); if ( !v8 ) { if ( !v14[68] || v14[68] == 7 ) { v8 = (*(__int64 (__fastcall **)(_DWORD *, __int64, _QWORD, __int64))(*(_QWORD *)v14 + 200LL))(v14, a2, a3, a4); if ( !v8 ) goto LABEL_8; } else { v8 = 46; } } if ( *((char *)off_1801AED20 + 16) < 0 ) { v9 = sub_1800F3230(v16, 256, a2); v10 = sub_1800F2F70(&v16[v9]) + v9; v11 = sub_1800F2EF0(&v16[v10], (unsigned int)(256 - v10), a3) + v10; v12 = sub_1800F2F70(&v16[v11]); sub_1800F3060(&v16[v12 + v11], (unsigned int)(256 - (v12 + v11)), a4); sub_1800B20E0(v8, 5, v6, (unsigned int)"Sound::readData", (__int64)v16); } LABEL_8: if ( v15 ) sub_180102300(v15, 12); return v8; }