Function at 0x41ea60
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push 6
push 1
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41eb13
cmp byte [0x6b2b20], 0
je 0x41eb0b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00402750
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41eacf
mov ecx, dword [ecx]
cmp dword [edi + 0x42c], 0x10
lea eax, [edi + 0x418]
jb 0x41eae0
mov eax, dword [eax]
push ecx
push eax
push str._s_create_socket_failed__s_
push 3
push 0x6b2b20
call fcn.004030c0
mov eax, dword [ebp - 0x20]
add esp, 0x14
cmp eax, 0x10
jb 0x41eb0b
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00408cd0
or eax, 0xffffffff
jmp 0x41ecf0
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41eb9f
cmp byte [0x6b2b20], 0
je 0x41ec8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00402750
mov ecx, eax
mov dword [ebp - 4], 1
cmp dword [ecx + 0x14], 0x10
jb 0x41eb61
mov ecx, dword [ecx]
cmp dword [edi + 0x42c], 0x10
lea eax, [edi + 0x418]
jb 0x41eb72
mov eax, dword [eax]
push ecx
push eax
push str._s_set_sock_opt_reuse_addr_failed__s_
push 3
push 0x6b2b20
call fcn.004030c0
add esp, 0x14
lea ecx, [ebp - 0x34]
call fcn.00404780
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x41ecf0
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41ec07
cmp byte [0x6b2b20], 0
je 0x41ec8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00402750
mov ecx, eax
mov dword [ebp - 4], 2
cmp dword [ecx + 0x14], 0x10
jb 0x41ebea
mov ecx, dword [ecx]
cmp dword [edi + 0x42c], 0x10
lea eax, [edi + 0x418]
jb 0x41ebfb
mov eax, dword [eax]
push ecx
push eax
push str._s_set_sock_opt_no_delay_failed__s_
jmp 0x41eb79
push 0x10
push ebx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41ec9b
cmp byte [0x6b2b20], 0
je 0x41ec8f
mov edx, ebx
lea ecx, [ebp - 0x4c]
call fcn.00415530
mov ebx, eax
mov dword [ebp - 4], 3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00402750
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 0x10
jb 0x41ec52
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 0x10
jb 0x41ec5a
mov eax, dword [eax]
add edi, 0x418
cmp dword [edi + 0x14], 0x10
jb 0x41ec68
mov edi, dword [edi]
push ebx
push eax
push edi
push str._s__connect_failed___s__s_
push 3
push 0x6b2b20
call fcn.004030c0
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.00404780
lea ecx, [ebp - 0x4c]
call fcn.00404780
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x41ecf0
cmp byte [0x6b2b20], 0
je 0x41ecee
mov edx, ebx
lea ecx, [ebp - 0x64]
call fcn.00415530
mov ecx, eax
mov dword [ebp - 4], 5
cmp dword [ecx + 0x14], 0x10
jb 0x41ecbf
mov ecx, dword [ecx]
cmp dword [edi + 0x42c], 0x10
lea eax, [edi + 0x418]
jb 0x41ecd0
mov eax, dword [eax]
push ecx
push eax
push str._s_connect_succeed___s
push 1
push 0x6b2b20
call fcn.004030c0
add esp, 0x14
lea ecx, [ebp - 0x64]
call fcn.00404780
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret 4