Function at 0x1400587f0
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
cmp word [r8], 1
mov r10, r8
mov r11, rdx
mov rbx, rcx
jne 0x1400588a3
mov rax, qword [rdx]
mov ecx, dword [r8 + 0x78]
mov qword [r8 + 8], rax
movzx eax, byte [r8 + 0x67]
test ecx, ecx
jne 0x140058830
test al, al
je 0x14005885f
add rax, rax
mov eax, dword [r8 + rax*8 + 0x58]
add dword [r8 + 0x60], eax
jmp 0x14005885f
add rax, rax
xor edx, edx
add dword [r8 + rax*8 + 0x58], ecx
mov eax, dword [r8 + 0x78]
add dword [r8 + 0x60], eax
movzx ecx, word [r8 + 0x64]
mov dword [r8 + 0x78], edx
cmp eax, ecx
jne 0x140058858
add qword [r8 + 0x80], rcx
jmp 0x14005885f
mov qword [r8 + 0x80], rdx
lea rdx, [r8 + 0x11c]
lea rcx, [r11 + 8]
call fcn.14005ecc0
test byte [rbx + 0x5a], 8
je 0x140058885
mov rdx, r10
mov rcx, r11
add rsp, 0x20
pop rbx
jmp 0x140064400
test byte [rbx + 0x56], 6
jne 0x140058892
test byte [r10 + 0x66], 1
jne 0x140058875
lea rcx, [r11 + 0x24]
mov rdx, r10
add rsp, 0x20
pop rbx
jmp fcn.140064050
add rcx, 0xffffffffffffff80
add rsp, 0x20
pop rbx
jmp 0x140066a20
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movups xmm0, xmmword [rcx + 0x24]
mov rdi, rdx
movups xmmword [rdx + 0x100], xmm0
movsd xmm1, qword [rcx + 0x34]
xorps xmm0, xmm0
movsd qword [rdx + 0x110], xmm1
mov eax, dword [rcx + 0x3c]
mov dword [rdx + 0x118], eax
lea rax, [rdx + 0x18]
movups xmmword [rax], xmm0
add rdx, 0x10
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov dword [rax], 0x8004
mov qword [rax + 8], rax
mov eax, 1
mov rcx, qword [rdi + 8]
mov dword [rdx], 0x57494e58
movups xmmword [rdx + 0x18], xmm0
movups xmmword [rdx + 0x28], xmm0
lock xadd qword [rcx], rax
inc rax
cmp rax, 1
jg 0x14006447a
mov ecx, recv
int 0x29
mov rcx, qword [rdi + 8]
xor r8d, r8d
call fcn.140060150
mov ebx, eax
test eax, eax
jns 0x140064497
mov rcx, qword [rdi + 8]
call fcn.1400614c0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x60
test byte [rcx + 0xda], 0x40
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
je 0x140066b07
test byte [rcx + 0xd6], 1
je 0x140066b07
cmp byte [rdx + 0x54], 0
jne 0x140066b07
mov qword [rax + 8], rbp
xor ebp, ebp
mov qword [rcx + 0x48], r8
sub rcx, 0xffffffffffffff80
mov qword [rax - 0x18], rdx
lea rdx, [rax - 0x18]
mov dword [rax - 0x10], ebp
call fcn.1400584f0
mov rsi, rax
test rax, rax
je 0x140066afd
test byte [0x1400f8b3e], 8
je 0x140066ab4
mov r9d, dword [rax + 8]
lea rcx, [rbx + 0x24]
mov qword [rsp + 0x40], rcx
lea rdx, [rbx + 8]
mov qword [rsp + 0x30], rdx
mov r8, rdi
mov byte [rsp + 0x20], 2
call fcn.140064670
mov rax, qword [rbx]
lea r8, [rsi + 8]
movzx r9d, byte [rsi + 2]
mov byte [rsp + 0x40], 2
mov dword [rsp + 0x38], ebp
mov rcx, qword [rax]
mov eax, dword [rbx + 0x5c]
mov dword [rsp + 0x30], eax
movzx edx, byte [rcx + 0x1e]
movzx ecx, dl
and dl, 1
shr cl, 1
and cl, 1
mov byte [rsp + 0x28], cl
mov rcx, rdi
mov byte [rsp + 0x20], dl
mov rdx, rbx
call fcn.140065460
mov rcx, rsi
call fcn.14006bd80
mov rbp, qword [rsp + 0x70]
jmp 0x140066b89
test byte [0x1400f8b3e], 2
je 0x140066b3d
mov r9d, dword [r8 + 8]
lea rax, [rdx + 0x24]
mov qword [rsp + 0x48], rax
lea rcx, [rdx + 8]
movzx eax, word [r8 + 8]
mov r8, rdi
mov qword [rsp + 0x38], rcx
mov word [rsp + 0x28], ax
mov byte [rsp + 0x20], 1
call fcn.14005eb10
mov rax, qword [rbx]
lea r8, [rsi + 8]
movzx r9d, byte [rsi + 2]
mov byte [rsp + 0x40], reloc.WS2_32.dll_recv
mov rcx, qword [rax]
mov eax, dword [rbx + 0x58]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x5c]
movzx edx, byte [rcx + 0x1e]
movzx ecx, dl
mov dword [rsp + 0x30], eax
shr cl, 1
and dl, 1
and cl, 1
mov byte [rsp + 0x28], cl
mov rcx, rdi
mov byte [rsp + 0x20], dl
mov rdx, rbx
call fcn.140065460
mov rcx, rsi
call fcn.14006bd80
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret