Function at 0x65155e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x58c
mov dword [ebp - 0x56c], eax
mov esi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], str.Windows_NT_x86
call esi
mov dword [esp], edi
mov ebx, eax
call esi
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
lea esi, [ebx + eax + 0x49]
add esi, esi
mov dword [ebp - 0x55c], esi
mov dword [esp], esi
call edi
test eax, eax
je 0x65156091
shr esi, 1
mov dword [esp + 0xc], str.Windows_NT_x86
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp + 8], str.SystemCurrentControlSetControlPrintEnvironments_sPrint_Processors_
mov dword [esp], eax
call sym._swprintf
mov eax, dword [ebp - 0x56c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x558]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov esi, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 0xc
mov dword [esp], ebx
mov dword [ebp - 0x570], eax
call eax
test esi, esi
jne 0x65156091
lea ebx, [ebp - 0x55c]
lea esi, [ebp - 0x428]
mov dword [esp + 0x10], 0x410
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._fpGetPrintProcessorDirectory_24
sub esp, 0x18
test eax, eax
je 0x651561e0
mov eax, dword [ebp - 0x55c]
mov edx, 0x5c
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov ecx, eax
and eax, 0xfffffffe
mov dword [esp + 8], 0
shr ecx, 1
add eax, esi
mov dword [esp + 4], str.Driver
mov word [ebp + ecx*2 - 0x42a], dx
mov edx, 0x208
sub edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x558]
add edx, edx
mov dword [ebp - 0x55c], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x558]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
jne 0x65156091
mov dword [esp], 0x18
call edi
mov ebx, eax
test eax, eax
je 0x65156091
test byte [0x65157028], 8
jne 0x651560a0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [ebx], eax
sub esp, 4
test eax, eax
je 0x65156086
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], str.EnumPrintProcessorDatatypesW
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebx + 8], eax
mov dword [esp + 4], str.OpenPrintProcessor
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebx + 0xc], eax
mov dword [esp + 4], str.PrintDocumentOnPrintProcessor
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebx + 0x10], eax
mov dword [esp + 4], str.ClosePrintProcessor
mov eax, dword [ebx]
mov dword [esp], eax
call esi
mov edx, dword [ebx + 8]
mov dword [ebx + 0x14], eax
sub esp, 8
test edx, edx
je 0x65156078
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x65156078
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x65156078
test eax, eax
je 0x65156078
mov eax, dword [ebp - 0x56c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 4], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x570]
call eax
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
shr eax, 0x10
je 0x651562d0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x651561b2
movzx eax, word [ebp - 0x428]
test ax, ax
je 0x651562a8
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x651560e0
mov ecx, 0x224c
mov dword [ebp - 0x574], ebx
mov ebx, esi
lea edi, [ebp - 0x552]
mov word [ebp - 0x554], cx
jmp 0x65156146
cmp ax, 9
je 0x65156288
cmp ax, 0xa
jne 0x6515621e
mov eax, 0x6e5c
add edi, 2
mov word [edi - 2], ax
lea eax, [ebp - 0x432]
lea ecx, [edx - 1]
cmp edi, eax
ja 0x65156180
test edx, edx
jle 0x65156180
movzx eax, word [ebx]
mov edx, ecx
add ebx, 2
cmp ax, 0xd
je 0x65156200
jbe 0x65156110
cmp ax, 0x22
je 0x65156270
cmp ax, 0x5c
jne 0x65156211
mov eax, 0x5c5c
add edi, 2
mov word [edi - 2], ax
jmp 0x65156130
mov byte [edi], 0x22
mov ebx, dword [ebp - 0x574]
test ecx, ecx
jle 0x651562c1
mov ecx, 0x2e2e
mov byte [edi + 3], 0x2e
lea eax, [edi + 4]
mov word [edi + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x554]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.loading_print_processor:__s_n
mov dword [esp + 8], str.print_proc_load
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x65155fd0
mov eax, dword [ebp - 0x558]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x725c
add edi, 2
mov word [edi - 2], ax
jmp 0x65156130
lea ecx, [eax - 0x20]
cmp cx, 0x5e
jbe 0x651562a0
mov ecx, eax
mov byte [edi], 0x5c
add edi, 5
shr cx, 0xc
movzx ecx, cx
movzx ecx, byte [ecx + 0x6515c470]
mov byte [edi - 4], cl
mov ecx, eax
shr cx, 8
and ecx, 0xf
movzx ecx, byte [ecx + 0x6515c470]
mov byte [edi - 3], cl
mov ecx, eax
and eax, 0xf
shr cx, 4
movzx eax, byte [eax + 0x6515c470]
and ecx, 0xf
movzx ecx, byte [ecx + 0x6515c470]
mov byte [edi - 1], al
mov byte [edi - 2], cl
jmp 0x65156130
mov eax, 0x225c
add edi, 2
mov word [edi - 2], ax
jmp 0x65156130
mov eax, 0x745c
add edi, 2
mov word [edi - 2], ax
jmp 0x65156130
mov byte [edi], al
inc edi
jmp 0x65156130
mov eax, 0x224c
mov byte [ebp - 0x552], 0x22
lea edi, [ebp - 0x552]
mov word [ebp - 0x554], ax
lea eax, [edi + 1]
jmp 0x651561a1
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x651561b2