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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140014238]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, r8
mov r13, rcx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
mov ebx, 0x100
cmp rax, rbx
jb 0x1400030de
mov eax, 0x8007000d
jmp 0x1400033ad
lea rax, [0x14000d0d0]
mov qword [rbp - 0x70], rax
and qword [rbp - 0x68], 0
and dword [rsp + 0x78], 0
and qword [rbp - 0x80], 0
and dword [rbp - 0x78], 0
mov dword [rsp + 0x20], 0x221
mov r14d, 0x20
mov r9d, r14d
lea r8d, [r14 - 0x1e]
lea rdx, [0x14000e5d4]
lea rcx, [rbp - 0x30]
call fcn.1400022b4
nop
lea r9, [rsp + 0x78]
lea rdx, [rbp - 0x30]
call fcn.14000a1e0
mov esi, eax
lea rcx, [rbp - 0x30]
call fcn.140002470
test esi, esi
js 0x140003397
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
lea edi, [r14 - 0x1f]
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]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14000318f
mov esi, 0xc1110021
jmp 0x140003388
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]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400031c5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140003379
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
and qword [rsp + 0x60], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140003a44
mov r8, r14
xor edx, edx
lea rcx, [rbp - 0x58]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov qword [rbp - 0x40], rdi
mov r14, qword [rsp + 0x60]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400032b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x217
je 0x1400032b7
cmp eax, 0x3e5
jne 0x1400032a5
mov rcx, qword [rsp + 0x68]
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]
mov esi, eax
mov rcx, qword [r13 + 0xc0]
test rcx, rcx
je 0x140003283
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x140003283
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]
test esi, esi
je 0x1400032f1
cmp esi, 1
jne 0x1400032a5
mov r9d, esi
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
test eax, eax
jne 0x1400032b7
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003309
jmp 0x14000320d
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]
test eax, eax
jne 0x1400032e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400032f5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
jmp 0x1400032a5
xor esi, esi
jmp 0x14000331d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003309
mov esi, 0xc1110025
jmp 0x14000331d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test r14, r14
je 0x140003379
mov rax, qword [rsp + 0x70]
sub rax, r14
sar rax, 3
movabs rcx, 0x1fffffffffffffff
cmp rax, rcx
ja 0x140003372
shl rax, 3
cmp rax, 0x1000
jb 0x140003368
test r14b, 0x1f
jne 0x140003372
mov rax, qword [r14 - 8]
cmp rax, r14
jae 0x140003372
sub r14, rax
sub r14, 8
cmp r14, 0x1f
ja 0x140003372
mov r14, rax
mov rcx, r14
call fcn.14000a904
jmp 0x140003379
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
test rdi, rdi
je 0x140003388
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x140003397
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rax, [0x14000d0d0]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x70]
call fcn.140002580
mov eax, esi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000a920
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret