Function at 0x41fc14
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 1
mov byte [ebp - 0x20], 0
cmp dword [ebp + 8], 0
je 0x41fe8f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
add esp, 0xfffffffc
push 6
push 1
push ebx
call sub.cygwin1.dll_socket
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x41fe8f
push 0
push ebx
push 0
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
push 0
push 1
push edi
call fcn.0041f63c
mov edi, eax
add esp, 0x30
add esp, 0xfffffff4
push edi
call fcn.0041f5a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41fc93
test edi, edi
jne 0x41fcc4
cmp dword [ebp + 0x14], 0
jne 0x41fe8f
add esp, 0xfffffff8
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
add esp, 0xfffffff4
push 0x319
call fcn.00421af4
add esp, 0x10
push eax
push 0xffffffffffffffff
jmp 0x41fe88
add esp, 0xfffffffc
push 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [esi]
add eax, 0x20
push eax
call fcn.00421b44
mov edx, dword [esi]
movzx eax, word [0x41fc11]
mov word [edx + 0x34], ax
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x30], edx
mov eax, dword [esi]
mov dword [eax + 0x44], 0
mov eax, dword [esi]
mov dword [eax + 4], 1
mov dword [0x447e2c], edi
add esp, 0xfffffff4
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0xffff
push edi
call sub.cygwin1.dll_setsockopt
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
add esp, 0x30
mov eax, dword [ebp + 0xc]
xchg ah, al
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0x2a
je 0x41fda0
add esp, 0xfffffff8
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x28]
push edx
call sub.cygwin1.dll_inet_aton
add esp, 0x10
test eax, eax
jg 0x41fda7
add esp, 0xfffffff4
push edi
call fcn.0041fa58
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x41fe8f
add esp, 0xfffffff8
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
add esp, 0xfffffff4
push 0x31b
call fcn.00421af4
add esp, 0x10
push eax
push 0xffffffffffffffff
jmp 0x41fe88
mov dword [ebp - 0xc], 0
mov word [ebp - 0x10], 2
add esp, 0xfffffffc
push 0x10
add esp, 0xfffffff4
mov eax, dword [ebp - 0xc]
push eax
call sub.cygwin1.dll_inet_ntoa
add esp, 0x10
push eax
mov eax, dword [esi]
add eax, 0x20
push eax
call fcn.00421b44
add esp, 0x10
cmp byte [0x447d4c], 0
jne 0x41fdf4
add esp, 0xfffffffc
push 0xc8
mov eax, dword [esi]
add eax, 0x20
push eax
push 0x447d4c
call fcn.00421b44
add esp, 0x10
add esp, 0xfffffffc
push 0x10
lea eax, [ebp - 0x10]
push eax
push edi
call sub.cygwin1.dll_bind
add esp, 0x10
test eax, eax
jge 0x41fe40
add esp, 0xfffffff4
push edi
call fcn.0041fa58
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x41fe8f
add esp, 0xfffffff8
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x28]
push edx
add esp, 0xfffffff4
push 0x31c
call fcn.00421af4
add esp, 0x10
push eax
push 0xffffffffffffffff
jmp 0x41fe88
add esp, 0xfffffff8
push 1
push edi
call sub.cygwin1.dll_listen
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x41fe94
add esp, 0xfffffff4
push edi
call fcn.0041fa58
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x41fe8f
add esp, 0xfffffff8
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x28]
push edx
add esp, 0xfffffff4
push 0x31d
call fcn.00421af4
add esp, 0x10
push eax
push ebx
push 2
call fcn.00414328
xor eax, eax
jmp 0x41fee8
cmp dword [ebp + 0x14], 0
jne 0x41fee6
lea ebx, [ebp - 0x20]
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi]
add eax, 0x20
push eax
add esp, 0xfffffff4
push 0x31e
call fcn.00421af4
add esp, 0x10
push eax
call sub.cygwin1.dll_printf
add esp, 0xfffffff8
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [esi]
add eax, 0x20
push eax
add esp, 0xfffffff4
push 0x31f
call fcn.00421af4
add esp, 0x10
push eax
push 0xffffffffffffffff
push 0
call fcn.00414328
mov eax, edi
lea esp, [ebp - 0x48]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret