Function at 0x18000352c
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x18000f040]
xor rax, rsp
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r8, str..pipechenstack_trainer__ld
mov edx, 0x80
lea rcx, [rbp - 0x80]
call fcn.180004070
lea rdx, [rbp - 0x80]
lea rcx, str._nPipe_Server:_Main_thread_awaiting_client_connection_on__s_n
call fcn.1800041fc
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov esi, 0x400
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea edx, [r14 + 3]
mov r9d, 0xff
lea r8d, [r14 + 6]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180003809
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1800035f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1800035f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180003805
lea rcx, str.Client_connected._n
call fcn.180002784
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], r14
movdqu xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x60], r14
lea rcx, [rsp + 0x68]
call fcn.1800040cc
mov r9, qword [rsp + 0x58]
mov rcx, r9
mov rdx, qword [rsp + 0x50]
sub rcx, rdx
cmp rcx, rsi
jbe 0x180003655
lea rax, [rdx + 0x400]
mov qword [rsp + 0x58], rax
jmp 0x180003689
jae 0x180003689
mov rax, qword [rsp + 0x60]
sub rax, rdx
cmp rax, rsi
jae 0x180003670
lea rcx, [rsp + 0x50]
call fcn.1800040cc
jmp 0x180003689
sub rsi, rcx
lea rbx, [r9 + rsi]
mov r8, rsi
xor edx, edx
mov rcx, r9
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x58], rbx
mov esi, 0x3fe
jmp 0x1800036ff
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x180003722
mov ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rcx + rax], r14b
mov ecx, dword [rsp + 0x44]
inc ecx
mov rax, qword [rsp + 0x68]
mov byte [rcx + rax], r14b
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.180003b6c
mov ebx, dword [rsp + 0x40]
test ebx, ebx
jle 0x1800036ff
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800037ae
cmp ebx, dword [rsp + 0x48]
jne 0x1800037ae
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
mov r8d, esi
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180003690
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
lea rbx, str.InstanceThread:_client_disconnected__LastError_d.__n
je 0x18000373b
lea rbx, str.InstanceThread_ReadFile_failed__LastError_d._n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800041fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.InstanceThread_exitting._n
call fcn.180002784
nop
mov ebx, 0x1000
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800037ca
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x1800037b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800037b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rbx, str.InstanceThread_WriteFile_failed__LastError_d._n
jmp 0x18000373b
call fcn.180005f1c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180003805
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x180003800
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003800
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180005f1c
xor eax, eax
jmp 0x180003820
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateNamedPipe_failed__LastError_d._n
call fcn.1800041fc
or eax, 0xffffffff
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180005ed0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret