Function at 0x66e013c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp edx, 1
sete al
mov dword [ecx], 0
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0x66e06984
mov dword [esp + 0x10], eax
inc edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x66e06934
call dword [sym.imp.combase.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x66e015b8
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [edx + 0x10]
sub esp, 0x10
mov esi, eax
test eax, eax
js 0x66e01620
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 8
mov esi, eax
test eax, eax
js 0x66e01580
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], eax
call esi
mov dword [esp + 4], 0
mov edx, eax
lea edx, [edx + edx + 0x72]
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], str._SWDMMDEVAPI
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov edx, dword [sym.imp.ucrtbase.dll_wcscat]
mov eax, dword [ebp - 0x24]
mov dword [esp], edi
mov dword [ebp - 0x30], edx
mov dword [esp + 4], eax
call edx
mov dword [esp + 4], 0x66e064f0
mov edx, dword [ebp - 0x30]
mov dword [esp], edi
call edx
mov eax, dword [ebp - 0x2c]
mov dword [esp], edi
test eax, eax
je 0x66e015f0
call esi
mov dword [esp + 8], 0x27
lea eax, [edi + eax*2]
mov dword [esp], 0x66e069d4
mov dword [esp + 4], eax
call dword [sym.imp.combase.dll_StringFromGUID2]
sub esp, 0xc
mov dword [esp], edi
call esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._WindowsCreateString_12
sub esp, 0xc
mov esi, eax
test eax, eax
js 0x66e01660
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.combase.dll_CoTaskMemFree]
sub esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x66e0407c], 4
je 0x66e01553
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.GetId_failed:__08lx_n
mov dword [esp + 8], str.get_default_device_id
mov dword [esp + 4], 0x66e0407c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x66e01553
mov esi, eax
test byte [0x66e0407c], 4
je 0x66e0156f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_MMDeviceEnumerator:__08lx_n
mov dword [esp + 8], str.get_default_device_id
mov dword [esp + 4], 0x66e0407c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x66e0156f
call esi
mov dword [esp + 8], 0x27
lea eax, [edi + eax*2]
mov dword [esp], 0x66e069e4
mov dword [esp + 4], eax
call dword [sym.imp.combase.dll_StringFromGUID2]
sub esp, 0xc
jmp 0x66e014fe
test byte [0x66e0407c], 4
je 0x66e01561
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.GetDefaultAudioEndpoint_failed:__08lx_n
mov dword [esp + 8], str.get_default_device_id
mov dword [esp + 4], 0x66e0407c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x66e01561
test byte [0x66e0407c], 4
je 0x66e01520
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.WindowsCreateString_failed:__08lx_n
mov dword [esp + 8], str.get_default_device_id
mov dword [esp + 4], 0x66e0407c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x66e01520