// // sub_1004CF6F8 from 0x1004cf6f8 to 0x1004cf868 (368 bytes) // // 1 xrefs: // > sub_100448DD0 @ 0x100448ed4 // // 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_1004CF6F8(__int64 a1, _QWORD *a2) { __int64 v4; // x22 __int64 v5; // x23 _QWORD *v6; // x0 _QWORD *v7; // x21 unsigned __int64 v8; // x8 unsigned __int64 *v9; // x9 __int64 result; // x0 int v11; // w8 int v12; // w9 int v13; // w9 int v14; // w8 __int64 v15; // x1 v4 = *(unsigned int *)(a1 + 1752); v5 = *(_DWORD *)(a1 + 1756) / (unsigned int)v4; v6 = sub_1004B14F8( *((__int64 **)off_1008524C8 + 54), (4 * (int)v4 + 88) * (int)v5 + 64, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_systemi.cpp", 947, 0); if ( !v6 ) return 38; v7 = v6; *v6 = v6 + 6; if ( (int)v5 >= 1 ) { v8 = ((unsigned __int64)&v6[11 * (unsigned int)v5 + 7] + 7) & 0xFFFFFFFFFFFFFFF0LL; v9 = v6 + 16; do { *v9 = v8; v9 += 11; v8 += 4 * v4; --v5; } while ( v5 ); } result = FMOD::ExpandingPool::alloc((_QWORD *)(a1 + 1824), v6 + 2, 1u); if ( !(_DWORD)result ) { result = sub_1004F0800(v7[2], 1, 1); if ( !(_DWORD)result ) { if ( a1 ) sub_100442B5C(a1, 0x12u); v11 = *(_DWORD *)(a1 + 74064); v12 = *(_DWORD *)(a1 + 74068); *((_DWORD *)v7 + 8) = v11; if ( v12 < 0 ) v12 = -v12; if ( v12 <= v11 ) { v13 = (int)(float)((float)v12 * 1.5); if ( v13 <= v11 + 1 ) v14 = v11 + 1; else v14 = v13; if ( v14 <= 8 ) v15 = 8; else v15 = (unsigned int)v14; if ( (unsigned int)sub_1004D4E44(a1 + 74056, v15) ) goto LABEL_21; v11 = *(_DWORD *)(a1 + 74064); } *(_QWORD *)(*(_QWORD *)(a1 + 74056) + 8LL * v11) = v7; ++*(_DWORD *)(a1 + 74064); LABEL_21: sub_100442B7C(a1, 0x12u); *a2 = v7; return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source