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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1070
call fcn.1400ebe00
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x10b0], rbx
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rdi, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140005e65
cmp eax, 0xea
je 0x140005d23
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005f14
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x140005d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005f14
mov ecx, dword [rsp + 0x38]
call fcn.14009c750
mov r12, rax
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140005d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005f14
mov ebp, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
add ebp, eax
mov rbx, r13
mov qword [rsp + 0x40], rbx
mov rsi, r13
mov qword [rsp + 0x48], r13
je 0x140005dd9
mov rcx, rbp
call fcn.14009c750
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140005dd9
mov rsi, rbp
mov qword [rsp + 0x48], rbp
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1400cb010
nop
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x140005e23
mov rcx, qword [rdi]
test rcx, rcx
je 0x140005df3
call fcn.1400cb100
mov qword [rdi], r13
mov qword [rdi + 8], r13
test rbx, rbx
je 0x140005e23
test rsi, rsi
je 0x140005e23
mov rcx, rsi
call fcn.14009c750
mov qword [rdi], rax
test rax, rax
je 0x140005e23
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400cb410
mov qword [rdi + 8], rsi
test rbx, rbx
je 0x140005e30
mov rcx, rbx
call fcn.1400cb100
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.1400cb410
mov r8d, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add rcx, qword [rdi]
mov rdx, r12
call fcn.1400cb410
mov rcx, r12
call fcn.1400cb100
xor eax, eax
jmp 0x140005f14
mov ebp, dword [rsp + 0x30]
mov rbx, r13
mov qword [rsp + 0x40], rbx
mov rsi, r13
mov qword [rsp + 0x48], r13
test rbp, rbp
je 0x140005ea9
mov rcx, rbp
call fcn.14009c750
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140005ea9
mov rsi, rbp
mov qword [rsp + 0x48], rbp
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1400cb010
nop
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x140005ef3
mov rcx, qword [rdi]
test rcx, rcx
je 0x140005ec3
call fcn.1400cb100
mov qword [rdi], r13
mov qword [rdi + 8], r13
test rbx, rbx
je 0x140005ef3
test rsi, rsi
je 0x140005ef3
mov rcx, rsi
call fcn.14009c750
mov qword [rdi], rax
test rax, rax
je 0x140005ef3
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400cb410
mov qword [rdi + 8], rsi
test rbx, rbx
je 0x140005f00
mov rcx, rbx
call fcn.1400cb100
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.1400cb410
xor eax, eax
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.1400caf00
mov rbx, qword [rsp + 0x10b0]
add rsp, 0x1070
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret