Function at 0x1000a720
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 [0x10016114], 8
jne 0x1000a950
test ebx, ebx
je 0x1000ae9c
cmp dword [ebp + 0xc], 1
ja 0x1000ae32
cmp esi, 2
ja 0x1000ae32
mov dword [ebx], 0
cmp word [0x10025910], 0
je 0x1000ae28
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 0x1000a780
cmp word [ebp - 0x40c], 0
mov edx, ecx
je 0x1000a7a9
nop
add edx, 2
cmp word [edx], 0
jne 0x1000a7a0
xor eax, eax
nop
lea esi, [esi]
movzx edi, word [eax + 0x10019022]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x1000a7b0
cmp word [ebp - 0x40c], 0
mov edx, ecx
je 0x1000a7d9
nop
add edx, 2
cmp word [edx], 0
jne 0x1000a7d0
xor eax, eax
nop
lea esi, [esi]
movzx edi, word [eax + 0x10025910]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x1000a7e0
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 0x1000a914
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 0x1000a990
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 0x1000a902
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 0x1000a8f5
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 0x1000a8f5
cmp dword [ebp - 0x53c], 1
je 0x1000aa16
test byte [0x10016114], 8
jne 0x1000aa48
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 [0x10025008]
test edi, edi
cmovne eax, dword [0x1002500c]
mov dword [ebx], eax
test eax, eax
je 0x1000ae28
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], 0x10016114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a73f
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 0x1000aa3a
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 0x1000aa2d
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 0x1000aa2d
cmp dword [ebp - 0x53c], 1
jne 0x1000aa2d
mov eax, dword [ebp - 0x544]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000a93c
test byte [0x10016114], 8
jne 0x1000ac2d
mov edx, dword [ebp - 0x544]
jmp 0x1000a876
mov eax, esi
shr eax, 0x10
je 0x1000ac09
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x10018fc7
sub esp, 8
test eax, eax
jne 0x1000ab40
cmp word [ebp - 0x20c], 0
je 0x1000ad76
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x1000aa88
mov ecx, 0x224c
mov dword [ebp + 0x14], ebx
mov word [ebp - 0x538], cx
lea ecx, [ebp - 0x536]
jmp 0x1000aae3
cmp ax, 9
je 0x1000abf8
cmp ax, 0xa
jne 0x1000ab8b
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x1000ab0f
lea ebx, [ebp - 0x416]
cmp ecx, ebx
ja 0x1000ab0f
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000ab6d
jbe 0x1000aab0
cmp ax, 0x22
je 0x1000abe0
cmp ax, 0x5c
jne 0x1000ab7e
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x1000aad0
mov byte [ecx], 0x22
mov ebx, dword [ebp + 0x14]
test eax, eax
jle 0x1000ad8f
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], 0x10016114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a902
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000aad0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000ac23
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 0x1000aad0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000aad0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000aad0
movzx esi, si
mov dword [esp], 0x10018fd1
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_3
mov edx, eax
jmp 0x1000ab40
mov byte [ecx], al
add ecx, 1
jmp 0x1000aad0
mov eax, esi
shr eax, 0x10
je 0x1000ae78
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x10018fc7
sub esp, 8
test eax, eax
jne 0x1000ad49
cmp word [ebp - 0x20c], 0
je 0x1000aea6
mov esi, esi
lea edi, [edi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [esi + ecx*2 + 2], 0
jne 0x1000ac70
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 0x1000acd3
cmp ax, 9
je 0x1000ada8
cmp ax, 0xa
jne 0x1000adc6
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
lea eax, [ecx - 1]
test ecx, ecx
jle 0x1000ad12
lea ecx, [ebp - 0x416]
cmp edx, ecx
ja 0x1000ad12
mov ecx, eax
add dword [ebp - 0x554], 2
mov eax, dword [ebp - 0x554]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x1000ad97
jbe 0x1000aca0
cmp ax, 0x22
je 0x1000ae17
cmp ax, 0x5c
jne 0x1000adb9
mov ebx, 0x5c5c
add edx, 2
mov word [edx - 2], bx
jmp 0x1000acc0
mov edi, dword [ebp - 0x558]
mov ebx, dword [ebp + 0x14]
mov byte [edx], 0x22
test eax, eax
jle 0x1000aebf
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], 0x10016114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000aa3a
mov esi, 0x224c
mov byte [ebp - 0x536], 0x22
lea ecx, [ebp - 0x536]
mov word [ebp - 0x538], si
lea eax, [ecx + 1]
jmp 0x1000ab2d
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000acc0
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
jmp 0x1000acc0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000ae92
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 0x1000acc0
mov edi, 0x225c
add edx, 2
mov word [edx - 2], di
jmp 0x1000acc0
mov edi, 0x80070490
jmp 0x1000a93c
mov edi, 0x80070057
test byte [0x10016114], 4
je 0x1000a93c
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], 0x10016114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x1000a93c
movzx eax, si
mov dword [esp], 0x10018fd1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_3
mov edx, eax
jmp 0x1000ad49
mov byte [edx], al
add edx, 1
jmp 0x1000acc0
mov edi, 0x80004003
jmp 0x1000a93c
mov byte [ebp - 0x536], 0x22
mov edx, 0x224c
mov word [ebp - 0x538], dx
lea edx, [ebp - 0x536]
lea eax, [edx + 1]
jmp 0x1000ad36