Function at 0x55ff21
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.0055f732
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x56021d
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0055fec2
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
test al, al
jne 0x55ffdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0056a638
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xcc]
call fcn.0055e94b
add esp, 0x18
jmp 0x5600eb
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push dword [ebp - 0xcc]
call fcn.0055e9e6
add esp, 0xc
cmp dword [ebp - 0xc4], 2
je 0x560004
cmp dword [ebp - 0xc4], 0x17
jne 0x56002e
cmp dword [ebp - 0xc0], 1
jne 0x56002e
mov eax, dword [ebp - 0xcc]
mov byte [ebp - 0xc5], 1
cmp byte [eax + 0x356], 0
je 0x560035
push ebx
push edi
call fcn.0055f7ef
pop ecx
pop ecx
jmp 0x560035
mov byte [ebp - 0xc5], 0
push ebx
call fcn.0055f6a8
cmp byte [ebp - 0xc5], 0
mov eax, dword [ebp - 0xcc]
pop ecx
je 0x560063
cmp byte [eax + 0x48c], 0
je 0x560063
push ebx
push eax
call fcn.0056022e
mov eax, dword [ebp - 0xcc]
pop ecx
pop ecx
mov ecx, dword [eax + 0x198]
test ecx, ecx
je 0x56008f
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 0x5600dd
mov byte [ebp - 0xc6], 1
cmp dword [ebp - 0xc4], 2
je 0x5600a1
cmp dword [ebp - 0xc4], 0x17
jne 0x5600ff
lea eax, [ebp - 0xb4]
push eax
call fcn.0057c074
push eax
push dword [ebp - 0xc4]
push ebx
push edi
call fcn.0055fa82
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5600ff
push ebx
push edi
call fcn.0055f057
pop ecx
pop ecx
push 7
cmp esi, 1
pop eax
cmove esi, eax
mov eax, esi
jmp 0x56021f
test ecx, ecx
je 0x56008f
mov dword [ebp - 0xd4], 0x2a
push ebx
push edi
call fcn.0055f057
mov eax, dword [ebp - 0xd4]
pop ecx
pop ecx
jmp 0x56021f
push 1
push ebx
call fcn.0057c0ec
pop ecx
pop ecx
call fcn.005561fb
cmp dword [edi + 0x380], 1
mov dword [edi + 0x378], eax
mov dword [edi + 0x37c], edx
jle 0x56013d
push dword [edi + 0x38c]
push dword [edi + 0x388]
push dword [ebp - 0xcc]
call fcn.00552782
add esp, 0xc
cmp byte [ebp - 0xc6], 0
jne 0x560215
cmp dword [edi + 0x8c], 1
jne 0x560215
cmp byte [edi + 0x372], 0
jne 0x56017f
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 0x56018f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0xd0], ecx
jmp 0x560195
mov ecx, dword [ebp - 0xd0]
cmp dword [ebp - 0xc4], 0x17
sete al
cmp dword [ebp - 0xd8], 0xffffffff
mov byte [edi + 0x35f], al
jne 0x560200
cmp ecx, 0xb
je 0x5601fe
cmp ecx, 0x2732
jle 0x5601c3
cmp ecx, 0x2734
jle 0x5601fe
push ecx
push edi
call fcn.0056a638
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.0055e9e6
mov ecx, dword [ebp - 0xd0]
push ebx
push edi
mov dword [esi + 0x4668], ecx
call fcn.0055f057
add esp, 0x20
push 7
pop esi
jmp 0x5600d6
xor esi, esi
test esi, esi
jne 0x5600d6
mov eax, dword [ebp - 0xdc]
mov dword [eax], ebx
jmp 0x5600d6
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.0054f3d2
leave
ret