Function at 0x401000
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4137b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x558
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], si
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x578]
xor ebp, ebp
cmp eax, 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
je 0x401059
call fcn.00401750
mov eax, ebx
jmp 0x401735
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push 2
push esi
call sub.WINSPOOL.DRV_EnumPortsW
test eax, eax
je 0x40107c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401735
mov edx, dword [esp + 0x18]
push edx
call fcn.004079eb
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
push ebx
push 2
push esi
call sub.WINSPOOL.DRV_EnumPortsW
test eax, eax
jne 0x4010b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401735
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x401105
mov ecx, dword [esp + 0x57c]
lea eax, [esi + esi*4]
mov edx, dword [ecx + 4]
lea edi, [ebx + eax*4]
push edx
mov eax, dword [edi]
push eax
call fcn.0040796b
add esp, 8
test eax, eax
jne 0x4010f8
mov edi, dword [edi + 4]
test edi, edi
je 0x4010ef
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.00407946
add esp, 8
mov esi, dword [esp + 0x14]
mov ebp, 1
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x4010ba
test ebp, ebp
jne 0x401184
mov edx, dword [esp + 0x57c]
push str._does_not_exist
mov eax, dword [edx + 4]
push eax
push str.Port
push 0x4195a0
call fcn.00402600
add esp, 8
push eax
call fcn.00402600
add esp, 8
push eax
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test cl, 6
lea eax, [edx + esi]
jne 0x40116b
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40116b
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402070
mov eax, 0x2bc
jmp 0x401735
lea ecx, [esp + 0x44]
push ecx
call fcn.004078ff
add esp, 4
test eax, eax
jne 0x401267
push str.Network_timeout_is_only_supported_with_the_HP_Standard_Port_Monitor
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov edx, dword [esi]
mov bl, 6
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], bl
jne 0x4011da
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4011da
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402070
mov ecx, dword [esp + 0x57c]
push str._is_not_an_HP_Standard_Port
mov edx, dword [ecx + 4]
push edx
push str.Port
push 0x4195a0
call fcn.00402600
add esp, 8
push eax
call fcn.00402600
add esp, 8
push eax
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test bl, cl
jne 0x40124e
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40124e
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402070
mov eax, 0x2bd
jmp 0x401735
lea ecx, [esp + 0x360]
call fcn.00404620
mov ecx, dword [str.Hptcpmon.dll]
lea edx, [esp + 0x44]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0040796b
add esp, 8
test eax, eax
jne 0x4013da
mov al, byte [esp + 0x13]
mov edi, dword [str.Hptcpmon.dll]
push 0
lea ecx, [esp + 0x28]
mov ebx, 1
mov byte [esp + 0x28], al
call fcn.00402240
push edi
call fcn.004078ff
add esp, 4
mov esi, eax
lea ecx, [esp + 0x24]
push ebx
push esi
call fcn.004023c0
test al, al
je 0x4012ee
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
call fcn.00401cb0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], esi
add esp, 0xc
mov word [edx + esi*2], 0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x368]
mov dword [esp + 0x578], 0
call fcn.00404640
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x574], 0xffffffff
call fcn.00402240
cmp dword [esp + 0x1c], 0x20028
jae 0x401535
push str.Network_timeout_is_only_supported_with_the_HP_Standard_Port_Monitor_version_2.40_or_greater
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov edx, dword [esi]
mov bl, 6
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], bl
jne 0x401374
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401374
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402070
push str.Please_upgrade_to_this_version
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test bl, cl
lea eax, [edx + esi]
jne 0x4013c6
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4013c6
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402070
jmp 0x401730
mov ecx, dword [str.HPIpxMon.dll]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.0040796b
add esp, 8
test eax, eax
jne 0x4016d5
mov al, byte [esp + 0x13]
mov edi, dword [str.HPIpxMon.dll]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00402240
push edi
call fcn.004078ff
add esp, 4
mov esi, eax
lea ecx, [esp + 0x34]
push 1
push esi
call fcn.004023c0
test al, al
je 0x401447
mov ecx, dword [esp + 0x38]
push esi
push edi
push ecx
call fcn.00401cb0
mov edx, dword [esp + 0x44]
mov dword [esp + 0x48], esi
add esp, 0xc
mov word [edx + esi*2], 0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x368]
mov dword [esp + 0x578], 1
call fcn.00404640
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x574], 0xffffffff
call fcn.00402240
cmp dword [esp + 0x1c], 0x20026
jae 0x401535
push str.Network_timeout_is_only_supported_with_the_HP_Standard_IPX_Port_Monitor_version_2.38_or_greater
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov edx, dword [esi]
mov bl, 6
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], bl
jne 0x4014cd
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4014cd
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00402070
push str.Please_upgrade_to_this_version
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test bl, cl
lea eax, [edx + esi]
jne 0x40151f
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40151f
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401730
push 0
jmp 0x401725
mov edi, dword [esp + 0x57c]
mov eax, dword [edi + 8]
push eax
call fcn.004078d6
mov esi, eax
add esp, 4
test esi, esi
jg 0x4015b4
push str.timeout_value_not_valid
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test cl, 6
lea eax, [edx + esi]
jne 0x401592
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401592
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x4015aa
mov edx, dword [ecx + 4]
push 0
or edx, edi
push edx
call fcn.004021b0
mov eax, 0x2bf
jmp 0x401735
lea eax, [esp + 0x24c]
mov dword [esp + 0x24c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4015dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401735
cmp dword [esp + 0x250], 5
jb 0x40165d
test ebx, ebx
jne 0x401650
push str.Configuration_of_Ipx_ports_on_Windows_2000_is_not_supported
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov ecx, dword [esi]
xor edi, edi
mov edx, dword [ecx + 4]
mov cl, byte [edx + esi + 4]
test cl, 6
lea eax, [edx + esi]
jne 0x40162e
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40162e
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401646
mov edx, dword [ecx + 4]
push 0
or edx, edi
push edx
call fcn.004021b0
mov eax, 0x32
jmp 0x401735
mov eax, dword [edi + 4]
push ebx
push esi
push eax
call fcn.00401b10
jmp 0x401668
mov ecx, dword [edi + 4]
push ebx
push esi
push ecx
call fcn.004017c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4016d1
push ebx
push str.Error_in_configuration__error
push 0x4195a0
call fcn.00402600
add esp, 8
mov ecx, eax
call fcn.00401ce0
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401f00
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x4016b9
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4016b9
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x4016d1
mov edx, dword [ecx + 4]
push 0
or edx, edi
push edx
call fcn.004021b0
mov eax, ebx
jmp 0x401735
push str.Network_timeout_is_only_supported_with_the_HP_Standard_TCP_IP_or_IPX_SPX_Port_Monitors
push 0x4195a0
call fcn.00402600
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401f00
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x401719
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401719
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x401730
push ebx
mov edx, dword [ecx + 4]
or edx, edi
push edx
call fcn.004021b0
mov eax, 0x2be
mov ecx, dword [esp + 0x568]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x564
ret