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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, r8
mov r15, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov ebx, 0x100
cmp rax, rbx
jb 0x14000827f
mov eax, 0x8007000d
jmp 0x140008553
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
lea rdi, vtable.ATL::CSecurityDesc.0
mov qword [rbp + 0x38], rdi
and qword [rbp + 0x40], rax
and dword [rbp + 0x20], eax
and qword [rbp + 0x28], rax
and dword [rbp + 0x30], eax
mov dword [rsp + 0x20], 0x221
lea r9d, [rax + 0x20]
lea r8d, [rax + 2]
lea rdx, [0x1400173d8]
lea rcx, [rsp + 0x60]
call fcn.140008e5c
nop
lea r9, [rbp + 0x20]
lea rdx, [rsp + 0x60]
call fcn.14001059c
mov esi, eax
lea rcx, [rsp + 0x60]
call fcn.140009084
test esi, esi
js 0x140008544
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov r9d, 1
xor r8d, r8d
mov edx, 0x40080002
lea rcx, str..pipeStandardCollector.Service170
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
mov qword [rbp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x140008336
mov esi, 0xe1110021
jmp 0x140008535
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rbp], rax
test rax, rax
jne 0x14000836d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140008520
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], rax
mov rax, qword [r15 + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 8]
call fcn.1400087d0
and qword [rbp - 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rdi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140008456
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140008456
cmp eax, 0x3e5
jne 0x14000848d
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 8]
sub rcx, rdx
sar rcx, 3
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
mov rcx, qword [r15 + 0xc0]
test rcx, rcx
je 0x140008431
call qword [sym.imp.KERNEL32.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x140008431
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0xc0]
call qword [sym.imp.KERNEL32.dll_SetThreadpoolTimer]
test esi, esi
je 0x1400084f6
cmp esi, 1
jne 0x14000848d
mov r9d, esi
lea r8, [rbp]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14000848d
mov r8, qword [r14 + 8]
sub r8, qword [r14]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x48]
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140008484
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400084fa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
jne 0x1400083bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140008520
mov rax, qword [rbp + 0x18]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000850e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000850e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor esi, esi
jmp 0x1400084b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x14000849e
mov esi, 0xe1110025
jmp 0x1400084b2
call fcn.14001269c
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
and qword [rbp + 0x18], 0
test rdi, rdi
je 0x14000852e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, vtable.ATL::CSecurityDesc.0
test rbx, rbx
je 0x140008544
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbp + 0x38], rdi
lea rcx, [rbp + 0x38]
call fcn.140009190
mov eax, esi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140012650
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret