Function at 0x5600a1
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
or dword [ebp - 0xd8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], edx
mov ecx, dword [edi]
or dword [ebx], 0xffffffff
mov dword [ebp - 0xcc], ecx
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xc4]
mov byte [ebp - 0xc6], dl
push ecx
push eax
push edi
call fcn.0055f8b2
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x56039d
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00560042
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
test al, al
jne 0x56015b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0056a7b8
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xcc]
call fcn.0055eacb
add esp, 0x18
jmp 0x56026b
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push dword [ebp - 0xcc]
call fcn.0055eb66
add esp, 0xc
cmp dword [ebp - 0xc4], 2
je 0x560184
cmp dword [ebp - 0xc4], 0x17
jne 0x5601ae
cmp dword [ebp - 0xc0], 1
jne 0x5601ae
mov eax, dword [ebp - 0xcc]
mov byte [ebp - 0xc5], 1
cmp byte [eax + 0x356], 0
je 0x5601b5
push ebx
push edi
call fcn.0055f96f
pop ecx
pop ecx
jmp 0x5601b5
mov byte [ebp - 0xc5], 0
push ebx
call fcn.0055f828
cmp byte [ebp - 0xc5], 0
mov eax, dword [ebp - 0xcc]
pop ecx
je 0x5601e3
cmp byte [eax + 0x48c], 0
je 0x5601e3
push ebx
push eax
call fcn.005603ae
mov eax, dword [ebp - 0xcc]
pop ecx
pop ecx
mov ecx, dword [eax + 0x198]
test ecx, ecx
je 0x56020f
push 0
push ebx
push dword [eax + 0x19c]
call ecx
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xd0], ecx
cmp ecx, 2
jne 0x56025d
mov byte [ebp - 0xc6], 1
cmp dword [ebp - 0xc4], 2
je 0x560221
cmp dword [ebp - 0xc4], 0x17
jne 0x56027f
lea eax, [ebp - 0xb4]
push eax
call fcn.0057c1f7
push eax
push dword [ebp - 0xc4]
push ebx
push edi
call fcn.0055fc02
mov esi, eax
add esp, 0x14
test esi, esi
je 0x56027f
push ebx
push edi
call fcn.0055f1d7
pop ecx
pop ecx
push 7
cmp esi, 1
pop eax
cmove esi, eax
mov eax, esi
jmp 0x56039f
test ecx, ecx
je 0x56020f
mov dword [ebp - 0xd4], 0x2a
push ebx
push edi
call fcn.0055f1d7
mov eax, dword [ebp - 0xd4]
pop ecx
pop ecx
jmp 0x56039f
push 1
push ebx
call fcn.0057c26f
pop ecx
pop ecx
call fcn.0055637b
cmp dword [edi + 0x380], 1
mov dword [edi + 0x378], eax
mov dword [edi + 0x37c], edx
jle 0x5602bd
push dword [edi + 0x38c]
push dword [edi + 0x388]
push dword [ebp - 0xcc]
call fcn.00552902
add esp, 0xc
cmp byte [ebp - 0xc6], 0
jne 0x560395
cmp dword [edi + 0x8c], 1
jne 0x560395
cmp byte [edi + 0x372], 0
jne 0x5602ff
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xd8], eax
cmp eax, 0xffffffff
jne 0x56030f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0xd0], ecx
jmp 0x560315
mov ecx, dword [ebp - 0xd0]
cmp dword [ebp - 0xc4], 0x17
sete al
cmp dword [ebp - 0xd8], 0xffffffff
mov byte [edi + 0x35f], al
jne 0x560380
cmp ecx, 0xb
je 0x56037e
cmp ecx, 0x2732
jle 0x560343
cmp ecx, 0x2734
jle 0x56037e
push ecx
push edi
call fcn.0056a7b8
mov esi, dword [ebp - 0xcc]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0055eb66
mov ecx, dword [ebp - 0xd0]
push ebx
push edi
mov dword [esi + 0x4668], ecx
call fcn.0055f1d7
add esp, 0x20
push 7
pop esi
jmp 0x560256
xor esi, esi
test esi, esi
jne 0x560256
mov eax, dword [ebp - 0xdc]
mov dword [eax], ebx
jmp 0x560256
mov eax, dword [ebp - 0xdc]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f54f
leave
ret