// // sub_1004A7808 from 0x1004a7808 to 0x1004a7918 (272 bytes) // // 4 xrefs: // > sub_100468E48 @ 0x100468f94 // > FMOD::DSP::reset @ 0x100485ee0 // > sub_1004996A0 @ 0x100499a8c // > sub_100508FA0 @ 0x100509080 // // 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_1004A7808(__int64 a1) { __int16 v2; // w8 __int64 result; // x0 int *v4; // x1 __int64 v5; // x20 __int64 v6; // x0 int v7; // w22 __int64 v8; // x21 __int64 v9; // x8 __int64 (__fastcall *v10)(__int64); // x1 int *v11; // [xsp+8h] [xbp-28h] BYREF v2 = atomic_load((unsigned int *)(a1 + 100)); if ( (v2 & 0x100) != 0 ) { v5 = *(_QWORD *)(a1 + 168); if ( v5 ) sub_100442B5C(*(_QWORD *)(a1 + 168), 7u); v6 = *(_QWORD *)(a1 + 528); if ( v6 ) { v7 = *(unsigned __int8 *)(v6 + 1062); if ( *(_BYTE *)(v6 + 1062) ) v8 = v6 + 532; else v8 = 0; if ( *(_BYTE *)(v6 + 530) ) { *(_DWORD *)(v6 + 524) = 0; *(_WORD *)(v6 + 528) = 0; bzero((void *)v6, 0x208u); } if ( v7 ) { *(_DWORD *)(v8 + 524) = 0; *(_WORD *)(v8 + 528) = 0; bzero((void *)v8, 0x208u); } } if ( v5 ) sub_100442B7C(v5, 7u); v9 = *(_QWORD *)(a1 + 232); if ( v9 && (v10 = *(__int64 (__fastcall **)(__int64))(v9 + 64)) != nullptr ) { *(_QWORD *)(a1 + 176) = a1; return v10(a1 + 176); } else { return 0; } } else { result = sub_10043E710(*(_QWORD *)(a1 + 168), &v11, 16, 1); if ( !(_DWORD)result ) { *(_BYTE *)v11 = 17; v4 = v11; *((_QWORD *)v11 + 1) = a1; return sub_10043E7B4(*(_QWORD *)(a1 + 168), (__int64)v4, 1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source