Function at 0x140003924
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 - 0x40], 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, 0x100
cmp rax, rbx
jb 0x14000397a
mov eax, 0x8007000d
jmp 0x140003c3c
lea r14, [0x14000f0a0]
mov qword [rbp - 0x70], r14
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 r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x1400107a4]
lea rcx, [rbp - 0x30]
call fcn.1400029bc
nop
lea r9, [rsp + 0x78]
lea rdx, [rbp - 0x30]
call fcn.14000be68
mov esi, eax
lea rcx, [rbp - 0x30]
call fcn.140002b80
test esi, esi
js 0x140003c2d
lea rax, [rsp + 0x78]
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]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x140003a29
mov esi, 0xc1110021
jmp 0x140003c1e
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 0x140003a5f
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 0x140003c0f
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.140004304
and qword [rbp - 0x60], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rdi
mov r14, qword [rsp + 0x60]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x140003ba4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x217
je 0x140003ba4
cmp eax, 0x3e5
jne 0x140003b42
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 0x140003b1c
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_IsThreadpoolTimerSet]
test eax, eax
je 0x140003b1c
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 0x140003be1
cmp esi, 1
jne 0x140003b42
mov r9d, esi
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
test eax, eax
jne 0x140003ba4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
jne 0x140003aa6
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 0x140003c08
mov rdx, qword [rsp + 0x70]
sub rdx, r14
and rdx, 0xfffffffffffffff8
mov rax, r14
cmp rdx, 0x1000
jb 0x140003c00
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c00
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 0x140003bd3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140003be5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
jmp 0x140003b42
xor esi, esi
jmp 0x140003b67
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_DisconnectNamedPipe]
test eax, eax
je 0x140003b53
mov esi, 0xc1110025
jmp 0x140003b67
mov rcx, r14
call fcn.14000c668
lea r14, [0x14000f0a0]
test rdi, rdi
je 0x140003c1e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test rbx, rbx
je 0x140003c2d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
mov qword [rbp - 0x70], r14
lea rcx, [rbp - 0x70]
call fcn.140002ca0
mov eax, esi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000c640
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