Function at 0x6514af30
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 - 0x578], 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 - 0x57c], 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 0x6514b450
lea eax, [esi + ebx*4]
mov dword [ebp - 0x580], eax
test esi, esi
je 0x6514aff0
cmp edi, 0x15
jbe 0x6514aff0
lea ebx, [esi + 4]
test byte [0x651531d8], 8
jne 0x6514b660
mov eax, dword [ebp - 0x578]
mov ecx, dword [ebp - 0x580]
mov dword [eax], ecx
xor eax, eax
movzx edx, word [eax + str.winprint]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514afd0
add dword [ebp - 0x580], 0x12
mov dword [ebp - 0x578], ebx
lea ebx, [ebp - 0x428]
xor edi, edi
mov dword [ebp - 0x574], 1
mov dword [ebp - 0x570], 0x16
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x584], eax
lea eax, [ebp - 0x220]
shr eax, 0x10
mov dword [ebp - 0x58c], eax
jmp 0x6514b08e
cmp word [ebp - 0x220], 0
je 0x6514b078
mov eax, dword [ebp - 0x558]
mov esi, dword [ebp - 0x578]
add dword [ebp - 0x574], 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x570]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x570], eax
test esi, esi
je 0x6514b078
cmp dword [ebp - 0x57c], eax
jae 0x6514b3b8
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 0x6514b410
mov dword [esp + 4], str.winprint
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x6514b410
test byte [0x651531d8], 8
jne 0x6514b1b8
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 0x6514b030
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 0x6514b19d
test byte [0x651531d8], 8
jne 0x6514b480
mov eax, dword [ebp - 0x560]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6514b030
mov eax, dword [ebp - 0x584]
test eax, eax
je 0x6514b5a8
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 0x6514b2dc
cmp word [ebp - 0x428], 0
je 0x6514b580
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x6514b1f8
mov ecx, 0x224c
mov dword [ebp - 0x56c], edx
mov esi, ebx
mov word [ebp - 0x554], cx
lea ecx, [ebp - 0x552]
mov dword [ebp - 0x588], edi
jmp 0x6514b26d
cmp ax, 9
je 0x6514b318
cmp ax, 0xa
jne 0x6514b34e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edx, dword [ebp - 0x56c]
lea edi, [ebp - 0x432]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x6514b2a8
test edx, edx
jle 0x6514b2a8
mov dword [ebp - 0x56c], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514b330
jbe 0x6514b230
cmp ax, 0x22
je 0x6514b3a0
cmp ax, 0x5c
jne 0x6514b341
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514b250
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x588]
test eax, eax
jle 0x6514b599
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.PrintProcessor__ld:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_local_printprocessors
mov dword [esp + 4], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514b103
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514b250
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514b250
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514b470
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 0x6514b250
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514b250
add esi, 4
test byte [0x651531d8], 8
jne 0x6514b610
mov eax, dword [ebp - 0x578]
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x56c], ecx
mov dword [eax], edx
mov ecx, edx
xor eax, eax
movzx edx, word [ebx + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x6514b3e0
mov ecx, dword [ebp - 0x56c]
mov dword [ebp - 0x578], esi
add dword [ebp - 0x580], ecx
jmp 0x6514b078
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 0x6514b5c8
mov eax, dword [ebp - 0x570]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x570], 0
jmp 0x6514b422
mov byte [ecx], al
add ecx, 1
jmp 0x6514b250
mov eax, dword [ebp - 0x58c]
test eax, eax
je 0x6514b6a0
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 0x6514b6c5
cmp word [ebp - 0x220], 0
je 0x6514b7da
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x21e], 0
jne 0x6514b4c8
mov esi, 0x224c
mov dword [ebp - 0x588], edi
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], si
lea esi, [ebp - 0x220]
mov dword [ebp - 0x56c], edx
jmp 0x6514b545
cmp ax, 9
je 0x6514b780
cmp ax, 0xa
jne 0x6514b6ff
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edi, dword [ebp - 0x56c]
lea eax, [edi - 1]
test edi, edi
jle 0x6514b798
lea edi, [ebp - 0x432]
cmp ecx, edi
ja 0x6514b798
mov dword [ebp - 0x56c], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x6514b768
jbe 0x6514b500
cmp ax, 0x22
je 0x6514b750
cmp ax, 0x5c
jne 0x6514b6f2
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6514b520
mov eax, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], ax
lea eax, [ecx + 1]
jmp 0x6514b2c9
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 0x6514b2dc
mov eax, dword [ebp - 0x570]
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], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebp - 0x570]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x574]
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 - 0x578]
mov dword [esp + 4], 0x651531d8
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 0x6514b3c8
mov eax, dword [ebp - 0x578]
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], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514afc0
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 edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.using_Driver:__s_n
mov dword [esp + 8], str.get_local_printprocessors
mov dword [esp + 4], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514b19d
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6514b7d0
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 0x6514b520
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514b520
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514b520
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6514b520
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x588]
test eax, eax
jle 0x6514b7f3
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 0x6514b6c5
mov byte [ecx], al
add ecx, 1
jmp 0x6514b520
mov eax, 0x224c
mov byte [ebp - 0x552], 0x22
lea ecx, [ebp - 0x552]
mov word [ebp - 0x554], ax
lea eax, [ecx + 1]
jmp 0x6514b7b5