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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140017230]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15, r8
mov r13, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov ebx, 0x100
cmp rax, rbx
jb 0x140003dfd
mov eax, 0x8007000d
jmp 0x140004138
lea r14, [0x1400100a0]
mov qword [rsp + 0x78], r14
and qword [rbp - 0x80], 0
and dword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
and dword [rsp + 0x70], 0
mov dword [rsp + 0x20], 0x221
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x140011824]
lea rcx, [rbp - 0x20]
call fcn.140002c4c
nop
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x20]
call fcn.14000ca60
mov esi, eax
lea rcx, [rbp - 0x20]
call fcn.140002de8
test esi, esi
js 0x140004127
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov edx, 0x40080002
lea rcx, str..pipeStandardCollector.Service
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreateNamedPipeW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x140003eb5
mov esi, 0xc1110021
jmp 0x140004112
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140003ef7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400040fd
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x50]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x60]
call fcn.1400043d0
and qword [rbp - 0x48], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov r14, qword [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
nop dword [rax + rax]
test eax, eax
jne 0x140004077
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x217
je 0x140004077
cmp eax, 0x3e5
jne 0x140003ffc
mov rcx, qword [rbp - 0x58]
sub rcx, r14
sar rcx, 3
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [r13 + 0xc0]
test rcx, rcx
je 0x140003fd0
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
nop dword [rax + rax]
test eax, eax
je 0x140003fd0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13 + 0xc0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolTimer]
nop dword [rax + rax]
test esi, esi
je 0x1400040c6
cmp esi, 1
jne 0x140003ffc
mov r9d, esi
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
jne 0x140004077
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
nop dword [rax + rax]
test eax, eax
jne 0x140003f39
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test r14, r14
je 0x1400040f6
mov rdx, qword [rbp - 0x50]
sub rdx, r14
and rdx, 0xfffffffffffffff8
mov rax, r14
cmp rdx, 0x1000
jb 0x1400040ee
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400040ee
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
mov r8, qword [r15 + 8]
sub r8, qword [r15]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400040b2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x1400040cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
nop dword [rax + rax]
jmp 0x140003ffc
xor esi, esi
jmp 0x14000402d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
nop dword [rax + rax]
test eax, eax
je 0x140004013
mov esi, 0xc1110025
jmp 0x14000402d
mov rcx, r14
call fcn.14000d338
lea r14, [0x1400100a0]
test rdi, rdi
je 0x140004112
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140004127
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
mov qword [rsp + 0x78], r14
lea rcx, [rsp + 0x78]
call fcn.140002f90
mov eax, esi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000d310
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret