Function at 0x401000
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4136cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3a]
mov word [esp + 0x38], si
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x56c]
xor ebx, ebx
cmp eax, 3
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
je 0x401059
call fcn.00401670
mov eax, ebp
jmp 0x401657
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
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 0x401657
mov edx, dword [esp + 0x14]
push edx
call fcn.0040790b
mov edx, dword [esp + 0x18]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
push edi
push 2
push esi
mov dword [esp + 0x4c], edi
call sub.WINSPOOL.DRV_EnumPortsW
test eax, eax
jne 0x4010b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401657
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x570]
test eax, eax
jbe 0x401110
jmp 0x4010cb
mov edi, dword [esp + 0x34]
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*4]
push ecx
mov edx, dword [edi + eax*4]
lea edi, [edi + eax*4]
push edx
call fcn.0040788b
add esp, 8
test eax, eax
jne 0x401103
mov edi, dword [edi + 4]
test edi, edi
je 0x4010fa
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00407866
add esp, 8
mov esi, dword [esp + 0x10]
mov ebx, 1
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x4010c7
test ebx, ebx
jne 0x401184
mov ecx, dword [ebp + 4]
push str._does_not_exist
push ecx
push str.Port
push 0x4195d0
call fcn.00402470
add esp, 8
push eax
call fcn.00402470
add esp, 8
push eax
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
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.00401f60
mov eax, 0x2bc
jmp 0x401657
lea ecx, [esp + 0x38]
push ecx
call fcn.0040781f
add esp, 4
test eax, eax
jne 0x40125c
push str.Network_timeout_is_only_supported_with_the_HP_Standard_Port_Monitor
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
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.00401f60
mov ecx, dword [ebp + 4]
push str._is_not_an_HP_Standard_Port
push ecx
push str.Port
push 0x4195d0
call fcn.00402470
add esp, 8
push eax
call fcn.00402470
add esp, 8
push eax
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], bl
jne 0x401243
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401243
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00401f60
mov eax, 0x2bd
jmp 0x401657
lea ecx, [esp + 0x354]
call fcn.004045c0
mov ecx, dword [str.Hptcpmon.dll]
lea edx, [esp + 0x38]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0040788b
add esp, 8
test eax, eax
jne 0x4012e6
push str.ConfigureIpxNetTimeout_only_support_IPX_ports__please_use_ConfigureNetTimeout
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
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 0x4012ce
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4012ce
mov edi, 4
mov eax, dword [esi]
push ebx
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00401f60
mov eax, 0x32
jmp 0x401657
mov ecx, dword [str.HPIpxMon.dll]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0040788b
add esp, 8
test eax, eax
jne 0x4015f7
mov esi, dword [str.HPIpxMon.dll]
mov al, byte [esp + 0x1b]
push esi
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0040781f
add esp, 4
lea ecx, [esp + 0x24]
push eax
push esi
call fcn.004021e0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x35c]
mov dword [esp + 0x56c], ebx
call fcn.004045e0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x564], 0xffffffff
cmp ecx, ebx
je 0x40137e
mov al, byte [ecx - 1]
test al, al
je 0x401372
cmp al, 0xff
je 0x401372
dec al
mov byte [ecx - 1], al
jmp 0x40137e
add ecx, 0xfffffffe
push ecx
call fcn.00404d8a
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
cmp eax, 0x20026
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jae 0x401446
push str.Network_timeout_is_only_supported_with_the_HP_Standard_IPX_Port_Monitor_version_2.38_or_greater
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
mov eax, dword [esi]
mov bl, 6
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test bl, cl
jne 0x4013de
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4013de
mov edi, 4
mov eax, dword [esi]
push 0
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00401f60
push str.Please_upgrade_to_this_version
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
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 0x401430
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401430
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401652
push 0
jmp 0x401647
mov eax, dword [ebp + 8]
push eax
call fcn.004077f6
mov esi, eax
add esp, 4
cmp esi, ebx
jg 0x4014bd
push str.timeout_value_not_valid
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
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 0x40149c
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40149c
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x4014b3
mov edx, dword [ecx + 4]
push ebx
or edx, edi
push edx
call fcn.004020a0
mov eax, 0x2bf
jmp 0x401657
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4014e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401657
cmp dword [esp + 0x244], 5
jb 0x401580
mov eax, dword [esp + 0x1c]
cmp eax, 0x20026
ja 0x401507
jne 0x401514
cmp dword [esp + 0x20], 2
jbe 0x40151b
mov eax, dword [ebp + 4]
push ebx
push esi
push eax
call fcn.00401a30
jmp 0x40158b
cmp eax, 0x20026
jae 0x401507
push str.Configuration_of_Ipx_ports_on_Windows_2000_is_not_supported_for_this_version_of_HpIpxMon.dll
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
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 0x40155f
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40155f
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x401576
mov edx, dword [ecx + 4]
push ebx
or edx, edi
push edx
call fcn.004020a0
mov eax, 0x32
jmp 0x401657
mov ecx, dword [ebp + 4]
push ebx
push esi
push ecx
call fcn.004016e0
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
je 0x4015f3
push ebp
push str.Error_in_configuration__error
push 0x4195d0
call fcn.00402470
add esp, 8
mov ecx, eax
call fcn.00401bd0
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00401df0
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x4015dc
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4015dc
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x4015f3
mov edx, dword [ecx + 4]
push ebx
or edx, edi
push edx
call fcn.004020a0
mov eax, ebp
jmp 0x401657
push str.Network_timeout_is_only_supported_with_the_HP_Standard_TCP_IP_or_IPX_SPX_Port_Monitors
push 0x4195d0
call fcn.00402470
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00401df0
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 0x40163b
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40163b
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x401652
push ebx
mov edx, dword [ecx + 4]
or edx, edi
push edx
call fcn.004020a0
mov eax, 0x2be
mov ecx, dword [esp + 0x55c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x558
ret