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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x1001a0b8], 8
jne 0x10015c80
test ebx, ebx
je 0x10015b2a
cmp word [ebx], 0
jne 0x10015ce0
cmp esi, 2
jne 0x10015cc0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10015ced
lea eax, [ebp - 0x1c]
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 - 0x2c], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x10015d50
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
je 0x10015d00
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x28], eax
xor eax, eax
call fcn.10004d50
mov esi, eax
test eax, eax
je 0x10016550
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x10016510
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov edi, dword [ebp - 0x28]
mov eax, edi
call eax
mov eax, edi
lea edi, [ebp - 0x14]
sub esp, 4
mov dword [esp], esi
call eax
mov eax, dword [ebp + 0x10]
sub esp, 4
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
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 0x10015dc0
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
je 0x10015dc0
test byte [0x1001a0b8], 1
jne 0x100165c8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x706
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
sub esp, 4
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ebx
call fcn.10002fe0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__ld__p__n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x10015b1c
test byte [0x1001a0b8], 2
jne 0x10015d90
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
jmp 0x10015c70
test byte [0x1001a0b8], 2
jne 0x10016590
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
jmp 0x10015c70
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Attributes
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x10016780
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x28], eax
call eax
sub esp, 4
jmp 0x10015b9b
test byte [0x1001a0b8], 2
je 0x10015c70
mov dword [esp + 0xc], str.Cant_create_Printers_key_n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10015c70
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Level___ld__unsupported__n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10015ccd
mov edx, dword [ebp - 0x14]
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
call eax
mov edx, dword [ebp - 0x30]
test eax, eax
mov esi, eax
je 0x10016977
lea eax, [ebp - 0x10]
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 0x10016650
mov ecx, dword [ebp - 0x10]
xor edi, edi
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
test ecx, ecx
je 0x10016650
mov eax, edi
mov edi, esi
mov esi, eax
jmp 0x10015e46
mov eax, dword [ebp - 0x10]
add esi, 1
cmp esi, eax
jae 0x10016600
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [edi + esi*4]
mov dword [esp], eax
call ebx
test eax, eax
jne 0x10015e38
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
mov dword [ebp - 0x30], eax
call eax
mov eax, dword [ebp - 0x24]
cmp edi, eax
je 0x10015c41
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0xc
test eax, eax
jne 0x10016610
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x24], eax
call eax
lea ebx, [eax + eax]
test byte [0x1001a0b8], 8
jne 0x100166e8
add ebx, 0x24
mov dword [esp], ebx
mov eax, dword [ebp - 0x34]
call eax
mov ebx, eax
test eax, eax
je 0x10016989
mov dword [esp + 4], str.wineps.drv_
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [ebp + 0x10]
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 [0x1001a0b8], 8
jne 0x100166b0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
lea eax, [ebp - 0x10]
mov dword [esp], 0x80000001
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
call eax
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0xc
test eax, eax
je 0x10016660
mov dword [esp + 4], str._15_45
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x10]
mov dword [esp], 0x80000001
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionPrinterPorts
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0xc
test eax, eax
je 0x10016730
mov dword [esp], ebx
mov eax, dword [ebp - 0x30]
call eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
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.Attributes
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
sub esp, 0x18
mov esi, dword [eax + 0x28]
test esi, esi
je 0x10015ff5
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp], ebx
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
call edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
sub esp, 0x18
mov esi, dword [eax + 0x14]
test esi, esi
je 0x10016071
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esp], ebx
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 + 0x10]
mov ebx, dword [ebp - 0x20]
sub esp, 0x18
mov esi, dword [eax + 0x18]
test esi, esi
je 0x100160eb
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 4]
test esi, esi
je 0x1001612c
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x1001616d
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x100161ae
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x24]
test esi, esi
je 0x100161ef
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x10016230
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp], ebx
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
call edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
sub esp, 0x18
mov esi, dword [eax + 0x20]
test esi, esi
je 0x100162ac
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 8]
test esi, esi
je 0x100162ed
mov dword [esp], esi
mov eax, dword [ebp - 0x24]
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 - 0x20]
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
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], ebx
call edi
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
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.Status
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
sub esp, 0x18
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.txTimeout
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
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 eax, dword [ebp - 0x20]
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 [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
test eax, eax
mov edx, eax
js 0x10016630
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x10016800
xor edx, edx
mov eax, ebx
mov esi, dword [ebp - 0x20]
call fcn.100029a0
mov edx, eax
test eax, eax
je 0x10016477
movzx ecx, word [edx + 0x26]
movzx eax, word [eax + 0x24]
mov dword [esp + 0x10], edx
add eax, ecx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x24], edx
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_DevMode
mov dword [esp], esi
call edi
mov edx, dword [ebp - 0x24]
sub esp, 0x18
mov dword [esp], edx
mov eax, dword [ebp - 0x30]
call eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100167f0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov edi, dword [ebp - 0x28]
call edi
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call edi
lea eax, [ebp - 0x10]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.winspool.drv_OpenPrinter2W
mov edx, eax
sub esp, 0x10
mov eax, dword [ebp - 0x10]
test edx, edx
jne 0x10015c72
test byte [0x1001a0b8], 2
je 0x10015c70
mov dword [esp + 0xc], str.OpenPrinter_failing_n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10015c70
test byte [0x1001a0b8], 4
jne 0x100167b0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov edi, dword [ebp - 0x28]
mov eax, edi
call eax
mov eax, edi
sub esp, 4
mov dword [esp], esi
call eax
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x705
jmp 0x10015c70
test byte [0x1001a0b8], 2
je 0x10015c5b
mov dword [esp + 0xc], str.Cant_create_Drivers_key_n
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10015c5b
mov eax, ebx
call fcn.10002fe0
mov dword [esp + 0xc], str.pName___s___unsupported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10015ced
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x24]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x10015c4e
mov ecx, esi
mov esi, edi
mov edi, ecx
jmp 0x10015e62
test byte [0x1001a0b8], 1
jne 0x10016878
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x709
jmp 0x10015c5b
test byte [0x1001a0b8], 1
jne 0x100168b0
mov edx, 0xdc
jmp 0x10016417
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10015c41
mov dword [esp], ebx
mov eax, dword [ebp - 0x24]
call eax
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
sub esp, 4
jmp 0x10015f3b
mov eax, ebx
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x10015f0f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
call fcn.10002fe0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], str.__p___s_n
mov dword [esp + 8], str.set_devices_and_printerports
mov dword [esp + 4], 0x1001a0b8
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.100032c0
jmp 0x10015ec7
mov dword [esp], ebx
mov eax, dword [ebp - 0x24]
call eax
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
sub esp, 4
jmp 0x10015f6e
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x70a
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x10015c70
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1001651d
mov dword [esp], ebx
mov eax, dword [ebp - 0x30]
call eax
jmp 0x10016485
mov dword [esp + 4], edx
mov dword [ebp - 0x2c], edx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov word [eax + 0x44], dx
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call sym.winspool.drv_DocumentPropertiesW
sub esp, 0x18
test eax, eax
jns 0x100168e8
test byte [0x1001a0b8], 4
jne 0x1001692a
mov dword [esp], esi
mov eax, dword [ebp - 0x30]
call eax
jmp 0x10016425
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x1001661d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x1001663d
mov eax, dword [ebp + 0x10]
mov ebx, 0x1f
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
mov edx, eax
mov eax, 0x3e
cmp edx, 0x1f
jbe 0x10016962
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], edx
call sub.ucrtbase.dll_memcpy
xor edx, edx
mov word [esi + ebx*2], dx
mov ebx, esi
jmp 0x10016425
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x10016867
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
mov ebx, eax
lea eax, [eax + eax]
jmp 0x10016907
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xe
jmp 0x10015c41
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
jmp 0x10015f76