Function at 0x4e6eb0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xdc
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe4]
push ebp
mov ebp, dword [esp + 0xe4]
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov edx, dword [ebp]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
push edx
push eax
push ebp
call fcn.004e6db0
add esp, 0x10
test eax, eax
je 0x4e6f1e
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0052b755
add esp, 0xdc
ret
push ebx
push esi
push edi
lea ebx, [esp + 0x24]
lea edi, [esp + 0xb8]
lea esi, [esp + 0x38]
call fcn.004e6920
test eax, eax
jne 0x4e6f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004e9aa0
push eax
mov eax, dword [esp + 0x2c]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004e4210
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.004e6d50
add esp, 0x20
jmp 0x4e710d
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xb8]
push edx
push str.__Trying__s..._n
push esi
call fcn.004e4180
mov ebx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esi + 0x35c], 0
je 0x4e6f9c
mov edx, ebx
mov edi, ebp
call fcn.004e6b10
push ebx
call fcn.004e6b70
add esp, 4
cmp dword [esi + 0x464], 0
je 0x4e6fb5
mov edi, ebx
call fcn.004e6210
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4e6fdf
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 2
jne 0x4e700c
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x28]
push edx
push ebx
push ebp
call fcn.004e63c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e7024
push ebx
push ebp
call fcn.004e6d50
add esp, 8
lea eax, [edi - 1]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4e710f
test eax, eax
je 0x4e6fdf
push ebx
push ebp
call fcn.004e6d50
add esp, 8
mov eax, 0x2a
jmp 0x4e710f
push 1
push ebx
call fcn.00509190
add esp, 8
call fcn.004e3d20
cmp dword [ebp + 0x2b8], 1
mov dword [ebp + 0x2b0], eax
mov dword [ebp + 0x2b4], edx
jle 0x4e7059
mov eax, dword [ebp + 0x2bc]
push eax
push esi
call fcn.004e2370
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x4e7107
cmp dword [ebp + 0x8c], 1
jne 0x4e7107
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4e7099
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x28], 0x17
sete cl
mov dword [ebp + 0x268], ecx
cmp eax, 0xffffffff
jne 0x4e70fd
mov edi, dword [esp + 0x14]
cmp edi, 0xb
je 0x4e70fb
cmp edi, 0x2732
jle 0x4e70c7
cmp edi, 0x2734
jle 0x4e70fb
push edi
push ebp
call fcn.004e9aa0
push eax
lea edx, [esp + 0xc4]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004e4180
push ebx
push ebp
mov dword [esi + 0x85fc], edi
call fcn.004e6d50
mov edi, 7
add esp, 0x20
mov eax, edi
jmp 0x4e710f
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, edi
jmp 0x4e710f
mov ecx, dword [esp + 0x18]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.0052b755
add esp, 0xdc
ret