Function at 0x641906f0
Capabilities:
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, 0x48
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
test byte [0x6419a04c], 8
jne 0x64190c80
test edx, edx
je 0x6419072d
test byte [0x6419a04c], 1
jne 0x64190cc0
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test edi, edi
je 0x64190c58
cmp edi, dword [0x6419a304]
ja 0x64190c58
mov eax, dword [0x6419a324]
mov edi, dword [eax + edi*4 - 4]
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test edi, edi
je 0x64190d20
mov eax, dword [edi]
test eax, eax
je 0x64190d20
lea edx, [ebp - 0x20]
call sym._open_printer_reg_key
test eax, eax
jne 0x64190d20
cmp esi, 2
je 0x64190820
lea eax, [esi - 8]
cmp eax, 1
ja 0x64190c30
mov eax, dword [ebx]
mov esi, dword [ebp - 0x20]
xor ebx, ebx
test eax, eax
je 0x64190800
xor edx, edx
call sym._DEVMODEWtoA
mov ebx, eax
test eax, eax
je 0x641907f8
movzx eax, word [eax + 0x24]
movzx edx, word [ebx + 0x26]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 3
add eax, edx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov dword [esp + 4], str.Default_DevMode
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov esi, dword [ebp - 0x20]
mov ebx, 1
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, dword [ebx + 4]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
test edx, edx
je 0x6419086b
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
call esi
sub esp, 0x18
mov edx, dword [ebx + 8]
test edx, edx
je 0x641908ad
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Share_Name
call esi
sub esp, 0x18
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x641908ef
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Port
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x64190931
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Printer_Driver
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x64190973
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x641909b5
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Location
call esi
sub esp, 0x18
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x64190a0a
xor edx, edx
call sym._DEVMODEWtoA
mov edx, eax
test eax, eax
je 0x64190a0a
movzx ecx, word [edx + 0x26]
movzx eax, word [eax + 0x24]
mov dword [ebp - 0x2c], 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], edi
call esi
mov edx, dword [ebp - 0x2c]
sub esp, 0x18
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x64190a4c
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Separator_File
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x64190a8e
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Print_Processor
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x64190ad0
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Datatype
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x64190b12
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Parameters
call esi
sub esp, 0x18
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 dword [esp + 8], 0
mov dword [esp + 4], str.Attributes
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x38]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
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.Priority
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x3c]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
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.Default_Priority
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x40]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
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.StartTime
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x44]
mov ebx, 1
sub esp, 0x18
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
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.UntilTime
mov dword [esp], edi
call esi
mov esi, dword [ebp - 0x20]
sub esp, 0x18
jmp 0x64190800
test byte [0x6419a04c], 1
jne 0x64190cf0
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x20]
mov dword [eax + 0x34], 0x7c
xor ebx, ebx
jmp 0x64190800
mov dword [esp], 0x6419a328
xor ebx, ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p___ld___p___ld__n
mov dword [esp + 8], str.SetPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x6419071c
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Ignoring_command__ld_n
mov dword [esp + 8], str.SetPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6419072d
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Unimplemented_level__ld_n
mov dword [esp + 8], str.SetPrinterW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x64190c3d
lea esp, [ebp - 0x10]
xor ebx, ebx
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10