// // sub_1801146F0 from 0x1801146f0 to 0x1801148c6 (470 bytes) // // 4 xrefs: // > sub_180114BD0 @ 0x180114cbc // > @ 0x180190ff0 // > @ 0x180191000 // > @ 0x180201e5c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:54:36 +0000 // __int64 __fastcall sub_1801146F0(__int64 a1, _DWORD *a2, __int64 a3) { unsigned int v3; // ebx unsigned int v8; // ebx _DWORD *v9; // rdx void *v10; // rax __int64 v11; // rbx struct _RTL_CRITICAL_SECTION *v12; // r14 int v13; // eax int v14; // r8d int v15; // edx __int64 v16; // rcx __int64 v17; // rsi DWORD v18; // r8d void *v19; // rcx DWORD v20; // eax DWORD v21; // [rsp+68h] [rbp+10h] BYREF v3 = a2[5]; if ( v3 > 0x8000000 ) return 28; v8 = v3 + 33; if ( (signed int)v8 > *(_DWORD *)(a1 + 64) ) { v9 = *(_DWORD **)(a1 + 48); if ( v9 ) sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v9); v10 = sub_1800B6530( *((_QWORD *)off_1801AED20 + 52), v8, "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_profile_remotefile.cpp", 652, 0, 0, 1); *(_QWORD *)(a1 + 48) = v10; if ( !v10 ) return 38; *(_DWORD *)(a1 + 64) = v8; } v11 = *(_QWORD *)(a1 + 48); *(_OWORD *)v11 = 0; *(_OWORD *)(v11 + 16) = 0; *(_DWORD *)v11 = 32; *(_WORD *)(v11 + 8) = 778; *(_DWORD *)(v11 + 12) = a2[3]; *(_DWORD *)(v11 + 20) = a2[4]; *(_DWORD *)(v11 + 24) = a2[5]; *(_DWORD *)(v11 + 16) = 3; v12 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 56); FMOD_OS_CriticalSection_Enter(v12); if ( *(_DWORD *)(a1 + 156) ) { v13 = *(_DWORD *)(a1 + 128); if ( v13 ) { v14 = a2[3]; v15 = *(_DWORD *)(*(_QWORD *)(a1 + 120) + 4LL * (v14 & (v13 - 1))); if ( v15 != -1 ) { v16 = *(_QWORD *)(a1 + 136); while ( *(_DWORD *)(v16 + 16LL * v15) != v14 ) { v15 = *(_DWORD *)(v16 + 16LL * v15 + 4); if ( v15 == -1 ) goto LABEL_20; } v17 = *(_QWORD *)(v16 + 16LL * v15 + 8); if ( v17 && !(unsigned int)FMOD_OS_File_Seek(*(void **)(v17 + 16), a2[4]) ) { v18 = a2[5]; v19 = *(void **)(v17 + 16); v21 = 0; if ( (FMOD_OS_File_Read(v19, (void *)(v11 + 32), v18, &v21) & 0xFFFFFFEF) == 0 ) { v20 = v21; *(_DWORD *)v11 += v21; *(_DWORD *)(v11 + 28) = v20; *(_DWORD *)(v11 + 16) = 0; } } } } } LABEL_20: FMOD_OS_CriticalSection_Leave(v12); return (***(__int64 (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 32))(*(_QWORD *)(a1 + 32), v11, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source