Function at 0x469bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2b4], 0xffffffff
cmp dword [ebp + 0xc], 0
jne 0x469beb
or eax, 0xffffffff
jmp 0x46a5ff
mov eax, dword [ebp + 8]
push eax
call fcn.0046a640
cmp dword [ebp + 0x18], 0
je 0x469eac
push str.LTAddPrinter___adds_port_n
push 0
call fcn.0046b360
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x458], edx
cmp dword [ebp - 0x458], 0xa
ja case.0x469c2c.1
mov eax, dword [ebp - 0x458]
jmp dword [eax*4 + 0x46a610]
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00471b60
add esp, 4
mov dword [ebp - 0x3c4], eax
cmp dword [ebp - 0x3c4], 0
jne 0x469c56
or eax, 0xffffffff
jmp 0x46a5ff
mov edx, dword [ebp - 0x3c4]
push edx
lea eax, [ebp - 0x3c0]
push eax
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov cl, byte [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004714c0
add esp, 0x14
mov dword [ebp - 0x3c8], eax
cmp dword [ebp - 0x3c8], 0
jne 0x469ca4
or eax, 0xffffffff
jmp 0x46a5ff
mov eax, dword [ebp - 0x3c8]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov edx, dword [ebp + 0x38]
push edx
mov eax, dword [ebp + 0x44]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00471d30
add esp, 0x10
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jne 0x469cee
or eax, 0xffffffff
jmp 0x46a5ff
mov eax, dword [ebp - 0x3cc]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.00489ae0
add esp, 8
jmp 0x469e94
cmp dword [ebp + 0x3c], 0
je 0x469d51
cmp dword [ebp + 0x40], 0
je 0x469d51
mov edx, dword [ebp + 0x3c]
movsx eax, byte [edx]
test eax, eax
je 0x469d51
mov ecx, dword [ebp + 0x40]
movsx edx, byte [ecx]
test edx, edx
je 0x469d51
mov eax, dword [ebp + 0x40]
push eax
push 0
mov ecx, dword [ebp + 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xd0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004726a0
add esp, 0x14
mov dword [ebp - 0x3d0], eax
jmp 0x469d6d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xd0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004723f0
add esp, 8
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0
jne 0x469d7e
or eax, 0xffffffff
jmp 0x46a5ff
mov edx, dword [ebp - 0x3d0]
push edx
lea eax, [ebp - 0x3c0]
push eax
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00472980
add esp, 4
mov dword [ebp - 0x3d4], eax
cmp dword [ebp - 0x3d4], 0
jne 0x469de1
cmp dword [ebp + 0x14], 0
je 0x469dc4
mov edx, dword [ebp + 0x14]
movsx eax, byte [edx]
test eax, eax
jne 0x469dcc
or eax, 0xffffffff
jmp 0x46a5ff
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x3c0]
push edx
call fcn.00489ae0
add esp, 8
jmp 0x469df7
mov eax, dword [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov edx, dword [ebp + 0x14]
push edx
call fcn.00472a20
add esp, 4
test eax, eax
jne 0x469e14
or eax, 0xffffffff
jmp 0x46a5ff
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov edx, dword [ebp + 0x44]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00472ba0
add esp, 0xc
mov dword [ebp - 0x3d8], eax
cmp dword [ebp - 0x3d8], 0
jne 0x469e54
or eax, 0xffffffff
jmp 0x46a5ff
mov edx, dword [ebp - 0x3d8]
push edx
lea eax, [ebp - 0x3c0]
push eax
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x3c0]
push edx
call fcn.00489ae0
add esp, 8
jmp 0x469e94
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.00489ae0
add esp, 8
lea edx, [ebp - 0x3c0]
push edx
push str.LTAddPrinter___added_port_as__s_n
push 0
call fcn.0046b360
add esp, 0xc
jmp 0x469ed5
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
call fcn.00489ae0
add esp, 8
lea edx, [ebp - 0x3c0]
push edx
push str.LTAddPrinter___use_exisiting_port__s
push 0
call fcn.0046b360
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00489ae0
add esp, 8
mov edx, dword [ebp + 0x20]
push edx
lea eax, [ebp - 0x2b0]
push eax
call fcn.00489ae0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xfc]
push edx
push str.LTAddPrinter___installs_Print_Processor__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x12c], 0
je 0x469fee
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x12c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xfc]
push ecx
push str.AddPrintProcessor____s___s__n
push 0
call fcn.0046b360
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x88]
push eax
push str.LTAddPrinter___add_print_processor___s__n
push 0
call fcn.0046b360
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xfc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x12c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x88]
push eax
push 0
call sub.WINSPOOL.DRV_AddPrintProcessorA
test eax, eax
jne 0x469fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476270
add esp, 4
call fcn.00476280
cmp eax, 0xbbd
jne 0x469fbb
call fcn.00476280
push eax
push str.AddPrintProcessor___use_existing_print_processor__d__n
push 1
call fcn.0046b360
add esp, 0xc
jmp 0x469fee
call fcn.00476280
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xfc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x12c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x88]
push eax
push str.AddPrintProcessor___env__s__path__s__pp__s__failed__d__n
push 2
call fcn.0046b360
add esp, 0x18
push str.LTAddPrinter___successfully_installed_Print_Processor_n
push 0
call fcn.0046b360
add esp, 8
push str.LTAddPrinter___call_MKDaddLocalPrinter___n
push 0
call fcn.0046b360
add esp, 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 6
jne 0x46a1a1
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x130], 0
je 0x46a0d7
push 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x130]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00489120
add esp, 0xc
mov eax, dword [ebp - 0x404]
and eax, 0xffffffe7
mov dword [ebp - 0x404], eax
mov ecx, dword [ebp - 0x404]
or ecx, 0x40
mov dword [ebp - 0x404], ecx
mov dword [ebp - 0x438], 0
lea edx, [ebp - 0x110]
mov dword [ebp - 0x434], edx
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x428], edx
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x420], eax
lea ecx, [ebp - 0x110]
push ecx
push str.LTAddPrinter___call_MKDaddLocalPrinterIndirect___for_shared_printer___s__n
push 0
call fcn.0046b360
add esp, 0xc
mov edx, dword [ebp + 0x34]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.0046bfa0
add esp, 0xc
mov dword [ebp - 0x3dc], eax
jmp 0x46a132
lea edx, [ebp - 0x110]
push edx
push str.LTAddPrinter___call_MKDaddLocalPrinter___for_shared_printer___s__n
push 0
call fcn.0046b360
add esp, 0xc
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x3c0]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x100]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xfc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xd0]
push eax
call fcn.0046c150
add esp, 0x1c
mov dword [ebp - 0x3dc], eax
cmp dword [ebp - 0x3dc], 0
je 0x46a15a
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x30]
push edx
call fcn.00489ae0
add esp, 8
mov dword [ebp - 0x2b4], 0
jmp 0x46a19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476270
add esp, 4
call fcn.00476280
push eax
push 0x4ca194
push 0
call fcn.0046b360
add esp, 0xc
call fcn.00476280
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jne 0x46a19c
mov dword [ebp - 0x2b4], 0xffffff9d
jmp 0x46a271
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x3c0]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x100]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xfc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xd0]
push eax
call fcn.0046c150
add esp, 0x1c
test eax, eax
je 0x46a219
lea ecx, [ebp - 0x110]
push ecx
push str.LTAddPrinter___called_MKDaddLocalPrinter___not_for_shared_printer___s__n
push 0
call fcn.0046b360
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0x30]
push eax
call fcn.00489ae0
add esp, 8
mov dword [ebp - 0x2b4], 0
jmp 0x46a271
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476270
add esp, 4
call fcn.00476280
push eax
push str.LTAddPrinter___failed_to_add_printer___d__n
push 0
call fcn.0046b360
add esp, 0xc
call fcn.00476280
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jne 0x46a25b
mov dword [ebp - 0x2b4], 0xffffff9d
lea ecx, [ebp - 0x3c0]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x74]
push eax
call fcn.0046c240
add esp, 8
cmp dword [ebp - 0x2b4], 0
jne 0x46a2a8
mov ecx, dword [ebp + 0x30]
push ecx
push str.LTAddPrinter___last_step__call_LTsetColorProfiles___for__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x30]
push eax
call fcn.0046a740
test eax, eax
jne 0x46a2a8
mov dword [ebp - 0x2b4], 0xffffff9d
mov dword [ebp - 0x1a8], 0x94
lea ecx, [ebp - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x46a306
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476270
add esp, 4
call fcn.00476280
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jne 0x46a306
mov edx, dword [ebp - 0x2b4]
push edx
push str.GetVersionEx_vi__fail___d__n
push 2
call fcn.0046b360
add esp, 0xc
mov dword [ebp - 0x2b4], 0xffffff9d
cmp dword [ebp - 0x2b4], 0
jne 0x46a579
cmp dword [ebp - 0x198], 2
jne 0x46a579
cmp dword [ebp - 0x1a4], 6
jb 0x46a579
mov dword [ebp - 0x450], 0xffffffff
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0xf000c
push 0x4ca290
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x46a38c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ca2a0
push 2
call fcn.0046b360
add esp, 0xc
xor eax, eax
jmp 0x46a5ff
push str.SetPrinterDataExA
mov eax, dword [ebp - 0x43c]
push eax
call dword [0x4e56bc]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x46a3ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_SetPrinterDataEx__fail___d__n
push 2
call fcn.0046b360
add esp, 0xc
xor eax, eax
jmp 0x46a5ff
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp + 0x30]
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x46a403
mov dword [ebp - 0x2b4], 0xffffff9d
push str.LTAddPrinter___:_OpenPrinter___failed_n
push 0
call fcn.0046b360
add esp, 8
jmp 0x46a56d
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x40], 0
je 0x46a51e
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x50], 0
je 0x46a51e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x40]
push ecx
push str.HardwareID:__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x40]
push eax
call fcn.00489c70
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x40]
push edx
push 1
push str.HardwareID
push 0x4ca348
mov eax, dword [ebp - 0x450]
push eax
call dword [ebp - 0x44c]
mov dword [ebp - 0x454], 0
push 0x4ca350
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x50]
push edx
call fcn.0048e722
add esp, 8
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
je 0x46a4d8
mov eax, dword [ebp - 0x454]
push eax
push str.Manufacturer1:__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x50]
push edx
call fcn.00489c70
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 1
push 0x4ca368
push 0x4ca378
mov edx, dword [ebp - 0x450]
push edx
call dword [ebp - 0x44c]
jmp 0x46a51e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push str.Manufacturer2:__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x50]
push eax
call fcn.00489c70
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x50]
push edx
push 1
push 0x4ca394
push 0x4ca3a4
mov eax, dword [ebp - 0x450]
push eax
call dword [ebp - 0x44c]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x54], 0
je 0x46a56d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x54]
push eax
push str.OEM_URL:__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x54]
push edx
call fcn.00489c70
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x54]
push ecx
push 1
push str.OEM_URL
push str.PnPData
mov edx, dword [ebp - 0x450]
push edx
call dword [ebp - 0x44c]
mov eax, dword [ebp - 0x450]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
cmp dword [ebp - 0x2b4], 0xffffffff
jne 0x46a5c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476270
add esp, 4
call fcn.00476280
push eax
push str.LTAddPrinter___failed___d__n
push 0
call fcn.0046b360
add esp, 0xc
call fcn.00476280
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jne 0x46a5c4
mov dword [ebp - 0x2b4], 0xffffff9d
cmp dword [ebp - 0x2b4], 0
jne 0x46a5e0
mov ecx, dword [ebp + 0x30]
push ecx
push str.LTAddPrinter___successfully_added_printer_as__s_n
push 0
call fcn.0046b360
add esp, 0xc
cmp dword [ebp + 0x48], 0
je 0x46a5f9
lea edx, [ebp - 0x3c0]
push edx
mov eax, dword [ebp + 0x48]
push eax
call fcn.00489ae0
add esp, 8
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret 0x44