Function at 0x140013e40
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x140040490]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x68], rdx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], rbx
mov word [rdx], bx
mov dword [rsp + 0x40], 1
nop word [rax + rax]
mov eax, 0x800
mov dword [rsp + 0x30], eax
cmp qword [rdi + 0x10], 0
je 0x140013ef9
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov r11d, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14001406a
test r11d, r11d
je 0x14001406a
mov r12d, eax
mov rsi, rbx
mov qword [rsp + 0x48], rbx
mov rax, rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
test r12, r12
je 0x140013f48
mov edx, r12d
lea rcx, [rsp + 0x48]
call fcn.14000f970
mov rsi, qword [rsp + 0x48]
mov r8, rsi
mov rcx, qword [rsp + 0x50]
sub r8, rcx
add r8, r12
je 0x140013f3f
xor edx, edx
call fcn.14001f5f0
lea rax, [rsi + r12]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x38], ebx
sub rax, rsi
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x38]
mov r8d, eax
mov rdx, rsi
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140013f8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp eax, 0x6d
je 0x14001404e
cmp eax, 6
je 0x14001404e
cmp eax, 0xea
jne 0x140013ffa
mov eax, dword [rsp + 0x38]
shr eax, 1
lea r9d, [rax + rax]
add r9, rsi
mov rcx, qword [rdi + 0x18]
cmp rcx, 8
jb 0x140013fab
mov rax, qword [rdi]
jmp 0x140013fae
mov rax, rdi
mov rdx, qword [rdi + 0x10]
lea r8, [rax + rdx*2]
cmp rcx, 8
jb 0x140013fc1
mov rax, qword [rdi]
jmp 0x140013fc4
mov rax, rdi
lea rdx, [rax + rdx*2]
mov qword [rsp + 0x20], r9
mov r9, rsi
mov rcx, rdi
call fcn.14000fcd0
nop
test rsi, rsi
je 0x140013fe6
mov rcx, rsi
call fcn.140018e2c
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
jmp 0x140013eb0
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rbx
mov word [rbp + 0x70], bx
mov r8d, 0x19
lea rdx, str.NamedPipe::read___failed.
lea rcx, [rbp + 0x70]
call fcn.1400033f0
nop
lea r8, [rbp + 0x70]
mov edx, r12d
lea rcx, [rbp + 0xa0]
call fcn.1400044d0
lea rdx, [0x14003e6a8]
lea rcx, [rbp + 0xa0]
call fcn.14001a0b0
nop
test rsi, rsi
je 0x14001405b
mov rcx, rsi
call fcn.140018e2c
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
cmp byte [r13 + 0x38], 0
je 0x1400140d1
lea rcx, [rsp + 0x78]
call fcn.140013d60
nop
test rax, rax
je 0x140014085
lea rbx, [rax + 0x10]
lea rdx, str.Pipe_read_message:_n
mov rcx, rbx
call fcn.140009e40
mov rcx, rax
mov rdx, rdi
call fcn.140009be0
nop
lea rcx, [rbp + 0x10]
call fcn.14000d1e0
lea r11, [rbp + 0x10]
mov qword [rsp + 0x38], r11
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x10], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.14001853c
mov rax, rdi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140018e50
mov rbx, qword [rsp + 0x260]
add rsp, 0x220
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret