Function at 0x6acc79a0
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x588
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x564], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x560], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x55c], eax
test byte [0x6acd00b4], 8
jne 0x6acc7c20
mov ecx, dword [ebp - 0x55c]
test ecx, ecx
je 0x6acc8187
cmp dword [ebp - 0x560], 1
ja 0x6acc811e
cmp ebx, 2
ja 0x6acc811e
mov eax, dword [ebp - 0x55c]
mov dword [eax], 0
movzx ecx, word [0x6acdd024]
test cx, cx
je 0x6acc8114
xor eax, eax
lea edi, [ebp - 0x418]
lea esi, [esi]
movzx edx, word [eax + str.SoftwareWineDrivers]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6acc7a30
cmp word [ebp - 0x418], 0
mov edx, edi
je 0x6acc7a59
nop
add edx, 2
cmp word [edx], 0
jne 0x6acc7a50
xor eax, eax
mov esi, 0x5c
jmp 0x6acc7a6f
movzx esi, word [eax + 0x6acd24ba]
mov word [edx + eax], si
add eax, 2
test si, si
jne 0x6acc7a68
cmp word [ebp - 0x418], 0
mov edx, edi
je 0x6acc7a99
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x6acc7a90
xor eax, eax
jmp 0x6acc7aa7
movzx ecx, word [eax + 0x6acdd024]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6acc7aa0
lea eax, [ebp - 0x550]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x6acc7bd7
mov edx, dword [ebp - 0x560]
mov eax, str.DefaultVoiceInput
mov ecx, str.DefaultOutput
mov dword [ebp - 0x54c], 0x200
lea edi, [ebp - 0x54c]
test edx, edx
mov edx, str.DefaultVoiceOutput
cmove eax, edx
mov edx, str.DefaultInput
cmove edx, ecx
mov dword [ebp - 0x568], edx
cmp ebx, 2
je 0x6acc7c68
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x568]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x550]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x56c]
mov dword [esp + 8], 0
call eax
sub esp, 0x18
test eax, eax
jne 0x6acc7bc5
mov edi, dword [ebp - 0x564]
mov ecx, dword [ebp - 0x55c]
mov eax, dword [edi]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x6acc7bb8
mov ecx, dword [ebp - 0x55c]
mov eax, dword [ecx]
lea ecx, [ebp - 0x548]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
test eax, eax
js 0x6acc7bb8
cmp dword [ebp - 0x548], 1
je 0x6acc7cf8
test byte [0x6acd00b4], 8
jne 0x6acc7e10
mov eax, dword [ebp - 0x550]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x560]
mov edi, dword [ebp - 0x55c]
test eax, eax
mov eax, dword [0x6acdd004]
cmovne eax, dword [0x6acdd008]
mov dword [edi], eax
test eax, eax
je 0x6acc8114
mov edx, dword [eax]
mov dword [esp], eax
xor esi, esi
call dword [edx + 4]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x560]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x564]
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], 0x6acd00b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc79e1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x550]
lea ebx, [ebp - 0x218]
mov dword [esp + 0x14], edi
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x56c], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x6acc7b2d
mov ecx, dword [ebp - 0x564]
mov edx, dword [ebp - 0x55c]
mov eax, dword [ecx]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x6acc7d0f
mov edx, dword [ebp - 0x55c]
lea ecx, [ebp - 0x548]
mov eax, dword [edx]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
test eax, eax
js 0x6acc7d0f
cmp dword [ebp - 0x548], 1
jne 0x6acc7d0f
mov eax, dword [ebp - 0x550]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6acc7c08
test byte [0x6acd00b4], 8
je 0x6acc7b2d
mov eax, ebx
shr eax, 0x10
je 0x6acc8167
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6acd2581
test edx, edx
jne 0x6acc8035
movzx eax, word [ebp - 0x218]
test ax, ax
je 0x6acc8191
lea esi, [esi]
mov ecx, edx
lea edx, [edx + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x6acc7d60
mov edx, 0x224c
mov dword [ebp - 0x570], esi
mov word [ebp - 0x544], dx
lea edx, [ebp - 0x542]
mov dword [ebp - 0x574], edi
mov esi, edx
mov edi, ebx
jmp 0x6acc7dd6
cmp ax, 9
je 0x6acc8083
cmp ax, 0xa
jne 0x6acc80b2
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea esi, [esi]
lea edx, [ecx - 1]
test ecx, ecx
jle 0x6acc7ff9
lea eax, [ebp - 0x422]
cmp esi, eax
ja 0x6acc7ff9
movzx eax, word [edi]
mov ecx, edx
add edi, 2
cmp ax, 0xd
je 0x6acc8094
jbe 0x6acc7d91
cmp ax, 0x22
je 0x6acc8103
cmp ax, 0x5c
jne 0x6acc80a5
mov eax, 0x5c5c
add esi, 2
mov word [esi - 2], ax
jmp 0x6acc7db8
mov eax, ebx
shr eax, 0x10
je 0x6acc7fd9
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x6acd2581
test ecx, ecx
jne 0x6acc7f17
movzx eax, word [ebp - 0x218]
test ax, ax
je 0x6acc8062
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6acc7e50
mov esi, 0x224c
mov dword [ebp - 0x564], ebx
lea ecx, [ebp - 0x542]
lea edi, [ebp - 0x422]
mov word [ebp - 0x544], si
jmp 0x6acc7eb6
cmp ax, 9
je 0x6acc7f48
cmp ax, 0xa
jne 0x6acc7f73
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [edx - 1]
test edx, edx
jle 0x6acc7eeb
cmp ecx, edi
ja 0x6acc7eeb
mov eax, dword [ebp - 0x564]
mov edx, esi
movzx eax, word [eax]
add dword [ebp - 0x564], 2
cmp ax, 0xd
je 0x6acc7f59
jbe 0x6acc7e80
cmp ax, 0x22
je 0x6acc7fc8
cmp ax, 0x5c
jne 0x6acc7f6a
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x6acc7ea0
mov byte [ecx], 0x22
test esi, esi
jle 0x6acc807b
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x544]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_find_device__s_n
mov dword [esp + 8], str.MMDevEnum_GetDefaultAudioEndpoint
mov dword [esp + 4], 0x6acd00b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc7bc5
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6acc7ea0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6acc7ea0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x6acc7ff1
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefMMDevPropStore_OpenPropKey]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6acc7ea0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x6acc7ea0
movzx ebx, bx
mov dword [esp], 0x6acd2616
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_1
jmp 0x6acc7f17
mov byte [ecx], al
inc ecx
jmp 0x6acc7ea0
mov eax, esi
mov edi, dword [ebp - 0x574]
mov esi, dword [ebp - 0x570]
mov byte [eax], 0x22
test edx, edx
jle 0x6acc81aa
mov ecx, eax
mov edx, 0x2e2e
lea eax, [eax + 4]
mov word [ecx + 1], dx
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x544]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_find_voice_device__s_n
mov dword [esp + 8], str.MMDevEnum_GetDefaultAudioEndpoint
mov dword [esp + 4], 0x6acd00b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc7b2d
mov edi, 0x224c
mov byte [ebp - 0x542], 0x22
lea ecx, [ebp - 0x542]
mov word [ebp - 0x544], di
lea eax, [ecx + 1]
jmp 0x6acc7f06
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x6acc7db8
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x6acc7db8
lea edx, [eax - 0x20]
cmp dx, 0x5e
jbe 0x6acc817f
mov edx, eax
mov byte [esi], 0x5c
add esi, 5
shr dx, 0xc
movzx edx, dx
movzx edx, byte [edx + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [esi - 4], dl
mov edx, eax
shr dx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [esi - 3], dl
mov edx, eax
and eax, 0xf
shr dx, 4
movzx eax, byte [eax + str.0123456789abcdefMMDevPropStore_OpenPropKey]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [esi - 1], al
mov byte [esi - 2], dl
jmp 0x6acc7db8
mov eax, 0x225c
add esi, 2
mov word [esi - 2], ax
jmp 0x6acc7db8
mov esi, 0x80070490
jmp 0x6acc7c08
mov esi, 0x80070057
test byte [0x6acd00b4], 4
je 0x6acc7c08
mov eax, dword [ebp - 0x560]
mov dword [esp + 0x14], ebx
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], 0x6acd00b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc7c08
movzx eax, bx
mov dword [esp], 0x6acd2616
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
jmp 0x6acc8035
mov byte [esi], al
inc esi
jmp 0x6acc7db8
mov esi, 0x80004003
jmp 0x6acc7c08
mov ecx, 0x224c
mov byte [ebp - 0x542], 0x22
lea eax, [ebp - 0x542]
mov word [ebp - 0x544], cx
inc eax
jmp 0x6acc8024