Function at 0x4e08a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518dce
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
mov ecx, dword [ecx + 0x1c]
push eax
call fcn.004dba50
test al, al
je 0x4e0949
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp esi, eax
jae 0x4e0949
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e09ec
push str.Unable_to_open_TCP_socket.
push 0x20c
push str.Task::SendText
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x1c
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4e0b36
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
cmp ecx, eax
je 0x4e09ae
lea esi, [ecx + 0x10]
nop dword [eax]
mov edx, dword [esi + 4]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e098a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e09a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
lea eax, [esi - 0x10]
cmp eax, dword [ebp - 0x28]
jne 0x4e0970
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x4e0b17
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e0b93
jmp 0x4e0b17
mov eax, dword [ebp - 0x34]
lea esi, [esi + esi*2]
movups xmm0, xmmword [eax + esi*8]
movzx eax, word [0x5515c4]
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x4e0a59
mov eax, dword [ebp - 0x34]
push dword [eax + esi*8 + 0x10]
push str.Unable_to_connect_to_PHD_peer___s_.
push 0x218
push str.Task::SendText
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4e0949
push edi
lea ecx, [ebp - 0x44]
call fcn.0049ab90
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
push ecx
mov esi, esp
mov dword [ebp - 0x44], 0x10000
mov dword [ebp - 0x40], 8
mov dword [eax], 0x7f
mov dword [eax + 4], 8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x28], esi
push eax
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x44]
add eax, 0x10
mov dword [esi], eax
call fcn.0049ade0
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x28], esi
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x44]
add eax, 0x10
mov dword [esi], eax
call fcn.0049ade0
lea ecx, [ebp - 0x44]
call fcn.0049aa30
lea ecx, [ebp - 0x44]
call fcn.0049aa80
push 1
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x3c]
test esi, esi
jle 0x4e0afd
cmp dword [eax], 0x10001
mov byte [ebp - 0x21], 1
je 0x4e0b01
mov byte [ebp - 0x21], 0
test eax, eax
je 0x4e094d
push eax
call fcn.0044419d
add esp, 4
jmp 0x4e094d
push edx
push ecx
call fcn.00443e34
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e0b54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4e0b73
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044d695
int3