// // sub_1800C4B30 from 0x1800c4b30 to 0x1800c4e07 (727 bytes) // // 9 xrefs: // > sub_1800C36A0 @ 0x1800c3803 // > sub_1800C36A0 @ 0x1800c38eb // > sub_1800C43E0 @ 0x1800c44ae // > sub_1800C43E0 @ 0x1800c45bf // > @ 0x18018aa7c // > @ 0x18018aa8c // > @ 0x18018aaa8 // > @ 0x18018aadc // > @ 0x1801fdea8 // // 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:04 +0000 // __int64 __fastcall sub_1800C4B30(__int64 a1, __int64 a2, __int64 a3, __int64 a4, char a5) { bool v7; // si unsigned int v8; // ebx const WCHAR *bstrVal; // rbp int v11; // r12d int v12; // eax unsigned int cbMultiByte; // r15d CHAR *lpMultiByteStr; // rax _DWORD *v15; // rcx LPCCH lpDefaultChar; // [rsp+30h] [rbp-78h] PROPVARIANT lpWideCharStr; // [rsp+40h] [rbp-68h] BYREF __int128 v18; // [rsp+58h] [rbp-50h] BYREF LPVOID pv[3]; // [rsp+68h] [rbp-40h] BYREF int v20; // [rsp+C8h] [rbp+20h] BYREF if ( a4 ) { *(_QWORD *)a3 = a4; } else if ( (*(int (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 40LL))(a2, a3) < 0 ) { return 51; } v7 = 0; v18 = 0; *(_OWORD *)pv = 0; if ( !a5 ) goto LABEL_7; if ( (**(int (__fastcall ***)(__int64, void *, __int128 *))a2)(a2, &unk_18016A0C8, &v18) >= 0 && (*(int (__fastcall **)(_QWORD, int *))(*(_QWORD *)v18 + 24LL))(v18, &v20) >= 0 ) { v7 = v20 == 0; LABEL_7: if ( (*(int (__fastcall **)(__int64, _QWORD, char *))(*(_QWORD *)a2 + 32LL))(a2, 0, (char *)&v18 + 8) >= 0 ) { memset(&lpWideCharStr, 0, sizeof(lpWideCharStr)); if ( (*(int (__fastcall **)(_QWORD, void *, PROPVARIANT *))(**((_QWORD **)&v18 + 1) + 40LL))( *((_QWORD *)&v18 + 1), &unk_18016FAD0, &lpWideCharStr) >= 0 ) { bstrVal = L"Unknown"; if ( lpWideCharStr.vt == 31 ) bstrVal = lpWideCharStr.bstrVal; v8 = 0; if ( v7 ) v11 = sub_1800B7F50(" [loopback]"); else v11 = 0; v12 = WideCharToMultiByte(0xFDE9u, 0, bstrVal, -1, nullptr, 0, nullptr, nullptr); LOBYTE(lpDefaultChar) = 1; cbMultiByte = v11 + v12; lpMultiByteStr = (CHAR *)sub_1800B6530( *((_QWORD *)off_1801AED20 + 52), (unsigned int)(v11 + v12), "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\src\\fmod_output_wasapi.cpp", 262, 0, 0, lpDefaultChar); *(_QWORD *)(a3 + 8) = lpMultiByteStr; if ( lpMultiByteStr ) { WideCharToMultiByte(0xFDE9u, 0, bstrVal, -1, lpMultiByteStr, cbMultiByte, nullptr, nullptr); if ( v7 ) sub_1800B7CC0(*(_BYTE **)(a3 + 8), (__int64)" [loopback]", cbMultiByte); if ( PropVariantClear(&lpWideCharStr) >= 0 ) { if ( (*(int (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 24LL))(a2, &unk_18016A080, 23) >= 0 ) { if ( (*(int (__fastcall **)(LPVOID, LPVOID *))(*(_QWORD *)pv[0] + 64LL))(pv[0], &pv[1]) >= 0 ) { v15 = pv[1]; *(_DWORD *)(a3 + 16) = *((unsigned __int16 *)pv[1] + 1); *(_DWORD *)(a3 + 20) = v15[1]; } } else { v8 = 51; } } else { v8 = 51; } } else { v8 = 38; } } else { v8 = 51; } } else { v8 = 51; } goto LABEL_29; } v8 = 57; LABEL_29: if ( (_QWORD)v18 ) (*(void (__fastcall **)(_QWORD))(*(_QWORD *)v18 + 16LL))(v18); if ( *((_QWORD *)&v18 + 1) ) (*(void (__fastcall **)(_QWORD))(**((_QWORD **)&v18 + 1) + 16LL))(*((_QWORD *)&v18 + 1)); if ( pv[0] ) (*(void (__fastcall **)(LPVOID))(*(_QWORD *)pv[0] + 16LL))(pv[0]); if ( pv[1] ) CoTaskMemFree(pv[1]); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source