Function at 0x40caf1
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
call fcn.0040147e
call fcn.00401258
push 0x43df0c
call fcn.00401613
add esp, 4
push 0x40
lea eax, [ebp - 0xc0]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jge 0x40cb44
push str.Cant_get_hostname
push 2
push 0x100
push 0x43df30
call fcn.0040109b
add esp, 0x10
or eax, 0xffffffff
jmp 0x40ce46
lea ecx, [ebp - 0xc0]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0
jne 0x40cb80
push str.Cant_get_host_address
push 2
push 0x104
push 0x43df78
call fcn.0040109b
add esp, 0x10
or eax, 0xffffffff
jmp 0x40ce46
mov edx, dword [ebp - 0x1c8]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.00422ac0
add esp, 0xc
push 0x80
lea edx, [ebp - 0x24c]
push edx
call fcn.00430460
add esp, 8
lea eax, [ebp - 0x24c]
mov dword [ebp - 0xc4], eax
jmp 0x40cbd7
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
movsx eax, byte [edx]
test eax, eax
je 0x40cbfd
mov ecx, dword [ebp - 0xc4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40cbfb
mov eax, dword [ebp - 0xc4]
mov byte [eax], 0x2f
jmp 0x40cbc8
push 0x2f
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00422fd0
add esp, 8
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x40cc26
mov edx, dword [ebp - 0xc4]
mov byte [edx], 0
push 0x80
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004015be
add esp, 0xc
mov edx, dword [0x43de2c]
push edx
lea eax, [ebp - 0x80]
push eax
push 0x43dfa8
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.004238c0
add esp, 0x10
lea edx, [ebp - 0x1c4]
push edx
call fcn.00401262
add esp, 4
mov eax, dword [ebp - 0x1cc]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.004206f0
add esp, 4
add eax, 1
cmp eax, 0x100
jae 0x40ccb1
mov edx, dword [ebp - 0xc4]
push edx
call fcn.004206f0
add esp, 4
add eax, 1
mov dword [ebp - 0x250], eax
jmp 0x40ccbb
mov dword [ebp - 0x250], 0x100
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
lea edx, [ebp - 0x1c4]
push edx
call fcn.004015be
add esp, 0xc
lea eax, [ebp - 0x1c4]
push eax
call fcn.0040139d
add esp, 4
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ecx]
push edx
call fcn.004206f0
add esp, 4
add eax, 1
cmp eax, 0x100
jae 0x40cd1e
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax]
push ecx
call fcn.004206f0
add esp, 4
add eax, 1
mov dword [ebp - 0x254], eax
jmp 0x40cd28
mov dword [ebp - 0x254], 0x100
mov edx, dword [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x1c4]
push edx
call fcn.004015be
add esp, 0xc
lea eax, [ebp - 0x1c4]
push eax
call fcn.00401406
add esp, 4
push str.default.asp
call fcn.00401375
add esp, 4
mov ecx, dword [0x43de30]
push ecx
call fcn.0040159b
add esp, 4
mov edx, dword [0x43de38]
push edx
mov eax, dword [0x43de34]
push eax
call fcn.00401136
add esp, 8
push 1
push 0x401618
push 0
push 0
push 0x448994
call fcn.004011c7
add esp, 0x14
push 0
push 0x401366
push 0
push 0
push str._goform
call fcn.004011c7
add esp, 0x14
push 0
push 0x4012da
push 0
push 0
push str._cgi_bin
call fcn.004011c7
add esp, 0x14
push 2
push 0x40135c
push 0
push 0
push 0x448998
call fcn.004011c7
add esp, 0x14
push 0x4015e1
push str.formRxEnable
call fcn.00401339
add esp, 8
push 0x40dab8
push str.aspTest
call fcn.0040141a
add esp, 8
push 0x40db18
push str.formTest
call fcn.00401339
add esp, 8
call fcn.004011ae
push 0
push 0x40db96
push 0
push 0
push 0x43dff4
call fcn.004011c7
add esp, 0x14
mov dword [0x448984], 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret