// // sub_1004B96B4 from 0x1004b96b4 to 0x1004b98a0 (492 bytes) // // 2 xrefs: // > sub_100441588 @ 0x100441658 // > sub_1004D298C @ 0x1004d2bb4 // // 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_1004B96B4(__int64 a1, int a2, _DWORD *a3, __int64 *a4) { __int64 v7; // x24 void *v8; // x22 int v9; // w8 int v10; // w9 unsigned __int64 v11; // x10 int v12; // w9 unsigned int v13; // w8 int v14; // w8 void *v16; // x0 unsigned int v17; // w23 void *v18; // x0 unsigned int v19; // w4 void *v20; // x0 if ( !a4 ) return 31; v7 = *a4; if ( *a4 ) { v8 = nullptr; if ( a3 ) goto LABEL_4; goto LABEL_12; } v16 = sub_1004B14F8( *((__int64 **)off_1008524C8 + 54), 392, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_software.cpp", 154, 0); if ( v16 ) { v8 = v16; v7 = sub_1004BDD24(); if ( a3 ) { LABEL_4: v9 = a3[2]; *(_DWORD *)(v7 + 40) = v9; v10 = a3[5]; *(_QWORD *)(v7 + 368) = 0; if ( (a2 & 0x200) != 0 ) { v17 = 0; *(_DWORD *)(v7 + 72) = v10; } else { v11 = (unsigned int)a3[6]; if ( (unsigned int)(v9 - 1) <= 4 ) v11 = (qword_10064B1F0[v9 - 1] * v11) >> 3; *(_DWORD *)(v7 + 72) = v11 * a3[3]; v12 = a3[3]; v13 = v9 - 2; if ( v13 > 3 ) v14 = 8; else v14 = dword_1006488E0[v13]; v17 = v14 * v12; if ( (unsigned int)(v14 * v12) > 8 ) { v18 = sub_1004B14F8( *((__int64 **)off_1008524C8 + 54), v17, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_software.cpp", 204, 0); *(_QWORD *)(v7 + 368) = v18; if ( !v18 ) { LABEL_26: if ( v8 ) (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v8 + 24LL))(v8, 1); return 38; } } else { *(_QWORD *)(v7 + 368) = v7 + 376; } } if ( (a2 & 0x10000000) != 0 ) { *(_QWORD *)(v7 + 352) = 0; *(_QWORD *)(v7 + 360) = 0; goto LABEL_25; } if ( (a2 & 0x80) != 0 ) v19 = 2; else v19 = 4; v20 = sub_1004B14F8( *((__int64 **)off_1008524C8 + 54), *(_DWORD *)(v7 + 72) + 2 * v17 + 16, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_output_software.cpp", 219, v19); *(_QWORD *)(v7 + 360) = v20; if ( v20 ) { *(_QWORD *)(v7 + 352) = ((unsigned __int64)v20 + v17 + 15) & 0xFFFFFFFFFFFFFFF0LL; LABEL_25: *(_DWORD *)(v7 + 40) = a3[2]; *(_DWORD *)(v7 + 68) = a3[6]; *a4 = v7; return 0; } goto LABEL_26; } LABEL_12: *a4 = v7; return 0; } return 38; }
GD Web Decomp Icon

GD Web Decomp

Raw Source