Function at 0x64185120
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
test byte [0x6419a04c], 8
jne 0x641852b0
test ebx, ebx
je 0x6418515a
cmp word [ebx], 0
jne 0x64185320
cmp esi, 2
jne 0x641852f0
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x6418532d
lea eax, [ebp - 0x28]
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegCreateKeyW]
mov dword [esp], 0x80000002
mov dword [ebp - 0x48], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x641853a0
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x64185350
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x44], eax
xor eax, eax
call sym._WINSPOOL_OpenDriverReg
mov edi, eax
test eax, eax
je 0x64185b70
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x64185b30
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, esi
call eax
mov eax, esi
sub esp, 4
mov dword [esp], edi
lea edi, [ebp - 0x20]
call eax
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov eax, dword [eax + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.winspool.drv_EnumPrintProcessorsW
sub esp, 0x1c
test eax, eax
jne 0x64185410
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
je 0x64185410
test byte [0x6419a04c], 1
jne 0x64185bc8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x706
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 4
xor edi, edi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.__s__ld__p__n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6418514c
test byte [0x6419a04c], 2
jne 0x641853e0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
xor edi, edi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test byte [0x6419a04c], 2
jne 0x64185b90
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Attributes
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x64185dc8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x44], eax
call eax
sub esp, 4
jmp 0x641851cb
test byte [0x6419a04c], 2
je 0x64185299
mov dword [esp + 0xc], str.Cant_create_Printers_key_n
mov dword [esp + 8], str.AddPrinterW
xor edi, edi
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6418529b
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Level___ld__unsupported__n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x641852fd
mov edx, dword [ebp - 0x20]
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
call eax
mov edx, dword [ebp - 0x4c]
test eax, eax
mov esi, eax
je 0x64185f96
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.winspool.drv_EnumPrintProcessorsW
sub esp, 0x1c
test eax, eax
je 0x64185e00
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
xor edi, edi
test ecx, ecx
je 0x64185e00
mov eax, edi
mov edi, esi
mov esi, eax
jmp 0x64185494
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, eax
jae 0x64185c30
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [edi + esi*4]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x64185488
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x4c], eax
call eax
mov eax, dword [ebp - 0x40]
cmp edi, eax
je 0x64185271
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 0xc
test eax, eax
jne 0x64185c40
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x40], eax
call eax
lea ebx, [eax + eax]
test byte [0x6419a04c], 8
jne 0x64185d38
add ebx, 0x24
mov eax, dword [ebp - 0x50]
mov dword [esp], ebx
call eax
mov ebx, eax
test eax, eax
je 0x64185fa8
mov dword [esp + 4], str.wineps.drv_
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.ucrtbase.dll_wcscat]
mov eax, dword [eax + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
test byte [0x6419a04c], 8
jne 0x64185d00
lea eax, [ebp - 0x1c]
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], 0x80000001
call eax
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0xc
test eax, eax
je 0x64185cb0
mov dword [esp + 4], str._15_45
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x1c]
mov dword [esp], 0x80000001
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionPrinterPorts
call eax
sub esp, 0xc
test eax, eax
je 0x64185d78
mov dword [esp], ebx
mov eax, dword [ebp - 0x4c]
call eax
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Attributes
mov dword [esp], eax
call edi
mov esi, dword [ebx + 0x28]
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
test esi, esi
je 0x64185640
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Datatype
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x3c]
mov dword [esp], ebx
mov dword [esp + 0x14], 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_Priority
call edi
mov esi, dword [esi + 0x14]
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
test esi, esi
je 0x641856b9
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.dnsTimeout
call edi
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov esi, dword [eax + 0x18]
test esi, esi
je 0x64185733
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Location
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 4]
test esi, esi
je 0x64185774
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x641857b5
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Parameters
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x641857f6
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Port
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x64185837
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Print_Processor
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x64185878
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Printer_Driver
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x14], 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Priority
call edi
mov esi, dword [esi + 0x20]
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
test esi, esi
je 0x641858f1
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Separator_File
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 8]
test esi, esi
je 0x64185932
mov dword [esp], esi
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Share_Name
call edi
mov ebx, dword [ebp - 0x2c]
sub esp, 0x18
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.StartTime
mov dword [esp], ebx
call edi
mov eax, dword [esi + 0x48]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Status
mov dword [esp], eax
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.txTimeout
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x44]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.UntilTime
mov dword [esp], eax
call edi
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [esi + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
mov edx, eax
test eax, eax
js 0x64185c60
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x64185e60
xor edx, edx
mov eax, ebx
mov esi, dword [ebp - 0x2c]
call sym._DEVMODEWtoA
mov edx, eax
test eax, eax
je 0x64185ab3
movzx ecx, word [edx + 0x26]
movzx eax, word [eax + 0x24]
mov dword [ebp - 0x40], edx
mov dword [esp + 0x10], edx
add eax, ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_DevMode
mov dword [esp], esi
call edi
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
sub esp, 0x18
mov dword [esp], edx
call eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x64185e50
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x44]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
call edi
lea eax, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.winspool.drv_OpenPrinter2W
mov edi, dword [ebp - 0x1c]
sub esp, 0x10
test eax, eax
jne 0x6418530c
test byte [0x6419a04c], 2
je 0x64185299
mov dword [esp + 0xc], str.OpenPrinter_failing_n
jmp 0x641853b5
test byte [0x6419a04c], 4
jne 0x64185e10
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, ebx
call eax
mov eax, ebx
sub esp, 4
mov dword [esp], edi
xor edi, edi
call eax
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x705
jmp 0x6418530c
test byte [0x6419a04c], 2
jne 0x64185c00
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 4
jmp 0x6418530c
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.pName___s___unsupported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x6418532d
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x24]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Cant_find_processor__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6418527e
mov dword [esp + 0xc], str.Cant_create_Drivers_key_n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64185b7d
mov edx, esi
mov esi, edi
mov edi, edx
jmp 0x641854b0
test byte [0x6419a04c], 1
jne 0x64185ed0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x709
jmp 0x6418528b
mov edx, 0xdc
test byte [0x6419a04c], 1
je 0x64185a53
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], edx
mov eax, dword [eax + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.DocumentPropertiesW_on_printer__s_fails_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x48]
jmp 0x64185a53
mov dword [esp], ebx
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 4
jmp 0x64185589
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.using__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.set_devices_and_printerports
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6418555d
mov edi, dword [ebp - 0x3c]
mov eax, dword [edi + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__p___s_n
mov dword [esp + 8], str.set_devices_and_printerports
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64185515
mov dword [esp], ebx
mov eax, dword [ebp - 0x40]
call eax
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
sub esp, 4
jmp 0x641855bc
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x70a
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x6418530c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x64185271
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Cant_find_driver__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x64185b3d
mov dword [esp], ebx
mov eax, dword [ebp - 0x4c]
call eax
jmp 0x64185ac1
mov dword [esp + 4], edx
mov dword [ebp - 0x48], edx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0x48]
mov esi, eax
mov word [eax + 0x44], dx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
test eax, eax
jns 0x64185f08
test byte [0x6419a04c], 4
jne 0x64185f4a
mov dword [esp], esi
mov eax, dword [ebp - 0x4c]
call eax
jmp 0x64185a61
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Cant_create_printer__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x64185c4d
mov eax, dword [ebp - 0x3c]
mov ebx, 0x1f
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edx, eax
mov eax, 0x3e
cmp edx, 0x1f
jbe 0x64185f82
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 4]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], edx
call sym._memcpy
xor edx, edx
mov word [esi + ebx*2], dx
mov ebx, esi
jmp 0x64185a61
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.DocumentPropertiesW_on_printer__s_failed__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x64185ec3
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov ebx, eax
add eax, eax
jmp 0x64185f27
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xe
jmp 0x64185271
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
jmp 0x641855c4