Function at 0x4073b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x4c
mov esi, dword [0x41ad90]
mov dword [ebp - 0x14], 1
test esi, esi
jne 0x407663
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
jmp 0x4074a6
mov eax, dword [0x414f80]
mov dword [ebp - 0x10], 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4196f0
mov dword [esp], eax
call sub.cygwin1.dll_getsockname
test eax, eax
js 0x4077f1
mov eax, dword [0x414f80]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.cygwin1.dll_listen
test eax, eax
js 0x4075e0
mov ecx, dword [0x41adc8]
test ecx, ecx
je 0x407610
movzx eax, byte [0x4196f3]
mov dword [esp], str.PORT__d__d__d__d__d__d
mov dword [esp + 0x18], eax
movzx eax, byte [0x4196f2]
mov dword [esp + 0x14], eax
movzx eax, byte [0x4196f7]
mov dword [esp + 0x10], eax
movzx eax, byte [0x4196f6]
mov dword [esp + 0xc], eax
movzx eax, byte [0x4196f5]
mov dword [esp + 8], eax
movzx eax, byte [0x4196f4]
mov dword [esp + 4], eax
call fcn.00406c90
cmp eax, 5
jne 0x407812
cmp dword [0x41adc8], 0xffffffff
jne 0x407823
mov dword [0x41adc8], 0
mov ebx, 1
mov eax, dword [0x4197f0]
mov ecx, dword [0x41adc8]
mov dword [0x4196f0], eax
mov eax, dword [0x4197f4]
test ecx, ecx
mov dword [0x4196f4], eax
mov eax, dword [0x4197f8]
mov dword [0x4196f8], eax
mov eax, dword [0x4197fc]
mov dword [0x4196fc], eax
je 0x4074e1
mov word [0x4196f2], 0
mov eax, dword [0x414f80]
cmp eax, 0xffffffff
je 0x4074f3
mov dword [esp], eax
call sub.cygwin1.dll_close
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.cygwin1.dll_socket
test eax, eax
mov dword [0x414f80], eax
js 0x407770
mov edx, dword [0x41adc8]
test edx, edx
jne 0x407552
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x40782d
mov eax, dword [0x414f80]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4196f0
mov dword [esp], eax
call sub.cygwin1.dll_bind
test eax, eax
js 0x4077a0
test byte [0x419d4c], 1
je 0x4073e0
mov eax, dword [0x414f80]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
test eax, eax
jns 0x4073e0
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.setsockopt__ignored_
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
jmp 0x4073e0
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.listen
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
mov ecx, dword [0x41adc8]
test ecx, ecx
jne 0x407433
lea esi, [esi]
test ebx, ebx
je 0x40761e
mov dword [0x41adc8], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 8
mov dword [esp + 0xc], eax
mov eax, dword [0x414f80]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x407851
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.cygwin1.dll_socket
test eax, eax
mov edx, eax
mov dword [0x414f80], eax
js 0x407877
test byte [0x419d4c], 1
jne 0x4076d8
mov dword [esp], str.PASV
call fcn.00406c90
cmp eax, 2
je 0x407711
mov dword [esp], str.Passive_mode_refused.
call sub.cygwin1.dll_puts
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll_close
mov eax, 1
mov dword [0x414f80], 0xffffffff
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffff
mov dword [esp], edx
call sub.cygwin1.dll_setsockopt
test eax, eax
jns 0x407697
mov dword [esp], str.ftp:_setsockopt__ignored_
call sub.cygwin1.dll_perror
jmp 0x407697
lea eax, [ebp - 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._d__d__d__d__d__d
mov dword [esp], 0x41af80
call sub.cygwin1.dll_sscanf
cmp eax, 6
je 0x40788d
mov dword [esp], str.Passive_mode_address_scan_failure._Shouldnt_happen_
call sub.cygwin1.dll_puts
jmp 0x4076b4
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.socket
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
test ebx, ebx
jne 0x4077da
mov eax, 1
jmp 0x4076d0
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.bind
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll_close
test ebx, ebx
mov dword [0x414f80], 0xffffffff
je 0x407793
mov dword [0x41adc8], 1
mov eax, 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.getsockname
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
jmp 0x4077bf
cmp eax, 2
setne al
add esp, 0x4c
movzx eax, al
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x4c
mov al, 1
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.setsockopt__reuse_address_
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
jmp 0x4077bf
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.setsockopt_TOS__ignored_
mov eax, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c930
xor eax, eax
jmp 0x4076d0
mov dword [esp], str.ftp:_socket
call sub.cygwin1.dll_perror
mov eax, 1
jmp 0x4076d0
mov eax, dword [ebp - 0x18]
mov dword [0x4196f8], 0
mov dword [0x4196fc], 0
mov word [0x4196f0], 2
mov byte [0x4196f4], al
mov eax, dword [ebp - 0x1c]
mov byte [0x4196f5], al
mov eax, dword [ebp - 0x20]
mov byte [0x4196f6], al
mov eax, dword [ebp - 0x24]
mov byte [0x4196f7], al
mov eax, dword [ebp - 0x28]
mov byte [0x4196f2], al
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4196f0
mov byte [0x4196f3], al
mov eax, dword [0x414f80]
mov dword [esp], eax
call sub.cygwin1.dll_connect
test eax, eax
jns 0x407659
mov dword [esp], str.ftp:_connect
call sub.cygwin1.dll_perror
jmp 0x4076b4