Function at 0x6514c340
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x5ac
cmp eax, 1
mov dword [ebp - 0x584], eax
setne al
mov dword [ebp - 0x580], edx
xor edx, edx
movzx eax, al
mov dword [ebp - 0x590], ecx
lea edi, [eax*8 + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x560], 0
mov ebx, dword [eax]
lea eax, [ebp - 0x564]
mov dword [ebp - 0x588], edi
mov dword [ebp - 0x558], 0x104
mov word [ebp - 0x428], dx
mov dword [esp + 8], eax
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintMonitors_
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x6514c830
mov dword [ebp - 0x57c], 0
imul ebx, edi
lea edi, [ebp - 0x428]
mov dword [ebp - 0x56c], 0
mov eax, edi
mov dword [ebp - 0x574], 0
shr eax, 0x10
mov dword [ebp - 0x594], eax
lea eax, [ebp - 0x220]
add ebx, esi
shr eax, 0x10
mov dword [ebp - 0x58c], ebx
mov dword [ebp - 0x598], eax
jmp 0x6514c4f9
lea eax, [ebp - 0x560]
xor ecx, ecx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0x55c], 0x208
mov word [ebp - 0x220], cx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x6514c6b8
cmp word [ebp - 0x220], 0
je 0x6514c4e0
mov eax, dword [ebp - 0x558]
mov esi, dword [ebp - 0x588]
inc dword [ebp - 0x57c]
lea eax, [esi + eax*2 + 2]
add dword [ebp - 0x56c], eax
mov ebx, dword [ebp - 0x56c]
cmp dword [ebp - 0x584], 1
jbe 0x6514c4c1
mov dword [esp], str.Windows_NT_x86
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, eax
mov eax, dword [ebp - 0x55c]
add eax, ebx
lea eax, [eax + edx*2 + 2]
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x580]
test eax, eax
je 0x6514c4e0
mov ebx, dword [ebp - 0x590]
cmp dword [ebp - 0x56c], ebx
jbe 0x6514c7c8
lea esi, [esi]
xor ebx, ebx
inc dword [ebp - 0x574]
mov dword [ebp - 0x558], 0x104
mov word [ebp - 0x428], bx
lea eax, [ebp - 0x558]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x574]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x564]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x6514c9a8
test byte [0x65157028], 8
je 0x6514c420
mov eax, dword [ebp - 0x594]
test eax, eax
je 0x6514c9c0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x6514c67c
movzx eax, word [ebp - 0x428]
test ax, ax
je 0x6514c980
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x6514c5a0
mov ecx, 0x224c
lea esi, [ebp - 0x432]
mov dword [ebp - 0x570], edi
mov word [ebp - 0x554], cx
lea ecx, [ebp - 0x552]
mov dword [ebp - 0x578], esi
jmp 0x6514c612
cmp ax, 9
je 0x6514c798
cmp ax, 0xa
jne 0x6514c72b
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [edx - 1]
cmp ecx, dword [ebp - 0x578]
ja 0x6514c650
test edx, edx
jle 0x6514c650
mov eax, dword [ebp - 0x570]
mov edx, esi
movzx eax, word [eax]
add dword [ebp - 0x570], 2
cmp ax, 0xd
je 0x6514c7b0
jbe 0x6514c5d8
cmp ax, 0x22
je 0x6514c780
cmp ax, 0x5c
jne 0x6514c71e
mov esi, 0x5c5c
add ecx, 2
mov word [ecx - 2], si
lea esi, [edx - 1]
cmp ecx, dword [ebp - 0x578]
jbe 0x6514c603
mov byte [ecx], 0x22
test esi, esi
jle 0x6514c999
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x554]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x57c]
mov dword [esp + 0xc], str.Monitor__ld:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514c420
lea eax, [ebp - 0x55c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x560]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Driver
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x6514c707
test byte [0x65157028], 8
jne 0x6514c880
mov eax, dword [ebp - 0x560]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514c46b
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x6514c870
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + 0x6515c470]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + 0x6515c470]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + 0x6515c470]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6514c5f8
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c5f8
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c5f8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c5f8
add eax, dword [ebp - 0x588]
mov ebx, eax
test byte [0x65157028], 8
jne 0x6514cab0
mov eax, dword [ebp - 0x580]
mov ecx, dword [ebp - 0x58c]
mov dword [eax], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514c7f0
mov esi, dword [ebp - 0x58c]
mov eax, dword [ebp - 0x558]
cmp dword [ebp - 0x584], 1
lea eax, [esi + eax*2 + 2]
mov dword [ebp - 0x58c], eax
ja 0x6514ca20
mov dword [ebp - 0x580], ebx
jmp 0x6514c4e0
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x56c], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x57c]
mov dword [eax], edi
test byte [0x65157028], 8
jne 0x6514c9e0
mov eax, dword [ebp - 0x56c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ecx], al
inc ecx
jmp 0x6514c5f8
mov edx, dword [ebp - 0x598]
test edx, edx
je 0x6514cb00
lea eax, [ebp - 0x220]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x6514cb23
movzx eax, word [ebp - 0x220]
test ax, ax
je 0x6514cc30
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x21e], 0
jne 0x6514c8d0
mov ecx, 0x224c
lea ebx, [ebp - 0x432]
lea esi, [ebp - 0x220]
mov word [ebp - 0x554], cx
lea ecx, [ebp - 0x552]
mov dword [ebp - 0x578], ebx
jmp 0x6514c94c
cmp ax, 9
je 0x6514cb50
cmp ax, 0xa
jne 0x6514cb86
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea ebx, [edx - 1]
cmp ecx, dword [ebp - 0x578]
ja 0x6514cbf8
test edx, edx
jle 0x6514cbf8
movzx eax, word [esi]
mov edx, ebx
add esi, 2
cmp ax, 0xd
je 0x6514cb68
jbe 0x6514c910
cmp ax, 0x22
je 0x6514cbe0
cmp ax, 0x5c
jne 0x6514cb79
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c930
mov ebx, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], bx
lea eax, [ecx + 1]
jmp 0x6514c66b
mov eax, dword [ebp - 0x564]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514c844
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x6514c67c
mov eax, dword [ebp - 0x56c]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.need__ld_byte_for__ld_entries_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x56c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x580]
mov ecx, dword [ebp - 0x58c]
mov edx, 0x57
mov dword [eax + 4], ecx
xor eax, eax
jmp 0x6514ca47
movzx edx, word [eax + str.Windows_NT_x86]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514ca40
mov dword [esp], str.Windows_NT_x86
call dword [sym.imp.ucrtbase.dll_wcslen]
mov esi, dword [ebp - 0x58c]
lea ecx, [esi + eax*2 + 2]
mov eax, dword [ebp - 0x580]
mov dword [eax + 8], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x220]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514ca78
mov eax, dword [ebp - 0x55c]
mov dword [ebp - 0x580], ebx
and eax, 0xfffffffe
add eax, ecx
mov dword [ebp - 0x58c], eax
jmp 0x6514c4e0
mov eax, dword [ebp - 0x57c]
mov dword [esp + 0xc], str._p:_writing_MONITOR_INFO__ldW__ld_n
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x584]
mov dword [esp + 4], 0x65157028
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x580]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514c7dd
lea eax, [ebp - 0x220]
mov dword [esp], str._04x
mov dword [ebp - 0x570], eax
movzx eax, word [ebp - 0x570]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.using_Driver:__s_n
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514c707
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c930
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c930
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x6514cc28
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + 0x6515c470]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + 0x6515c470]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + 0x6515c470]
and ebx, 0xf
movzx ebx, byte [ebx + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x6514c930
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c930
mov byte [ecx], 0x22
test ebx, ebx
jle 0x6514cc49
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x554]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x6514cb23
mov byte [ecx], al
inc ecx
jmp 0x6514c930
mov esi, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], si
lea eax, [ecx + 1]
jmp 0x6514cc0f