Function at 0x661900
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x759990]
xor eax, esp
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x1f4]
mov ecx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1ec]
push ebp
mov ebp, dword [esp + 0x1f4]
lea eax, [eax*4 + 0x138]
add eax, ebp
mov byte [esp + 0xa], 0
push edi
mov dword [esp + 0x14], eax
mov dword [eax], 0xffffffff
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push ebx
call fcn.00660f00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x661bfc
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
call fcn.00660190
add esp, 0x10
test al, al
jne 0x6619cf
call fcn.0062ddb7
mov esi, eax
call fcn.0062ddb7
mov edi, eax
lea eax, [esp + 0xf0]
push 0x100
push eax
push dword [esi]
call fcn.00672470
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0065f880
push dword [esp + 0x38]
push ebp
push ebx
call fcn.00660240
add esp, 0x28
jmp 0x661bf9
push dword [esp + 0x14]
lea eax, [esp + 0xc4]
push eax
push str.__Trying__s:_d...
push ebx
call fcn.0065f950
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 2
je 0x6619f7
cmp eax, 0x17
jne 0x661a05
cmp dword [esp + 0x34], 1
jne 0x661a05
mov eax, 1
jmp 0x661a07
xor eax, eax
mov esi, dword [esp + 0x1c]
test eax, eax
setne al
mov byte [esp + 0x13], al
test al, al
je 0x661a2b
cmp byte [ebx + 0x6ea], 0
je 0x661a2b
push esi
push ebx
call fcn.00661d10
add esp, 8
push esi
call fcn.00660e60
add esp, 4
cmp byte [esp + 0x13], 0
je 0x661a4e
cmp byte [ebx + 0x6f2], 0
je 0x661a4e
push esi
push ebx
call fcn.00661c20
add esp, 8
cmp dword [ebx + 0x1b0], 0
je 0x661a8d
push 1
push ebx
call fcn.00650a70
mov eax, dword [ebx + 0x1b0]
push 0
push esi
push dword [ebx + 0x1b4]
call eax
push 0
push ebx
mov dword [esp + 0x30], eax
call fcn.00650a70
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 2
jne 0x661ad7
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x661a9b
cmp eax, 0x17
jne 0x661af0
lea eax, [esp + 0x40]
push eax
call fcn.0068d500
push eax
push dword [esp + 0x38]
push esi
push ebx
call fcn.00661280
mov edi, eax
add esp, 0x14
test edi, edi
je 0x661af0
push esi
push ebp
push ebx
call fcn.00660240
add esp, 0xc
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x661bfb
test eax, eax
je 0x661a8d
push esi
push ebp
push ebx
call fcn.00660240
add esp, 0xc
mov eax, 0x2a
jmp 0x661bfb
push 1
push esi
call fcn.0068d590
lea eax, [esp + 0x28]
push eax
call fcn.006673d0
add esp, 0xc
cmp dword [ebp + 0x4f0], 1
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp + 0x268], xmm0
jle 0x661b45
push 3
push dword [ebp + 0x27c]
push dword [ebp + 0x278]
push ebx
call fcn.00650540
push 4
push dword [ebp + 0x284]
push dword [ebp + 0x280]
push ebx
call fcn.00650540
add esp, 0x20
cmp byte [esp + 0x12], 0
jne 0x661bf3
cmp byte [ebp + 0x509], 4
je 0x661bf3
cmp byte [ebp + 0x259], 0
jne 0x661b89
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x661b89
test edi, edi
jne 0x661bef
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov eax, edi
jmp 0x661bfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x661be7
cmp edi, 0x2732
jle 0x661ba6
cmp edi, 0x2734
jle 0x661be7
push 0x100
lea eax, [esp + 0xf4]
push eax
push edi
call fcn.00672470
push eax
lea eax, [esp + 0xd0]
push eax
push str.Immediate_connect_fail_for__s:__s
push ebx
call fcn.0065f950
push esi
push ebp
push ebx
mov dword [ebx + 0x938], edi
call fcn.00660240
mov edi, 7
add esp, 0x28
mov eax, edi
jmp 0x661bfb
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [eax], esi
mov eax, edi
jmp 0x661bfb
mov eax, dword [esp + 0x18]
mov dword [eax], esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1ec]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00622d3e
add esp, 0x1e4
ret