// // sub_1004FBA38 from 0x1004fba38 to 0x1004fbc00 (456 bytes) // // 1 xrefs: // > sub_1004FA970 @ 0x1004fa970 // // 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_1004FBA38(__int64 a1, __int64 a2, _QWORD *a3) { __int64 v6; // x9 int v7; // w8 _BYTE *v8; // x8 __int64 result; // x0 unsigned int *v10; // x8 unsigned int *v11; // x25 unsigned __int64 v12; // x28 __int64 v13; // x22 unsigned int v14; // w27 unsigned int v15; // w9 unsigned int *v16; // x23 __int64 v17; // x26 unsigned int v18; // w8 __int64 v19; // x23 unsigned int *v20; // x26 _DWORD *v21; // x0 v6 = *(_QWORD *)(a1 + 384); v7 = a2; if ( v6 ) v7 = *(_DWORD *)(v6 + 4LL * (int)a2); v8 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 376) + 64LL) + *(int *)(*(_QWORD *)(*(_QWORD *)(a1 + 376) + 56LL) + 4LL * v7)); if ( (*v8 & 1) == 0 ) return 0; v10 = (unsigned int *)(v8 + 8); while ( 1 ) { v11 = v10 + 1; v12 = *v10; v13 = (v12 >> 1) & 0xFFFFFF; if ( (unsigned int)v12 >> 25 == 5 ) break; if ( (unsigned int)v12 >> 25 != 4 ) goto LABEL_9; v14 = (unsigned int)v13 / 0x104; if ( (unsigned int)v13 >= 0x104 ) { if ( v14 <= 1 ) v15 = 1; else v15 = (unsigned int)v13 / 0x104; v16 = v10 + 2; v17 = 260LL * v15; do { result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, __int64, unsigned int *, _QWORD, __int64, _QWORD))(*a3 + 264LL))( a3, *(v16 - 1), 2, v16, 0, a2, 0); if ( (_DWORD)result ) return result; v16 += 65; v17 -= 260; } while ( v17 ); } LABEL_27: if ( v14 ) { if ( a3[21] ) { v21 = (_DWORD *)a3[29]; if ( !v21 ) { v21 = sub_1004B14F8( *((__int64 **)off_1008524C8 + 54), 4 * *(_DWORD *)(a1 + 24), (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_fsb5.cpp", 908, 0); a3[29] = v21; if ( !v21 ) return 38; } v21[(int)a2] = v14; } result = sub_1004C62C4((__int64)a3); if ( (_DWORD)result ) return result; } LABEL_9: v10 = (unsigned int *)((char *)v11 + v13); if ( (v12 & 1) == 0 ) return 0; } v14 = (unsigned int)v13 >> 2; if ( (unsigned int)v13 < 4 ) goto LABEL_27; if ( v14 <= 1 ) v18 = 1; else v18 = (unsigned int)v13 >> 2; v19 = 4LL * v18; v20 = v11; while ( 1 ) { result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, __int64, _QWORD, _QWORD, __int64, _QWORD))(*a3 + 264LL))( a3, *v20, 2, 0, 0, a2, 0); if ( (_DWORD)result ) return result; ++v20; v19 -= 4; if ( !v19 ) goto LABEL_27; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source