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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x140040048]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor ebx, ebx
mov r15, rdx
and qword [rsp + 0x38], rbx
mov rdi, rcx
and dword [rsp + 0x30], ebx
lea rcx, str..pipe671A75EB_8A98_4F90_9B16_29DC96A7A4EF
mov dword [rsp + 0x28], 0x800
mov edx, 0x40080003
lea r14d, [rbx + 1]
mov dword [rbp - 0x80], ebx
mov r9d, r14d
mov dword [rsp + 0x20], 0x800
lea r8d, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002cd3
lea rdx, str.CreateNamedPipe_failed
lea rcx, [rsp + 0x68]
call fcn.14000137c
lea rdx, [0x14003eb08]
lea rcx, [rsp + 0x68]
call fcn.14000f378
int3
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
test rax, rax
jne 0x140002d0f
lea rdx, str.CreateEvent_failed
lea rcx, [rsp + 0x68]
call fcn.14000137c
lea rdx, [0x14003eb08]
lea rcx, [rsp + 0x68]
call fcn.14000f378
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r13d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResetEvent]
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
xorps xmm0, xmm0
mov qword [rsp + 0x60], r14
mov rcx, rsi
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140002d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140002d8c
cmp eax, 0x3e5
jne 0x140002f32
xor r8d, r8d
mov qword [rbp - 0x78], r14
mov r9d, 0x7530
mov qword [rbp - 0x70], r15
lea rdx, [rbp - 0x78]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140002ec7
mov edi, 0x800
jmp 0x140002e45
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140002eb0
xor ecx, ecx
or ebx, 1
mov qword [rsp + 0x78], rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
cmp eax, 0x530
jae 0x140002dce
lea rdx, str.Request_is_too_small
call fcn.140001da8
jmp 0x140002dd7
lea rdx, [rbp - 0x60]
call fcn.140002be4
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
cmp rcx, rax
je 0x140002e7d
and dword [rbp - 0x80], 0
lea r9, [rbp - 0x80]
and qword [rsp + 0x20], 0
sub eax, ecx
mov rdx, rcx
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x140002e7d
test rcx, rcx
je 0x140002e45
mov rdx, qword [rsp + 0x78]
mov rax, rcx
sub rdx, rcx
cmp rdx, r13
jb 0x140002e40
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f55
call fcn.14000c6c0
mov r8, rdi
lea rcx, [rbp - 0x60]
xor edx, edx
call fcn.14000e760
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
and dword [rsp + 0x40], 0
lea rdx, [rbp - 0x60]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002d96
jmp 0x140002eb0
test rcx, rcx
je 0x140002eb0
mov rdx, qword [rsp + 0x78]
mov rax, rcx
sub rdx, rcx
cmp rdx, r13
jb 0x140002eab
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f55
call fcn.14000c6c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x140002d1e
lea rcx, [rsp + 0x68]
sub eax, 1
je 0x140002f14
cmp eax, 0x101
je 0x140002ef6
lea rdx, str.WaitForSingleObject_failed
call fcn.14000137c
lea rdx, [0x14003eb08]
lea rcx, [rsp + 0x68]
call fcn.14000f378
int3
lea rdx, str.WaitForSingleObject_timed_out
call fcn.14000137c
lea rdx, [0x14003eb08]
lea rcx, [rsp + 0x68]
call fcn.14000f378
int3
lea rdx, str.Exit_event_is_set__exiting
call fcn.14000137c
lea rdx, [0x14003eb08]
lea rcx, [rsp + 0x68]
call fcn.14000f378
int3
lea rdx, str.ConnectNamedPipe_failed
lea rcx, [rsp + 0x68]
call fcn.14000137c
lea rdx, [0x14003eb08]
lea rcx, [rsp + 0x68]
call fcn.14000f378
int3
call fcn.140014c48
int3