Function at 0x4166e8
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426da9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
call sub.comnet.dll_LCOMNET_GetRegLocalMiniremPort
mov dword [ebp - 0x12c], eax
push 0x432424
mov ecx, dword [ebp - 0x15c]
call fcn.00416af2
push 0x432448
mov ecx, dword [ebp - 0x15c]
call fcn.00416af2
push 0x104
lea eax, [ebp - 0x118]
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [ebp - 0x118]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x416788
jmp 0x4168f3
push 0x10
call fcn.00401500
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x13c], 0
je 0x4167b5
mov ecx, dword [ebp - 0x13c]
call fcn.00415c4e
mov dword [ebp - 0x160], eax
jmp 0x4167bf
mov dword [ebp - 0x160], 0
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x138], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x138]
mov dword [0x432424], eax
cmp dword [0x432424], 0
je 0x4168f3
push 0
push 8
push 1
mov ecx, dword [ebp - 0x12c]
push ecx
mov ecx, dword [0x432424]
call sub.MFC42.DLL_CAsyncSocket::Create
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x416830
push 5
mov ecx, dword [0x432424]
call fcn.00415fb0
mov dword [ebp - 0x128], eax
mov edx, dword [0x432424]
mov eax, dword [ebp - 0x12c]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x128], 0
jne 0x4168f3
call fcn.00415fa0
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0x2740
jne 0x416884
mov ecx, dword [ebp - 0x12c]
push ecx
push str.TCP_IP:_Port__d_is_already_in_use
lea edx, [ebp - 0x120]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0x30
lea ecx, [ebp - 0x120]
call fcn.00403090
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [ebp - 0x10], 0
cmp dword [0x432424], 0
je 0x4168f3
mov eax, dword [0x432424]
mov edx, dword [eax]
mov ecx, dword [0x432424]
call dword [edx + 0x18]
mov eax, dword [0x432424]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0
je 0x4168df
push 1
mov edx, dword [ebp - 0x140]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x140]
call dword [eax + 4]
mov dword [ebp - 0x164], eax
jmp 0x4168e9
mov dword [ebp - 0x164], 0
mov dword [0x432424], 0
push 0x10
call fcn.00401500
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14c], 0
je 0x416920
mov ecx, dword [ebp - 0x14c]
call fcn.00415c4e
mov dword [ebp - 0x168], eax
jmp 0x41692a
mov dword [ebp - 0x168], 0
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x148], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x148]
mov dword [0x432448], edx
cmp dword [0x432448], 0
je 0x416a41
mov eax, dword [0x432448]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0x12c]
push ecx
mov ecx, dword [0x432448]
call fcn.00415d56
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x416a41
call fcn.00415fa0
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0x2740
jne 0x4169da
cmp dword [ebp - 0x10], 0
je 0x4169da
cmp dword [0x4323f4], 0
jne 0x4169da
mov edx, dword [ebp - 0x12c]
push edx
push str.IPX:_Port__d_is_already_in_use
lea eax, [ebp - 0x120]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0x30
lea ecx, [ebp - 0x120]
call fcn.00403090
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [ebp - 0x14], 0
mov ecx, dword [0x432448]
mov edx, dword [ecx]
mov ecx, dword [0x432448]
call dword [edx + 0x18]
mov eax, dword [0x432448]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x150], ecx
cmp dword [ebp - 0x150], 0
je 0x416a2d
push 1
mov edx, dword [ebp - 0x150]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x150]
call dword [eax + 4]
mov dword [ebp - 0x16c], eax
jmp 0x416a37
mov dword [ebp - 0x16c], 0
mov dword [0x432448], 0
cmp dword [ebp - 0x10], 0
jne 0x416a5d
cmp dword [ebp - 0x14], 0
jne 0x416a5d
push 0
push 0x10
push str.Network_Not_Found_r_nPlease_Install_TCP_IP_or_IPX_r_n_Or_reinstall_Minicom_with_a_different_Minirem_port_r_n_see_System_Setup__Network__Protocols
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x416a67
mov dword [0x432428], 0xea60
call sub.comnet.dll_LCOMNET_GetRegLocalMiniremSetup
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
and ecx, 0xfffffff3
mov dword [ebp - 0x11c], ecx
cmp dword [0x432424], 0
je 0x416a99
mov edx, dword [ebp - 0x11c]
add edx, 4
mov dword [ebp - 0x11c], edx
cmp dword [0x432448], 0
je 0x416ab1
mov eax, dword [ebp - 0x11c]
add eax, 8
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
push ecx
call sub.comnet.dll_LCOMNET_SetRegLocalMiniremSetup
add esp, 4
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x158], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret