Function at 0x6ad7b1
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x8d5f40]
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.006acf76
add esp, 0x10
mov dword [ebp - 0x1dc], eax
test eax, eax
jne 0x6adae7
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.006ac4a5
add esp, 0x10
test al, al
jne 0x6ad881
call fcn.00727de3
mov esi, dword [eax]
call fcn.00727de3
mov edi, eax
lea eax, [ebp - 0x134]
push 0x100
push eax
push esi
call fcn.006a1591
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.006abd54
mov esi, dword [ebp - 0x1d8]
add esp, 0x1c
mov edi, dword [ebp - 0x1cc]
jmp 0x6ad99f
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_ld..._n
push ebx
call fcn.006abe00
add esp, 0x10
cmp dword [ebp - 0x1c4], 2
jne 0x6ad8cc
cmp dword [ebp - 0x1c0], 1
jne 0x6ad8cc
cmp byte [ebx + 0x6f6], 0
mov edi, dword [ebp - 0x1cc]
mov byte [ebp - 0x1c5], 1
je 0x6ad8d9
push edi
push ebx
call fcn.006adbc2
pop ecx
pop ecx
jmp 0x6ad8d9
mov edi, dword [ebp - 0x1cc]
mov byte [ebp - 0x1c5], 0
push edi
call fcn.006aceec
cmp byte [ebp - 0x1c5], 0
pop ecx
je 0x6ad8fb
cmp byte [ebx + 0x6ff], 0
je 0x6ad8fb
push edi
push ebx
call fcn.006adaf5
pop ecx
pop ecx
cmp dword [ebx + 0x1c8], 0
je 0x6ad93e
push 1
push ebx
call fcn.0069ebbb
push 0
push edi
push dword [ebx + 0x1cc]
call dword [ebx + 0x1c8]
push 0
push ebx
mov dword [ebp - 0x1d0], eax
call fcn.0069ebbb
mov eax, dword [ebp - 0x1d0]
add esp, 0x1c
cmp eax, 2
jne 0x6ad991
mov byte [ebp - 0x1c6], 1
cmp dword [ebp - 0x1c4], 2
jne 0x6ad9bb
lea eax, [ebp - 0x1b4]
push eax
call fcn.004072b0
push eax
push dword [ebp - 0x1c4]
push edi
push ebx
call fcn.006ad227
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x1dc], edi
test edi, edi
je 0x6ad9b5
mov eax, dword [ebp - 0x1cc]
push eax
push esi
push ebx
call fcn.006ac4ff
add esp, 0xc
cmp edi, 1
push 7
pop eax
cmove edi, eax
mov eax, edi
jmp 0x6adae6
test eax, eax
je 0x6ad93e
mov dword [ebp - 0x1d4], 0x2a
push edi
push esi
push ebx
call fcn.006ac4ff
mov eax, dword [ebp - 0x1d4]
add esp, 0xc
jmp 0x6adae6
mov edi, dword [ebp - 0x1cc]
push 1
push edi
call fcn.006b69ba
lea eax, [ebp - 0x1f0]
push eax
call fcn.006af7c4
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 0x6ada18
push 3
push dword [esi + 0x28c]
push dword [esi + 0x288]
push ebx
call fcn.0069e7c0
push 4
push dword [esi + 0x294]
push dword [esi + 0x290]
push ebx
call fcn.0069e7c0
add esp, 0x20
cmp byte [ebp - 0x1c6], 0
jne 0x6adad1
cmp dword [esi + 0x60], 4
je 0x6adad1
cmp byte [esi + 0x266], 0
mov edi, dword [ebp - 0x1cc]
jne 0x6ada57
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6adab8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1d0], eax
cmp eax, 0xb
je 0x6adab4
cmp eax, 0x2732
jle 0x6ada76
cmp eax, 0x2734
jle 0x6adab4
push 0x100
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.006a1591
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.006abe00
mov eax, dword [ebp - 0x1d0]
push edi
push esi
push ebx
mov dword [ebx + 0x948], eax
call fcn.006ac4ff
add esp, 0x28
push 7
pop eax
jmp 0x6adae6
xor eax, eax
jmp 0x6adabe
mov eax, dword [ebp - 0x1dc]
test eax, eax
jne 0x6adae6
mov ecx, dword [ebp - 0x1e0]
mov dword [esi + ecx*4 + 0x160], edi
jmp 0x6adae6
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.006fedff
leave
ret