Function at 0x1401e9b10
Capabilities:
Read file on windows
Read pipe
Write pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, qword [rbp + 0x7f]
xor edi, edi
mov rax, qword [0x140687648]
xor r12b, r12b
mov dword [rbp - 5], r9d
mov r14, r8
mov r15, rdx
mov qword [rbp - 0x31], rcx
mov rsi, rcx
mov qword [rsp + 0x88], rbx
nop
test r14, r14
je 0x1401e9b68
mov dword [r14], edi
test rax, rax
jne 0x1401e9b82
mov rcx, r13
call fcn.1401e9910
cmp qword [0x140687648], rdi
je 0x1401e9cb9
cmp qword [r15], rdi
jne 0x1401e9b98
mov ecx, dword [0x1405eea28]
call fcn.1401f40a0
mov dword [rax + 0xc], edi
mov qword [r15], rax
xor r9d, r9d
mov qword [rbp - 0x29], rdi
xor r8d, r8d
mov qword [rbp - 0x21], rdi
xor ecx, ecx
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rdi
mov ebx, edi
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r9, qword [r15]
mov r8d, dword [rsi + 0xc]
mov rdx, qword [rsi]
mov rcx, qword [0x140687648]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov eax, dword [r9 + 8]
mov r9, qword [r9]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
test eax, eax
jne 0x1401e9c5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x1401e9c5d
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1401e9c1f
mov edx, dword [rbp - 5]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401e9c37
mov rcx, qword [0x140687648]
call qword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x1401e9c37
mov ebx, 0x5b4
jmp 0x1401e9c5d
mov rcx, qword [0x140687648]
lea r8, [rbp - 9]
xor r9d, r9d
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
test eax, eax
jne 0x1401e9c5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1401e9c6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1401e9d5b
mov rcx, qword [0x140687648]
cmp ebx, 0xea
je 0x1401e9cd3
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [0x140687648]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov qword [0x140687648], rax
cmp ebx, 0x5b4
je 0x1401e9ccc
test r12b, r12b
jne 0x1401e9ccc
mov rsi, qword [rbp - 0x31]
mov r12b, 1
jmp 0x1401e9b60
test r14, r14
je 0x1401e9cc5
mov dword [r14], 0x8ca
xor al, al
jmp 0x1401e9d6e
mov edi, ebx
jmp 0x1401e9d66
lea rax, [rbp - 5]
mov dword [rbp - 5], edi
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x1401e9d02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor al, al
jmp 0x1401e9d66
mov rbx, qword [r15]
mov esi, dword [rbp - 5]
add esi, dword [rbp - 9]
mov edx, esi
mov rcx, qword [rbx]
call fcn.140370f70
test rax, rax
jne 0x1401e9d1f
lea edi, [rax + 0xe]
jmp 0x1401e9d66
mov rcx, qword [0x140687648]
lea r9, [rbp - 9]
mov qword [rbx], rax
mov dword [rbx + 8], esi
mov rax, qword [r15]
mov ebx, dword [rbp - 9]
mov r8d, dword [rbp - 5]
mov edx, ebx
mov qword [rsp + 0x20], rdi
add rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e9cf6
mov ecx, dword [rbp - 9]
mov rax, qword [r15]
add ecx, ebx
mov dword [rax + 0xc], ecx
jmp 0x1401e9d64
mov rcx, qword [r15]
mov eax, dword [rbp - 9]
mov dword [rcx + 0xc], eax
mov al, 1
test r14, r14
je 0x1401e9d6e
mov dword [r14], edi
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140359070
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret