Function at 0x6ceb71
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1d4], ecx
mov byte [ebp - 0x1c6], cl
lea ecx, [ebp - 0x1cc]
push ecx
or dword [esi + edx*4 + 0x160], 0xffffffff
lea ecx, [ebp - 0x1c4]
push ecx
push eax
push ebx
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x1e0], edx
call fcn.006ce259
add esp, 0x10
mov dword [ebp - 0x1dc], eax
test eax, eax
jne 0x6ceeb9
push edi
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
call fcn.006cd756
add esp, 0x10
test al, al
jne 0x6cec41
call fcn.00749863
mov esi, dword [eax]
call fcn.00749863
mov edi, eax
lea eax, [ebp - 0x134]
push 0x100
push eax
push esi
call fcn.006c2751
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.006cd005
mov esi, dword [ebp - 0x1d8]
add esp, 0x1c
mov edi, dword [ebp - 0x1cc]
jmp 0x6ced71
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_ld..._n
push ebx
call fcn.006cd0b1
add esp, 0x10
cmp dword [ebp - 0x1c4], 2
je 0x6cec6b
cmp dword [ebp - 0x1c4], 0x17
jne 0x6cec95
cmp dword [ebp - 0x1c0], 1
jne 0x6cec95
cmp byte [ebx + 0x6f6], 0
mov edi, dword [ebp - 0x1cc]
mov byte [ebp - 0x1c5], 1
je 0x6ceca2
push edi
push ebx
call fcn.006cef94
pop ecx
pop ecx
jmp 0x6ceca2
mov edi, dword [ebp - 0x1cc]
mov byte [ebp - 0x1c5], 0
push edi
call fcn.006ce1cf
cmp byte [ebp - 0x1c5], 0
pop ecx
je 0x6cecc4
cmp byte [ebx + 0x6ff], 0
je 0x6cecc4
push edi
push ebx
call fcn.006ceec7
pop ecx
pop ecx
cmp dword [ebx + 0x1c8], 0
je 0x6ced07
push 1
push ebx
call fcn.006bfd7b
push 0
push edi
push dword [ebx + 0x1cc]
call dword [ebx + 0x1c8]
push 0
push ebx
mov dword [ebp - 0x1d0], eax
call fcn.006bfd7b
mov eax, dword [ebp - 0x1d0]
add esp, 0x1c
cmp eax, 2
jne 0x6ced63
mov byte [ebp - 0x1c6], 1
cmp dword [ebp - 0x1c4], 2
je 0x6ced19
cmp dword [ebp - 0x1c4], 0x17
jne 0x6ced8d
lea eax, [ebp - 0x1b4]
push eax
call fcn.006e4fe7
push eax
push dword [ebp - 0x1c4]
push edi
push ebx
call fcn.006ce525
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x1dc], edi
test edi, edi
je 0x6ced87
mov eax, dword [ebp - 0x1cc]
push eax
push esi
push ebx
call fcn.006cd7c0
add esp, 0xc
cmp edi, 1
push 7
pop eax
cmove edi, eax
mov eax, edi
jmp 0x6ceeb8
test eax, eax
je 0x6ced07
mov dword [ebp - 0x1d4], 0x2a
push edi
push esi
push ebx
call fcn.006cd7c0
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
jmp 0x6ceeb8
mov edi, dword [ebp - 0x1cc]
push 1
push edi
call fcn.006d7e23
lea eax, [ebp - 0x1f0]
push eax
call fcn.006d0b97
lea edi, [esi + 0x278]
add esp, 0xc
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1d8]
cmp dword [esi + 0x270], 1
jle 0x6cedea
push 3
push dword [esi + 0x28c]
push dword [esi + 0x288]
push ebx
call fcn.006bf97e
push 4
push dword [esi + 0x294]
push dword [esi + 0x290]
push ebx
call fcn.006bf97e
add esp, 0x20
cmp byte [ebp - 0x1c6], 0
jne 0x6ceea3
cmp dword [esi + 0x60], 4
je 0x6ceea3
cmp byte [esi + 0x266], 0
mov edi, dword [ebp - 0x1cc]
jne 0x6cee29
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6cee8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1d0], eax
cmp eax, 0xb
je 0x6cee86
cmp eax, 0x2732
jle 0x6cee48
cmp eax, 0x2734
jle 0x6cee86
push 0x100
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.006c2751
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.006cd0b1
mov eax, dword [ebp - 0x1d0]
push edi
push esi
push ebx
mov dword [ebx + 0x948], eax
call fcn.006cd7c0
add esp, 0x28
push 7
pop eax
jmp 0x6ceeb8
xor eax, eax
jmp 0x6cee90
mov eax, dword [ebp - 0x1dc]
test eax, eax
jne 0x6ceeb8
mov ecx, dword [ebp - 0x1e0]
mov dword [esi + ecx*4 + 0x160], edi
jmp 0x6ceeb8
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 0x1cc]
mov dword [esi + ecx*4 + 0x160], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret