Function at 0x1000caa0
Capabilities:
Query or enumerate registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x88]
push ebx
push ecx
sub esp, 0xa4
mov esi, 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 esi
sub esp, 0x24
mov ebx, eax
test eax, eax
je 0x1000cb60
mov eax, dword [ebp - 0x88]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call esi
mov edi, dword [0x10025010]
sub esp, 4
mov dword [esp], edi
call esi
mov dword [0x10025010], 0
mov dword [0x10025014], 0
sub esp, 4
test byte [0x10016114], 4
jne 0x1000cd67
mov ebx, 0x80004005
jmp 0x1000cd38
mov eax, dword [ebp - 0x88]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x10025010
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 esi
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x1000cb11
mov eax, dword [ebp - 0x88]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x10025014
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 esi
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, eax
mov eax, dword [ebp - 0x88]
sub esp, 0x24
mov dword [esp], eax
call esi
mov edi, dword [0x10025010]
sub esp, 4
test ebx, ebx
jne 0x1000cb2b
mov dword [ebp - 0x8c], 1
xor esi, esi
lea eax, [ebp - 0x84]
mov dword [ebp - 0x80], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x5e]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x84], 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], esi
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
cmp eax, 0x103
je 0x1000cd30
add esi, 1
test eax, eax
jne 0x1000cc36
lea eax, [ebp - 0x70]
mov dword [esp + 4], eax
lea eax, [ebp - 0x5e]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
sub esp, 8
test eax, eax
js 0x1000cc36
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x8c]
mov ecx, 0x1001ffa0
mov dword [esp], eax
lea eax, [ebp - 0x70]
call sym._MMDevice_GetPropValue
test eax, eax
js 0x1000cc36
cmp word [ebp - 0x80], 0x1f
jne 0x1000cc36
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x8c]
lea edx, [ebp - 0x70]
mov dword [esp], 4
mov eax, dword [ebp - 0x78]
call sym._MMDevice_Create
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
jmp 0x1000cc36
cmp dword [0x10025010], edi
je 0x1000cd50
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x8c], 0
mov edi, dword [0x10025014]
xor esi, esi
jmp 0x1000cc36
mov dword [esp + 0x10], ebx
mov ebx, 0x80004005
mov dword [esp + 0xc], str.Couldnt_create_key:__lu_n
mov dword [esp + 8], str.load_devices_from_reg
mov dword [esp + 4], 0x10016114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000cd38