Function at 0x1000b8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x56c
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test byte [0x10018114], 8
jne 0x1000bb10
test ebx, ebx
je 0x1000c05c
cmp dword [ebp + 0xc], 1
ja 0x1000bff2
cmp esi, 2
ja 0x1000bff2
mov dword [ebx], 0
cmp word [0x10027910], 0
je 0x1000bfe8
xor eax, eax
lea ecx, [ebp - 0x40c]
lea esi, [esi]
lea edi, [edi]
movzx edx, word [eax + str.SoftwareWineDrivers]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x1000b940
cmp word [ebp - 0x40c], 0
mov edx, ecx
je 0x1000b969
nop
add edx, 2
cmp word [edx], 0
jne 0x1000b960
xor eax, eax
nop
lea esi, [esi]
movzx edi, word [eax + 0x1001b022]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x1000b970
cmp word [ebp - 0x40c], 0
mov edx, ecx
je 0x1000b999
nop
add edx, 2
cmp word [edx], 0
jne 0x1000b990
xor eax, eax
nop
lea esi, [esi]
movzx edi, word [eax + 0x10027910]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x1000b9a0
lea eax, [ebp - 0x544]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x1000bad4
mov eax, dword [ebp + 0xc]
mov edx, str.DefaultVoiceOutput
mov ecx, str.DefaultOutput
mov dword [ebp - 0x540], 0x200
test eax, eax
mov eax, str.DefaultVoiceInput
cmove eax, edx
mov edx, str.DefaultInput
cmove edx, ecx
mov dword [ebp - 0x548], edx
mov edx, dword [ebp - 0x544]
cmp esi, 2
je 0x1000bb50
lea eax, [ebp - 0x540]
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x54c], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x54c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x548]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x550]
mov dword [esp], edx
call eax
sub esp, 0x18
test eax, eax
jne 0x1000bac2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x1000bab5
mov eax, dword [ebx]
lea ecx, [ebp - 0x53c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
test eax, eax
js 0x1000bab5
cmp dword [ebp - 0x53c], 1
je 0x1000bbd6
test byte [0x10018114], 8
jne 0x1000bc08
mov eax, dword [ebp - 0x544]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov edi, dword [ebp + 0xc]
mov eax, dword [0x10027008]
test edi, edi
cmovne eax, dword [0x1002700c]
mov dword [ebx], eax
test eax, eax
je 0x1000bfe8
mov edx, dword [eax]
mov dword [esp], eax
xor edi, edi
call dword [edx + 4]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p_____u__u__p__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MMDevEnum_GetDefaultAudioEndpoint
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000b8ff
mov dword [esp + 4], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x540]
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x54c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], edx
mov dword [ebp - 0x550], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x1000bbfa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x1000bbed
mov eax, dword [ebx]
lea ecx, [ebp - 0x53c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
test eax, eax
js 0x1000bbed
cmp dword [ebp - 0x53c], 1
jne 0x1000bbed
mov eax, dword [ebp - 0x544]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000bafc
test byte [0x10018114], 8
jne 0x1000bded
mov edx, dword [ebp - 0x544]
jmp 0x1000ba36
mov eax, esi
shr eax, 0x10
je 0x1000bdc9
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001afc7
sub esp, 8
test eax, eax
jne 0x1000bd00
cmp word [ebp - 0x20c], 0
je 0x1000bf36
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x1000bc48
mov ecx, 0x224c
mov dword [ebp + 0x14], ebx
mov word [ebp - 0x538], cx
lea ecx, [ebp - 0x536]
jmp 0x1000bca3
cmp ax, 9
je 0x1000bdb8
cmp ax, 0xa
jne 0x1000bd4b
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x1000bccf
lea ebx, [ebp - 0x416]
cmp ecx, ebx
ja 0x1000bccf
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000bd2d
jbe 0x1000bc70
cmp ax, 0x22
je 0x1000bda0
cmp ax, 0x5c
jne 0x1000bd3e
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x1000bc90
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0x14]
test eax, eax
jle 0x1000bf4f
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x538]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unable_to_find_device__s_n
mov dword [esp + 8], str.MMDevEnum_GetDefaultAudioEndpoint
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000bac2
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bc90
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000bde3
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefMMDevPropStore_OpenPropKey]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x1000bc90
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000bc90
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000bc90
movzx esi, si
mov dword [esp], 0x1001afd1
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_3
mov edx, eax
jmp 0x1000bd00
mov byte [ecx], al
add ecx, 1
jmp 0x1000bc90
mov eax, esi
shr eax, 0x10
je 0x1000c038
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001afc7
sub esp, 8
test eax, eax
jne 0x1000bf09
cmp word [ebp - 0x20c], 0
je 0x1000c066
mov esi, esi
lea edi, [edi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [esi + ecx*2 + 2], 0
jne 0x1000be30
mov eax, 0x224c
mov dword [ebp + 0x14], ebx
lea edx, [ebp - 0x536]
mov word [ebp - 0x538], ax
mov dword [ebp - 0x558], edi
mov dword [ebp - 0x554], esi
jmp 0x1000be93
cmp ax, 9
je 0x1000bf68
cmp ax, 0xa
jne 0x1000bf86
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x1000bed2
lea ecx, [ebp - 0x416]
cmp edx, ecx
ja 0x1000bed2
mov ecx, eax
add dword [ebp - 0x554], 2
mov eax, dword [ebp - 0x554]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x1000bf57
jbe 0x1000be60
cmp ax, 0x22
je 0x1000bfd7
cmp ax, 0x5c
jne 0x1000bf79
mov ebx, 0x5c5c
add edx, 2
mov word [edx - 2], bx
jmp 0x1000be80
mov edi, dword [ebp - 0x558]
mov ebx, dword [ebp + 0x14]
mov byte [edx], 0x22
test eax, eax
jle 0x1000c07f
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x538]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unable_to_find_voice_device__s_n
mov dword [esp + 8], str.MMDevEnum_GetDefaultAudioEndpoint
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000bbfa
mov esi, 0x224c
mov byte [ebp - 0x536], 0x22
lea ecx, [ebp - 0x536]
mov word [ebp - 0x538], si
lea eax, [ecx + 1]
jmp 0x1000bced
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000be80
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000be80
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000c052
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefMMDevPropStore_OpenPropKey]
and edi, 0xf
mov byte [edx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [edx - 1], al
mov byte [edx - 2], bl
jmp 0x1000be80
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
jmp 0x1000be80
mov edi, 0x80070490
jmp 0x1000bafc
mov edi, 0x80070057
test byte [0x10018114], 4
je 0x1000bafc
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], str.Unknown_flow___u__or_role___u__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MMDevEnum_GetDefaultAudioEndpoint
mov dword [esp + 4], 0x10018114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.3
jmp 0x1000bafc
movzx eax, si
mov dword [esp], 0x1001afd1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_3
mov edx, eax
jmp 0x1000bf09
mov byte [edx], al
add edx, 1
jmp 0x1000be80
mov edi, 0x80004003
jmp 0x1000bafc
mov byte [ebp - 0x536], 0x22
mov edx, 0x224c
mov word [ebp - 0x538], dx
lea edx, [ebp - 0x536]
lea eax, [edx + 1]
jmp 0x1000bef6