Function at 0x41865c
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], 0x62f624
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.004184f1
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test al, al
jne 0x4186b9
mov dword [ebp - 0x38], 0x5a4874
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 0x4186e7
mov dword [ebp - 0x54], 2
jmp 0x4186f8
mov eax, dword [ebp + 0xc]
and eax, 8
test eax, eax
je 0x4186f8
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 0x418739
mov esi, dword [ebp + 8]
mov dword [esp], str.Looking_up__s_...
call fcn.00416f8a
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 0x418795
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.00416f8a
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004ae00f
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x4187cf
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
mov dword [esp], str.done._nConnecting_to__s__port__s__...
call fcn.00416f8a
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 0x4188c9
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 0x418828
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 0x418887
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.004185ef
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.0048b459
cmp dword [ebp - 0x1c], 0
js 0x41887e
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_close
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x4188bc
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x4188d6
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.004185ef
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5a48f0
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4188d6
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 0x4187da
jmp 0x4188d7
nop
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
cmp dword [ebp - 0x1c], 0
jns 0x41890a
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [esp], str.unable_to_connect_to__s:_n_s
call fcn.00416f8a
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004ae00f
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00418598
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x418941
mov dword [esp], str.done.
call fcn.00416f8a
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0048c914
lea eax, [ebp - 0x34]
mov dword [esp], eax
call fcn.0048a820
mov eax, dword [ebp - 0x1c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret