Function at 0x6514ba80
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 - 0x57c], eax
setne al
mov dword [ebp - 0x578], edx
xor edx, edx
movzx eax, al
mov dword [ebp - 0x588], 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 - 0x580], 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 0x6514bf90
mov dword [ebp - 0x574], 0
imul ebx, edi
xor edi, edi
mov dword [ebp - 0x56c], 0
add ebx, esi
mov dword [ebp - 0x584], ebx
lea ebx, [ebp - 0x428]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x58c], eax
lea eax, [ebp - 0x220]
shr eax, 0x10
mov dword [ebp - 0x594], eax
jmp 0x6514bbe6
cmp word [ebp - 0x220], 0
je 0x6514bbd0
mov esi, dword [ebp - 0x580]
mov eax, dword [ebp - 0x558]
add dword [ebp - 0x574], 1
lea eax, [esi + eax*2 + 2]
add dword [ebp - 0x56c], eax
mov esi, dword [ebp - 0x56c]
cmp dword [ebp - 0x57c], 1
jbe 0x6514bbaf
mov dword [esp], str.Windows_NT_x86
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, eax
mov eax, dword [ebp - 0x55c]
add eax, esi
lea eax, [eax + edx*2 + 2]
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x578]
test eax, eax
je 0x6514bbd0
mov ecx, dword [ebp - 0x588]
cmp dword [ebp - 0x56c], ecx
jbe 0x6514bee8
nop
lea esi, [esi]
mov dword [ebp - 0x558], 0x104
xor eax, eax
add edi, 1
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x558]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x564]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x6514bf50
test byte [0x651531d8], 8
jne 0x6514bcf0
lea eax, [ebp - 0x560]
xor edx, edx
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0x55c], 0x208
mov word [ebp - 0x220], dx
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
jne 0x6514bb58
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 0x6514bcd9
test byte [0x651531d8], 8
jne 0x6514bfc0
mov eax, dword [ebp - 0x560]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514bb58
mov eax, dword [ebp - 0x58c]
test eax, eax
je 0x6514c0e8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6514be0c
cmp word [ebp - 0x428], 0
je 0x6514c0c0
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6514bd30
mov eax, 0x224c
mov dword [ebp - 0x590], edi
lea ecx, [ebp - 0x552]
mov esi, ebx
mov word [ebp - 0x554], ax
mov dword [ebp - 0x570], edx
jmp 0x6514bd9d
cmp ax, 9
je 0x6514be48
cmp ax, 0xa
jne 0x6514be7e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edx, dword [ebp - 0x570]
lea edi, [ebp - 0x432]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x6514bdd8
test edx, edx
jle 0x6514bdd8
mov dword [ebp - 0x570], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514be60
jbe 0x6514bd60
cmp ax, 0x22
je 0x6514bed0
cmp ax, 0x5c
jne 0x6514be71
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514bd80
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x590]
test eax, eax
jle 0x6514c0d9
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
mov edx, eax
mov eax, dword [ebp - 0x574]
mov dword [esp + 0x14], edx
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], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514bc3f
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514bd80
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514bd80
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514bfb0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcopy_servername_from_name]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x6514bd80
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514bd80
add eax, dword [ebp - 0x580]
mov esi, eax
test byte [0x651531d8], 8
jne 0x6514c1d0
mov eax, dword [ebp - 0x578]
mov ecx, dword [ebp - 0x584]
mov dword [eax], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514bf10
mov ecx, dword [ebp - 0x584]
mov eax, dword [ebp - 0x558]
cmp dword [ebp - 0x57c], 1
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x584], eax
ja 0x6514c150
mov dword [ebp - 0x578], esi
jmp 0x6514bbd0
mov eax, dword [ebp - 0x564]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x574]
mov dword [eax], ebx
test byte [0x651531d8], 8
jne 0x6514c108
mov eax, dword [ebp - 0x56c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x56c], 0
jmp 0x6514bf62
mov byte [ecx], al
add ecx, 1
jmp 0x6514bd80
mov eax, dword [ebp - 0x594]
test eax, eax
je 0x6514c220
lea eax, [ebp - 0x220]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x6514c245
cmp word [ebp - 0x220], 0
je 0x6514c35a
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x21e], 0
jne 0x6514c008
mov esi, 0x224c
mov dword [ebp - 0x590], edi
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], si
lea esi, [ebp - 0x220]
mov dword [ebp - 0x570], edx
jmp 0x6514c085
cmp ax, 9
je 0x6514c278
cmp ax, 0xa
jne 0x6514c2ae
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edi, dword [ebp - 0x570]
lea eax, [edi - 1]
test edi, edi
jle 0x6514c318
lea edi, [ebp - 0x432]
cmp ecx, edi
ja 0x6514c318
mov dword [ebp - 0x570], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514c290
jbe 0x6514c040
cmp ax, 0x22
je 0x6514c300
cmp ax, 0x5c
jne 0x6514c2a1
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514c060
mov edx, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], dx
lea eax, [ecx + 1]
jmp 0x6514bdf9
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
jmp 0x6514be0c
mov eax, dword [ebp - 0x56c]
mov dword [esp + 0x14], ebx
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], 0x651531d8
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 - 0x578]
mov ecx, dword [ebp - 0x584]
mov dword [eax + 4], ecx
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.Windows_NT_x86]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514c168
mov dword [esp], str.Windows_NT_x86
call dword [sym.imp.ucrtbase.dll_wcslen]
mov ecx, dword [ebp - 0x584]
lea ecx, [ecx + eax*2 + 2]
mov eax, dword [ebp - 0x578]
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 0x6514c1a0
mov eax, dword [ebp - 0x55c]
mov dword [ebp - 0x578], esi
and eax, 0xfffffffe
add eax, ecx
mov dword [ebp - 0x584], eax
jmp 0x6514bbd0
mov eax, dword [ebp - 0x574]
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 - 0x57c]
mov dword [esp + 4], 0x651531d8
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x578]
mov dword [esp], 3
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514befd
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 edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.using_Driver:__s_n
mov dword [esp + 8], str.get_local_monitors
mov dword [esp + 4], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514bcd9
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c060
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c060
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514c350
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcopy_servername_from_name]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdefcopy_servername_from_name]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x6514c060
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514c060
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x590]
test eax, eax
jle 0x6514c373
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x554]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x6514c245
mov byte [ecx], al
add ecx, 1
jmp 0x6514c060
mov byte [ebp - 0x552], 0x22
mov ecx, 0x224c
mov word [ebp - 0x554], cx
lea ecx, [ebp - 0x552]
lea eax, [ecx + 1]
jmp 0x6514c335