Function at 0x6acc81b0
Capabilities:
Get process heap flags
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x90]
push ebx
sub esp, 0xcc
mov ebx, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudio
mov dword [esp], 0x80000002
call ebx
sub esp, 0x24
mov edi, eax
test eax, eax
je 0x6acc8268
mov eax, dword [ebp - 0x90]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov esi, dword [0x6acdd00c]
sub esp, 4
mov dword [esp], esi
call ebx
mov dword [0x6acdd00c], 0
mov dword [0x6acdd010], 0
sub esp, 4
test byte [0x6acd00b4], 4
jne 0x6acc84df
mov edi, 0x80004005
jmp 0x6acc84b8
mov eax, dword [ebp - 0x90]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x6acdd00c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Capture
mov dword [esp], eax
call ebx
sub esp, 0x24
mov edi, eax
test eax, eax
jne 0x6acc8216
mov eax, dword [ebp - 0x90]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x6acdd010
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Render
mov dword [esp], eax
call ebx
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x90]
sub esp, 0x24
mov dword [esp], eax
call ebx
mov esi, dword [0x6acdd00c]
sub esp, 4
test edi, edi
jne 0x6acc8230
mov dword [ebp - 0x9c], 1
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x80], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x66]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x8c], 0x27
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x6acc84b0
inc ebx
test eax, eax
jne 0x6acc833e
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea eax, [ebp - 0x66]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
js 0x6acc833e
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x9c]
mov ecx, 0x6acd4004
mov dword [esp], eax
lea eax, [ebp - 0x78]
call sym._MMDevice_GetPropValue
test eax, eax
js 0x6acc833e
cmp word [ebp - 0x88], 0x1f
jne 0x6acc833e
mov edx, dword [ebp - 0x80]
cmp word [edx], 0
je 0x6acc850e
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6acc8420
sub eax, edx
lea edx, [eax + 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xa0], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0xa0]
mov ecx, eax
mov eax, dword [ebp - 0x80]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0xa0], ecx
call sym._memcpy
mov dword [esp + 4], 0
lea edx, [ebp - 0x78]
mov ecx, dword [ebp - 0x9c]
mov dword [esp], 4
mov eax, dword [ebp - 0xa0]
call sym._MMDevice_Create
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x6acc833e
cmp dword [0x6acdd00c], esi
je 0x6acc84c8
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x9c], 0
mov esi, dword [0x6acdd010]
xor ebx, ebx
jmp 0x6acc833e
mov dword [esp + 0x10], edi
mov edi, 0x80004005
mov dword [esp + 0xc], str.Couldnt_create_key:__lu_n
mov dword [esp + 8], str.load_devices_from_reg
mov dword [esp + 4], 0x6acd00b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc84b8
mov edx, 2
jmp 0x6acc842e