Function at 0x41fefc
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push ebx
mov ebx, dword [ebp + 8]
add esp, 0xfffffffc
push 0x32
push 0x41f61e
push 0x44374c
call fcn.00421b44
add esp, 0xfffffffc
push 0x3c
push 0x41fef2
push 0x4476dc
call fcn.00421b44
mov dword [0x44364c], 0x209
add esp, 0x20
cmp dword [ebp + 0xc], 0
jne 0x41ff4c
mov eax, 0xffffffff
jmp 0x42025d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
add esp, 0xfffffff4
mov eax, dword [ebp + 0xc]
push eax
call fcn.00420ac0
mov dword [0x44939c], ebx
movzx eax, word [0x41fc11]
mov word [ebp - 0x20], ax
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
add esp, 0x10
test ebx, ebx
jle 0x4201be
add esp, 0xfffffff4
mov eax, dword [0x44939c]
push eax
call fcn.0041f5a0
mov dword [ebp - 0x34], eax
add esp, 0x10
test eax, eax
je 0x4201be
mov edx, dword [ebp - 0x34]
cmp dword [edx], 0
je 0x4201be
cmp dword [ebp + 0x14], 0
je 0x420090
add esp, 0xfffffff8
push 0x41fbfc
push 0xe
call sub.cygwin1.dll_signal
add esp, 0xfffffff4
push 0x4492cc
call sub.cygwin1.dll_setjmp
add esp, 0x20
test eax, eax
jne 0x420024
add esp, 0xfffffff4
push 0xa
call sub.cygwin1.dll_alarm
add esp, 0xfffffff4
mov ecx, dword [ebp + 0x14]
push ecx
call sub.cygwin1.dll_gethostbyname
mov ebx, eax
add esp, 0x20
add esp, 0xfffffff8
push 1
push 0xe
call sub.cygwin1.dll_signal
add esp, 0xfffffff4
push 0
call sub.cygwin1.dll_alarm
add esp, 0x20
jmp 0x420026
xor ebx, ebx
add esp, 0xfffffff8
push 1
push 0xe
call sub.cygwin1.dll_signal
add esp, 0x10
test ebx, ebx
je 0x420090
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
movsx eax, word [ebx + 0xa]
lea edx, [ebp - 0xc]
add esp, 0xfffffffc
push eax
push ecx
push edx
call sub.cygwin1.dll_memcpy
movzx eax, word [ebx + 8]
mov word [ebp - 0x10], ax
add esp, 0xfffffffc
push 0xf
add esp, 0xfffffff4
mov eax, dword [ebp - 0xc]
push eax
call sub.cygwin1.dll_inet_ntoa
add esp, 0x10
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00421b44
add esp, 0x20
add esp, 0xfffffffc
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x44939c]
push eax
call sub.cygwin1.dll_bind
add esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
xchg ah, al
mov word [ebp - 0xe], ax
add esp, 0xfffffff8
push 0x41fbfc
push 0xe
call sub.cygwin1.dll_signal
add esp, 0xfffffff4
push 0x4492cc
call sub.cygwin1.dll_setjmp
add esp, 0x20
test eax, eax
jne 0x420110
add esp, 0xfffffff4
push 0xa
call sub.cygwin1.dll_alarm
add esp, 0xfffffff4
mov eax, dword [ebp + 0xc]
push eax
call sub.cygwin1.dll_gethostbyname
mov ebx, eax
add esp, 0x20
add esp, 0xfffffff8
push 1
push 0xe
call sub.cygwin1.dll_signal
add esp, 0xfffffff4
push 0
call sub.cygwin1.dll_alarm
add esp, 0x20
jmp 0x420112
xor ebx, ebx
add esp, 0xfffffff8
push 1
push 0xe
call sub.cygwin1.dll_signal
add esp, 0x10
test ebx, ebx
jne 0x420144
cmp dword [0x44939c], 0
jle 0x4201be
add esp, 0xfffffff4
mov eax, dword [0x44939c]
push eax
call fcn.0041fa58
jmp 0x4201be
movzx eax, word [ebx + 8]
mov word [ebp - 0x10], ax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
movsx eax, word [ebx + 0xa]
lea edx, [ebp - 0xc]
add esp, 0xfffffffc
push eax
push ecx
push edx
call sub.cygwin1.dll_memcpy
add esp, 0xfffffffc
push 0xf
add esp, 0xfffffff4
mov eax, dword [ebp - 0xc]
push eax
call sub.cygwin1.dll_inet_ntoa
add esp, 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00421b44
add esp, 0x20
add esp, 0xfffffffc
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x44939c]
push eax
call sub.cygwin1.dll_connect
mov ebx, eax
add esp, 0x10
test ebx, ebx
jge 0x4201c8
call sub.cygwin1.dll___errno
cmp dword [eax], 0x77
je 0x4201c8
cmp ebx, 0xffffff89
je 0x4201c8
add esp, 0xfffffff4
mov eax, dword [0x44939c]
push eax
call fcn.0041fa58
xor eax, eax
jmp 0x42025d
cmp dword [ebp - 0x34], 0
je 0x420258
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [eax + 4], 1
mov eax, dword [edx]
mov dword [eax + 0x94], 0
mov edx, dword [0x44355c]
cmp dword [edx], 0
je 0x420202
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov edx, dword [edx]
mov edx, dword [edx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x44], ecx
add esp, 0xfffffffc
push 0x7f
push 0x25
lea ebx, [ebp - 0x20]
push ebx
call fcn.00421e90
add esp, 0xfffffffc
push 0x7f
push 0x25
lea esi, [ebp - 0x30]
push esi
call fcn.00421e90
add esp, 0x20
add esp, 0xfffffffc
push 0x10
push ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
add eax, 0x20
push eax
call fcn.00421b44
add esp, 0xfffffffc
push 0x10
push esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
add eax, 0x34
push eax
call fcn.00421b44
mov eax, dword [0x44939c]
lea esp, [ebp - 0x58]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret