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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x5ac
mov dword [ebp - 0x57c], edx
mov ebx, dword [ebp + 8]
xor edx, edx
mov word [ebp - 0x428], dx
lea edx, [ebp - 0x564]
mov ebx, dword [ebx]
mov dword [ebp - 0x580], ecx
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x558], 0x104
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x6514d138
lea eax, [esi + ebx*4]
mov dword [ebp - 0x584], eax
test esi, esi
je 0x6514cd20
cmp edi, 0x15
jbe 0x6514cd20
lea ebx, [esi + 4]
test byte [0x65157028], 8
jne 0x6514d370
mov eax, dword [ebp - 0x57c]
mov ecx, dword [ebp - 0x584]
mov edx, 0x77
mov dword [eax], ecx
xor eax, eax
jmp 0x6514cd07
movzx edx, word [eax + str.winprint]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514cd00
add dword [ebp - 0x584], 0x12
mov dword [ebp - 0x57c], ebx
mov dword [ebp - 0x578], 1
lea ebx, [ebp - 0x428]
mov dword [ebp - 0x574], 0x16
mov eax, ebx
mov dword [ebp - 0x570], 0
shr eax, 0x10
mov dword [ebp - 0x588], eax
lea eax, [ebp - 0x220]
shr eax, 0x10
mov dword [ebp - 0x58c], eax
jmp 0x6514ce11
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
je 0x6514cfe8
cmp word [ebp - 0x220], 0
je 0x6514cdf8
mov eax, dword [ebp - 0x558]
mov esi, dword [ebp - 0x57c]
inc dword [ebp - 0x578]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x574]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x574], eax
test esi, esi
je 0x6514cdf8
cmp dword [ebp - 0x580], eax
jae 0x6514d0f0
lea esi, [esi]
nop
xor eax, eax
inc dword [ebp - 0x570]
mov dword [ebp - 0x558], 0x104
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x558]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x570]
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], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x6514d2a8
mov dword [esp + 4], str.winprint
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x6514d2a8
test byte [0x65157028], 8
je 0x6514cd68
mov eax, dword [ebp - 0x588]
test eax, eax
je 0x6514d2c0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x6514cfac
movzx eax, word [ebp - 0x428]
test ax, ax
je 0x6514d280
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6514ced0
mov ecx, 0x224c
mov dword [ebp - 0x56c], edx
mov esi, ebx
mov word [ebp - 0x554], cx
lea ecx, [ebp - 0x552]
jmp 0x6514cf40
cmp ax, 9
je 0x6514d0d8
cmp ax, 0xa
jne 0x6514d06e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x56c]
lea edi, [eax - 1]
test eax, eax
jle 0x6514cf80
lea eax, [ebp - 0x432]
cmp ecx, eax
ja 0x6514cf80
mov dword [ebp - 0x56c], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514d050
jbe 0x6514cf00
cmp ax, 0x22
je 0x6514d0c0
cmp ax, 0x5c
jne 0x6514d061
mov eax, dword [ebp - 0x56c]
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
lea edi, [eax - 1]
test eax, eax
jg 0x6514cf2d
lea esi, [esi]
mov byte [ecx], 0x22
test edi, edi
jle 0x6514d299
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 dword [esp + 0x14], eax
mov eax, dword [ebp - 0x578]
mov dword [esp + 0xc], str.PrintProcessor__ld:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_printprocessors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514cd68
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 0x6514d037
test byte [0x65157028], 8
jne 0x6514d180
mov eax, dword [ebp - 0x560]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514cdb3
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514cf20
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514d178
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + 0x6515c470]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + 0x6515c470]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x6515c470]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x6514cf20
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514cf20
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514cf20
add esi, 4
test byte [0x65157028], 8
jne 0x6514d320
mov eax, dword [ebp - 0x57c]
mov edi, dword [ebp - 0x584]
mov dword [eax], edi
xor eax, eax
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6514d110
add dword [ebp - 0x584], ecx
mov dword [ebp - 0x57c], esi
jmp 0x6514cdf8
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x574], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x578]
mov dword [eax], ebx
test byte [0x65157028], 8
jne 0x6514d2e0
mov eax, dword [ebp - 0x574]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ecx], al
inc ecx
jmp 0x6514cf20
mov eax, dword [ebp - 0x58c]
test eax, eax
je 0x6514d3b0
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 0x6514d3d3
movzx eax, word [ebp - 0x220]
test ax, ax
je 0x6514d4e0
lea esi, [esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x21e], 0
jne 0x6514d1d0
mov esi, 0x224c
mov dword [ebp - 0x56c], edx
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], si
lea esi, [ebp - 0x220]
jmp 0x6514d248
cmp ax, 9
je 0x6514d490
cmp ax, 0xa
jne 0x6514d40d
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x56c]
lea edi, [eax - 1]
test eax, eax
jle 0x6514d4a8
lea eax, [ebp - 0x432]
cmp ecx, eax
ja 0x6514d4a8
mov dword [ebp - 0x56c], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514d478
jbe 0x6514d200
cmp ax, 0x22
je 0x6514d460
cmp ax, 0x5c
jne 0x6514d400
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514d220
mov eax, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], ax
lea eax, [ecx + 1]
jmp 0x6514cf9b
mov eax, dword [ebp - 0x564]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514d14c
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x6514cfac
mov eax, dword [ebp - 0x574]
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_printprocessors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x574]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x578]
mov dword [esp + 0xc], str._p:_writing_PRINTPROCESSOR_INFO_1W__ld_n
mov dword [esp + 8], str.get_local_printprocessors
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x57c]
mov dword [esp + 4], 0x65157028
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x558]
lea ecx, [eax + eax + 2]
jmp 0x6514d100
mov eax, dword [ebp - 0x57c]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], str._p:_writing_PRINTPROCESSOR_INFO_1W__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_printprocessors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514cce0
lea eax, [ebp - 0x220]
mov dword [esp], str._04x
mov dword [ebp - 0x56c], eax
movzx eax, word [ebp - 0x56c]
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_printprocessors
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514d037
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514d4d8
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + 0x6515c470]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + 0x6515c470]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x6515c470]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + 0x6515c470]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x6514d220
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514d220
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514d220
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514d220
mov byte [ecx], 0x22
test edi, edi
jle 0x6514d4f9
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
jmp 0x6514d3d3
mov byte [ecx], al
inc ecx
jmp 0x6514d220
mov edi, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], di
lea eax, [ecx + 1]
jmp 0x6514d4bf