Function at 0x1400034cc
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 [0x140017230]
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, pe_nt_image_headers64
cmp rax, rbx
jb 0x140003522
mov eax, 0x8007000d
jmp 0x1400037e8
lea rax, [0x14000f0a0]
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, [0x140010704]
lea rcx, [rbp - 0x30]
call fcn.14000270c
nop
lea r9, [rsp + 0x78]
lea rdx, [rbp - 0x30]
call fcn.14000b578
mov esi, eax
lea rcx, [rbp - 0x30]
call fcn.1400028b8
test esi, esi
js 0x1400037d2
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 0x1400035d3
mov esi, 0xc1110021
jmp 0x1400037c3
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 0x140003609
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 0x1400037b4
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.140003f2c
mov r8, r14
xor edx, edx
lea rcx, [rbp - 0x58]
call sub.api_ms_win_crt_string_l1_1_0.dll_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 0x14000374f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x217
je 0x14000374f
cmp eax, 0x3e5
jne 0x1400036ed
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 0x1400036c7
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x1400036c7
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 0x14000378c
cmp esi, 1
jne 0x1400036ed
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 0x14000374f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
jne 0x140003651
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 0x1400037b4
mov rdx, qword [rsp + 0x70]
sub rdx, r14
and rdx, 0xfffffffffffffff8
mov rax, r14
cmp rdx, 0x1000
jb 0x1400037ab
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037ab
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
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]
test eax, eax
jne 0x14000377e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003790
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
jmp 0x1400036ed
xor esi, esi
jmp 0x140003712
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x1400036fe
mov esi, 0xc1110025
jmp 0x140003712
mov rcx, r14
call fcn.14000bda8
nop
test rdi, rdi
je 0x1400037c3
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x1400037d2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
lea rax, [0x14000f0a0]
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x70]
call fcn.1400029e0
mov eax, esi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000bd80
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