Function at 0x401e40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x401ea0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040ce50
mov dword [esp + 4], eax
mov esi, eax
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x402000
mov dword [esp], str.Connecting_to__s:_d...
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], 0
call fcn.00417550
nop
lea esi, [esi]
mov dword [esp], edi
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.00401370
xor eax, eax
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
movzx eax, word [ebp - 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_socket
test eax, eax
mov esi, eax
js 0x40204b
mov edx, dword [0x438af8]
mov ebx, 1
mov ecx, dword [0x438afc]
mov eax, edx
or eax, ecx
setne al
test ecx, ecx
movzx eax, al
jl 0x401efa
jle 0x402140
xor ebx, ebx
test ebx, eax
je 0x401f3e
mov eax, dword [0x438af8]
cmp eax, 0x1ff
mov dword [ebp - 0x4c], eax
jg 0x401f14
mov dword [ebp - 0x4c], 0x200
mov dword [esp], esi
mov edi, 4
lea eax, [ebp - 0x4c]
mov dword [esp + 0x10], edi
mov ebx, 0x1002
mov ecx, 0xffff
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call sub.cygwin1.dll_setsockopt
mov eax, dword [0x438b5c]
test eax, eax
je 0x401f70
mov edx, dword [0x430070]
lea edi, [ebp - 0x38]
test edx, edx
je 0x4020b0
mov ebx, dword [0x430080]
test ebx, ebx
jne 0x402151
lea esi, [esi]
lea edi, [edi]
lea eax, [ebp - 0x28]
mov ebx, 0x4013e0
call fcn.004013c0
fld qword [0x438ad0]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x28]
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
fstp qword [esp]
call fcn.004220a0
test eax, eax
jne 0x402040
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x402172
test eax, eax
js 0x40204b
test esi, esi
js 0x402184
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401fe9
mov dword [esp], str.connected._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00417550
mov eax, dword [0x438b14]
test eax, eax
jne 0x4021f6
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004172b0
mov dword [esp], str.Connecting_to__s_s:_d...
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], 0
call fcn.00417550
jmp 0x401ea0
call sub.cygwin1.dll___errno
mov dword [eax], 0x74
call sub.cygwin1.dll___errno
test esi, esi
mov edi, dword [eax]
js 0x40205e
mov dword [esp], esi
call fcn.00401c30
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402096
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], 0x42810d
mov ebx, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], 0
call fcn.00417550
call sub.cygwin1.dll___errno
mov dword [eax], edi
add esp, 0x6c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov ecx, 1
mov edx, 3
mov dword [0x430070], ecx
mov dword [esp + 4], edx
call fcn.0040d040
test eax, eax
mov ebx, eax
je 0x4021a7
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 4], eax
call fcn.0040cbd0
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [0x430094], edx
mov dword [0x430090], eax
call fcn.0040cdb0
mov dword [esp], 0
mov eax, edi
mov edx, 0x430090
call fcn.00401370
mov eax, 1
mov dword [0x430080], eax
mov eax, edi
call fcn.004013c0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.cygwin1.dll_bind
test eax, eax
jns 0x401f70
jmp 0x40204b
cmp edx, 0x1fff
jbe 0x401efa
jmp 0x401ef8
mov dword [esp], 0
mov eax, edi
mov edx, 0x430090
call fcn.00401370
mov eax, dword [0x430080]
test eax, eax
jne 0x402119
jmp 0x401f70
call sub.cygwin1.dll___errno
cmp dword [eax], 4
je 0x4021e3
mov eax, dword [ebp - 0x3c]
jmp 0x401fb6
mov dword [esp], str._home_eblake_wget_1.10.2_2_src_wget_1.10.2_src_connect.c
mov ecx, str.sock___0
mov edx, 0x14d
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.cygwin1.dll___assert
jmp 0x401fc6
mov dword [esp], str._s:_unable_to_resolve_bind_address___s__disabling_bind._n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 4], eax
mov edx, dword [0x438b5c]
mov dword [esp], 1
mov dword [esp + 0xc], edx
mov edx, dword [0x4389d0]
mov dword [esp + 8], edx
call fcn.00417550
xor eax, eax
mov dword [0x430080], eax
jmp 0x401f70
call sub.cygwin1.dll___errno
mov dword [eax], 0x74
mov eax, dword [ebp - 0x3c]
jmp 0x401fb6
mov dword [esp + 4], esi
mov dword [esp], str.Created_socket__d._n
call fcn.004174e0
add esp, 0x6c
mov eax, esi
jmp 0x401ffb