Function at 0x4e9b90
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 0x61d2e4
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x38], str.9418
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.004e9a25
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test al, al
jne 0x4e9bed
mov dword [ebp - 0x38], str._none_
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.cygwin1.dll_memset
mov eax, dword [ebp + 0xc]
and eax, 4
test eax, eax
je 0x4e9c1b
mov dword [ebp - 0x54], 2
jmp 0x4e9c2c
mov eax, dword [ebp + 0xc]
and eax, 8
test eax, eax
je 0x4e9c2c
mov dword [ebp - 0x54], 0x17
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 6
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x4e9c6d
mov esi, dword [ebp + 8]
mov dword [esp], str.Looking_up__s_...
call fcn.004e84be
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_getaddrinfo
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4e9cc9
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_gai_strerror
mov ebx, eax
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
mov dword [esp], str.unable_to_look_up__s__port__s____s_
call fcn.004e84be
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004b54c7
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x4e9d03
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
mov dword [esp], str.done._nConnecting_to__s__port__s__...
call fcn.004e84be
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
jmp 0x4e9dfd
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_socket
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
js 0x4e9d5c
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_connect
test eax, eax
jns 0x4e9dbb
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.004e9b23
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], str._s__d:__s_:_errno_s_n
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00492911
cmp dword [ebp - 0x1c], 0
js 0x4e9db2
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_close
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x4e9df0
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x4e9e0a
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.004e9b23
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5bb8ac
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4e9e0a
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x5c], eax
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4e9d0e
jmp 0x4e9e0b
nop
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
cmp dword [ebp - 0x1c], 0
jns 0x4e9e3e
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [esp], str.unable_to_connect_to__s:_n_s
call fcn.004e84be
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004b54c7
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004e9acc
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x4e9e75
mov dword [esp], str.done.
call fcn.004e84be
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00493dcc
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.00491cd8
mov eax, dword [ebp - 0x1c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret