// // sub_1800C23B0 from 0x1800c23b0 to 0x1800c29fc (1612 bytes) // // 6 xrefs: // > sub_1800C2A00 @ 0x1800c2a10 // > @ 0x18018a7e4 // > @ 0x18018a7f4 // > @ 0x18018a80c // > @ 0x18018a81c // > @ 0x1801fdc8c // // 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_1800C23B0( __int64 a1, int a2, __int64 a3, _DWORD *a4, int *a5, int *a6, _DWORD *a7, int a8, int *a9, int a10, __int64 a11) { __int64 v13; // rdi __int64 result; // rax int v15; // eax __int64 *v16; // rsi __int64 v17; // r14 int v18; // ecx int v19; // ecx int v20; // eax _QWORD *v21; // r15 HRESULT Instance; // eax int v23; // eax __int64 v24; // rcx __int64 v25; // rcx int v26; // edi bool v27; // r9 bool v28; // r8 bool v29; // al __int64 v30; // rdx int v31; // ecx int v32; // r13d int v33; // r13d int v34; // ecx void *v35; // rax void *v36; // rax void *v37; // rax __int64 v38; // r8 int v39; // eax _DWORD *i; // rcx int v41; // edx __int64 v42; // rcx __int64 v43; // r9 __int64 v44; // rax __int64 v45; // r15 __int64 v46; // rsi __int64 j; // r14 __int64 v48; // r12 __int64 v49; // rcx int v50; // [rsp+30h] [rbp-C1h] BYREF int v51; // [rsp+34h] [rbp-BDh] BYREF int v52; // [rsp+38h] [rbp-B9h] BYREF int v53; // [rsp+3Ch] [rbp-B5h] BYREF _DWORD *v54; // [rsp+40h] [rbp-B1h] __int64 v55; // [rsp+48h] [rbp-A9h] int *v56; // [rsp+50h] [rbp-A1h] _OWORD v57[7]; // [rsp+60h] [rbp-91h] BYREF __int64 v58; // [rsp+D0h] [rbp-21h] int v59; // [rsp+D8h] [rbp-19h] v54 = a7; v56 = a9; v55 = a11; v13 = a2; result = sub_1800C1C80(a1); if ( (_DWORD)result ) return result; v15 = *(_DWORD *)(a1 + 1132); if ( !v15 ) return 52; if ( (int)v13 < 0 || (int)v13 >= v15 ) return 31; v16 = (__int64 *)(a1 + 1080); if ( *a5 == 1 ) { v17 = 60 * v13; v18 = *(_DWORD *)(60 * v13 + *v16 + 36); if ( v18 >= *a6 ) v18 = *a6; *a6 = v18; } else if ( !*a5 || (v17 = 60 * v13, *a6 > *(_DWORD *)(60 * v13 + *v16 + 36)) ) { v17 = 60 * v13; v19 = *(_DWORD *)(60 * v13 + *v16 + 36); if ( v19 >= 8 ) { *a6 = 8; v20 = 7; } else { *a6 = v19; switch ( v19 ) { case 1: v20 = 2; break; case 2: v20 = 3; break; case 4: v20 = 4; break; case 5: v20 = 5; break; case 6: v20 = 6; break; default: v20 = 1; break; } } *a5 = v20; } *v54 = 5; result = FMOD_OS_CriticalSection_Create((struct _RTL_CRITICAL_SECTION **)(a1 + 1192), 0); if ( (_DWORD)result ) return result; v21 = (_QWORD *)(a1 + 1104); Instance = CoCreateInstance( (const IID *const)(v17 + *v16 + 44), nullptr, 1u, (const IID *const)(v17 + *v16 + 44), (LPVOID *)(a1 + 1104)); if ( Instance == -2147221008 ) { if ( CoInitializeEx(nullptr, 2u) < 0 ) return 51; Instance = CoCreateInstance( (const IID *const)(v17 + *v16 + 44), nullptr, 1u, (const IID *const)(v17 + *v16 + 44), (LPVOID *)(a1 + 1104)); } if ( Instance ) return 51; v23 = (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v21 + 24LL))(*v21, v55); v24 = *(_QWORD *)(a1 + 1104); if ( !v23 ) { memset(v57, 0, sizeof(v57)); v58 = 0; v59 = 0; (*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v24 + 48LL))(v24, v57); return 51; } if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v24 + 112LL))(v24) ) *a4 = *(_DWORD *)(v17 + *v16 + 40); v25 = *v21; v26 = 0; v50 = 0; v51 = 0; v53 = 0; v52 = 0; if ( (*(unsigned int (__fastcall **)(__int64, int *, int *, int *, int *))(*(_QWORD *)v25 + 88LL))( v25, &v50, &v51, &v53, &v52) ) { return 51; } v27 = a8 >= v50 && a8 <= v51; v28 = v52 >= 0 || ((a8 - 1) & a8) == 0; v29 = v52 <= 0 || !(a8 % v52); if ( v27 && v28 && v29 ) { *(_DWORD *)(a1 + 1136) = a8; goto LABEL_51; } *(_DWORD *)(a1 + 1136) = v53; result = sub_1800BB660(a1 + 1144, a8, *v56, 4 * *a6, 0); if ( !(_DWORD)result ) { LABEL_51: v30 = *v16; v31 = *(_DWORD *)(v17 + *v16 + 32); v32 = *(_DWORD *)(v17 + *v16 + 36); *(_DWORD *)(a1 + 1124) = v31; v33 = v31 + v32; v34 = 32; if ( *(int *)(v17 + v30 + 36) < 32 ) v34 = *(_DWORD *)(v17 + v30 + 36); *(_DWORD *)(a1 + 1128) = v34; *(_BYTE *)(a1 + 1120) = (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)*v21 + 184LL))(*v21) == 0; v35 = sub_1800B6880( *((_QWORD *)off_1801AED20 + 52), (unsigned int)(24 * v33), "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\src\\fmod_output_asio.cpp", 418, 0); *(_QWORD *)(a1 + 1088) = v35; if ( !v35 ) return 38; v36 = sub_1800B6880( *((_QWORD *)off_1801AED20 + 52), (unsigned int)(52 * v33), "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\src\\fmod_output_asio.cpp", 424, 0); *(_QWORD *)(a1 + 1096) = v36; if ( !v36 ) return 38; v37 = sub_1800B6880( *((_QWORD *)off_1801AED20 + 52), (unsigned int)(4 * *(_DWORD *)(a1 + 1136) * *a6), "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\src\\fmod_output_asio.cpp", 431, 0); *(_QWORD *)(a1 + 1112) = v37; if ( !v37 ) return 38; v38 = *v16; v39 = 0; for ( i = *(_DWORD **)(a1 + 1088); v39 < *(_DWORD *)(*v16 + v17 + 32); v38 = *v16 ) { i[1] = v39++; *i = 1; i += 6; } v41 = 0; if ( *(int *)(v17 + v38 + 36) > 0 ) { do { i[1] = v41++; *i = 0; i += 6; } while ( v41 < *(_DWORD *)(v17 + *v16 + 36) ); } qword_1801EF7A8 = a1; v42 = *v21; v43 = *(unsigned int *)(a1 + 1136); *(_QWORD *)(a1 + 1064) = sub_1800C1A00; *(_QWORD *)(a1 + 1048) = sub_1800C1A30; *(_QWORD *)(a1 + 1056) = nullsub_2; *(_QWORD *)(a1 + 1072) = sub_1800C1A50; if ( (*(unsigned int (__fastcall **)(__int64, _QWORD, _QWORD, __int64, __int64))(*(_QWORD *)v42 + 152LL))( v42, *(_QWORD *)(a1 + 1088), (unsigned int)v33, v43, a1 + 1048) ) { return 48; } *(_QWORD *)(*(_QWORD *)(a1 + 72) + 69672LL) = sub_1800B6880( *((_QWORD *)off_1801AED20 + 52), (unsigned int)(8 * v33), "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\s" "rc\\fmod_output_asio.cpp", 459, 0); v44 = *(_QWORD *)(a1 + 72); if ( !*(_QWORD *)(v44 + 69672) ) return 38; *(_DWORD *)(v44 + 69664) = 0; if ( v33 <= 0 ) return 0; v45 = 0; v46 = 0; for ( j = 0; ; j += 24 ) { *(_DWORD *)(v46 + *(_QWORD *)(a1 + 1096)) = *(_DWORD *)(j + *(_QWORD *)(a1 + 1088) + 4); *(_DWORD *)(*(_QWORD *)(a1 + 1096) + v46 + 4) = *(_DWORD *)(j + *(_QWORD *)(a1 + 1088)); v48 = 52LL * v26; if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1104) + 144LL))( *(_QWORD *)(a1 + 1104), v48 + *(_QWORD *)(a1 + 1096)) ) { break; } v49 = *(_QWORD *)(a1 + 1096); if ( !*(_DWORD *)(v49 + v46 + 4) ) *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 72) + 69672LL) + 8LL * (int)(*(_DWORD *)(*(_QWORD *)(a1 + 72) + 69664LL))++) = v48 + v49 + 20; ++v26; ++v45; v46 += 52; if ( v45 >= v33 ) return 0; } return 51; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source