Function at 0x57fbb0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xd8
mov eax, dword [0x6e7070]
xor eax, esp
mov dword [esp + 0xd4], eax
mov edx, dword [esp + 0xe4]
xor ecx, ecx
mov eax, dword [esp + 0xe0]
push ebx
push ebp
push edi
mov edi, dword [esp + 0xe8]
mov dword [esp + 0x10], ecx
mov byte [esp + 0xf], cl
lea ecx, [esp + 0x14]
push ecx
mov ebp, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
mov dword [esp + 0x28], edx
mov dword [edx], 0xffffffff
call fcn.0057f210
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x57fc26
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0052c3c6
add esp, 0xd8
ret
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0057fb20
add esp, 0xc
test al, al
jne 0x57fc73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0058b160
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0057e2d0
push dword [esp + 0x30]
push edi
call fcn.0057e9f0
add esp, 0x20
jmp 0x57fe64
lea eax, [esp + 0xb4]
push eax
push str.__Trying__s..._n
push ebp
call fcn.0057e3a0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, 2
je 0x57fc97
cmp eax, 0x17
jne 0x57fca2
cmp dword [esp + 0x28], 1
jne 0x57fca2
mov al, 1
jmp 0x57fca4
xor al, al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x12], al
test al, al
je 0x57fcc3
cmp byte [ebp + 0x2e6], 0
je 0x57fcc3
push esi
push edi
call fcn.0057f300
add esp, 8
push esi
call fcn.0057f0e0
add esp, 4
cmp byte [esp + 0x12], 0
je 0x57fce6
cmp byte [ebp + 0x3f0], 0
je 0x57fce6
push esi
push ebp
call fcn.0057fe80
add esp, 8
mov eax, dword [ebp + 0x198]
test eax, eax
je 0x57fd0e
push 0
push esi
push dword [ebp + 0x19c]
call eax
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
cmp ecx, 2
jne 0x57fd57
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x24]
cmp eax, 2
je 0x57fd1c
cmp eax, 0x17
jne 0x57fd6f
lea eax, [esp + 0x34]
push eax
call fcn.0059fb70
push eax
push dword [esp + 0x2c]
push esi
push edi
call fcn.0057f630
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x57fd6f
push esi
push edi
call fcn.0057e9f0
add esp, 8
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x57fe66
test ecx, ecx
je 0x57fd0e
push esi
push edi
call fcn.0057e9f0
add esp, 8
mov eax, 0x2a
jmp 0x57fe66
push 1
push esi
call fcn.0059fbf0
add esp, 8
call fcn.00575150
cmp dword [edi + 0x274], 1
mov dword [edi + 0x26c], eax
mov dword [edi + 0x270], edx
jle 0x57fda3
push dword [edi + 0x278]
push ebp
call fcn.00571370
add esp, 8
cmp byte [esp + 0x13], 0
jne 0x57fe5e
cmp dword [edi + 0x8c], 1
jne 0x57fe5e
push dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x57fde0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
jmp 0x57fde4
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x24], 0x17
sete cl
cmp dword [esp + 0x18], 0xffffffff
mov byte [edi + 0x257], cl
jne 0x57fe50
cmp eax, 0xb
je 0x57fe44
cmp eax, 0x2732
jle 0x57fe0c
cmp eax, 0x2734
jle 0x57fe44
push eax
push edi
call fcn.0058b160
push eax
lea eax, [esp + 0xc0]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.0057e3a0
mov ecx, dword [esp + 0x2c]
push esi
push edi
mov dword [ebp + 0x8584], ecx
call fcn.0057e9f0
mov ebx, 7
add esp, 0x20
mov eax, ebx
jmp 0x57fe66
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], esi
mov eax, ebx
jmp 0x57fe66
test ebx, ebx
jne 0x57fe5a
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, ebx
jmp 0x57fe66
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052c3c6
add esp, 0xd8
ret