Function at 0x5cd7b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0x10a
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + eax*4]
mov byte [ebp - 0x1c6], 0
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x1d8], eax
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1cc], esi
push eax
push ecx
push ebx
call fcn.005ccda0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5cdb4a
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
call fcn.005cc130
add esp, 0x10
test al, al
jne 0x5cd88f
call fcn.007436af
mov esi, eax
call fcn.007436af
mov edi, eax
lea eax, [ebp - 0x134]
push 0x100
push eax
push dword [esi]
call fcn.005f6960
push eax
push dword [edi]
mov eax, dword [ebp - 0x1cc]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.005cb890
push dword [ebp - 0x1d4]
push ebx
call fcn.005cc1d0
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1d0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_ld..._n
push esi
call fcn.005cb950
mov eax, dword [ebp - 0x1c4]
add esp, 0x10
cmp eax, 2
je 0x5cd8b7
cmp eax, 0x17
jne 0x5cd8c4
cmp dword [ebp - 0x1c0], 1
jne 0x5cd8c4
mov al, 1
jmp 0x5cd8c6
xor al, al
mov esi, dword [ebp - 0x1d4]
mov byte [ebp - 0x1c5], al
test al, al
je 0x5cd8ef
mov eax, dword [ebp - 0x1cc]
cmp byte [eax + 0xb47], 0
je 0x5cd8ef
push esi
push ebx
call fcn.005cdc40
add esp, 8
push esi
call fcn.005ccd00
mov eax, dword [ebp - 0x1cc]
add esp, 4
cmp byte [ebp - 0x1c5], 0
je 0x5cd920
cmp byte [eax + 0xb4f], 0
je 0x5cd920
push esi
push eax
call fcn.005cdb60
mov eax, dword [ebp - 0x1cc]
add esp, 8
cmp dword [eax + 0x608], 0
je 0x5cd971
push 1
push eax
call fcn.005be510
mov eax, dword [ebp - 0x1cc]
push 0
push esi
push dword [eax + 0x60c]
mov eax, dword [eax + 0x608]
call eax
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1cc]
push 0
push eax
call fcn.005be510
mov eax, dword [ebp - 0x1d0]
add esp, 0x1c
cmp eax, 2
jne 0x5cd9cc
mov byte [ebp - 0x1c6], 1
mov eax, dword [ebp - 0x1c4]
cmp eax, 2
je 0x5cd981
cmp eax, 0x17
jne 0x5cd9f0
lea eax, [ebp - 0x1b4]
push eax
call fcn.005f7270
push eax
push dword [ebp - 0x1c4]
push esi
push ebx
call fcn.005cd090
mov edi, eax
add esp, 0x14
test edi, edi
je 0x5cd9f0
push esi
push ebx
call fcn.005cc1d0
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x5cd971
push esi
push ebx
call fcn.005cc1d0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.005d74d0
lea eax, [ebp - 0x1e8]
push eax
call fcn.005cf540
add esp, 0xc
cmp dword [ebx + 0x550], 1
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x540], xmm0
jle 0x5cda4f
push 3
push dword [ebx + 0x55c]
push dword [ebx + 0x558]
push dword [ebp - 0x1cc]
call fcn.005bdbf0
push 4
push dword [ebx + 0x564]
push dword [ebx + 0x560]
push dword [ebp - 0x1cc]
call fcn.005bdbf0
add esp, 0x20
cmp byte [ebp - 0x1c6], 0
jne 0x5cdb40
cmp dword [ebx + 0x2f8], 4
je 0x5cdb40
cmp byte [ebx + 0x532], 0
jne 0x5cdaae
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x5cdaae
test edi, edi
jne 0x5cdb2d
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1d0], eax
cmp eax, 0xb
je 0x5cdb23
cmp eax, 0x2732
jle 0x5cdacd
cmp eax, 0x2734
jle 0x5cdb23
push 0x100
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.005f6960
mov edi, dword [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.005cb950
mov eax, dword [ebp - 0x1d0]
push esi
push ebx
mov dword [edi + 0xd9c], eax
call fcn.005cc1d0
add esp, 0x24
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1d8]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret