Function at 0x140001070
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp ecx, 2
jge 0x1400010b2
lea rcx, str.Please_provide_a_file
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400013b0
add rsp, 0x98
ret
movups xmm0, xmmword [str..pipeMyPipe]
mov rcx, qword [rdx + 8]
movups xmm1, xmmword [0x140003408]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x78], r14
xor r14d, r14d
mov dword [rsp + 0x40], r14d
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm1
test rcx, rcx
je 0x140001357
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000114c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileA_Failed_With_Error:__d__n
call fcn.140001010
jmp 0x140001357
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140001180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001357
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x1400011c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001357
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000131e
cmp edi, dword [rsp + 0x40]
jne 0x14000131e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140001357
mov eax, dword [0x7ffe0014]
movabs rsi, 0xd6bf94d5e57a42bd
mov ecx, dword [0x7ffe001c]
shl rcx, 0x20
or rcx, rax
mov qword [rsp + 0x80], r12
mov rax, rsi
mov qword [rsp + 0x70], r15
mul rcx
mov r15d, 0x7ffe0014
mov rbx, rdx
shr rbx, 0x17
lea r12d, [r15 + 8]
lea rcx, [0x1400032b0]
call fcn.140001010
mov eax, dword [r15]
mov ecx, dword [r12]
shl rcx, 0x20
or rcx, rax
mov rax, rsi
mul rcx
shr rdx, 0x17
sub rdx, rbx
cmp rdx, 5
jb 0x140001240
mov r15, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
mov r12, qword [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x40], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW_Failed_With_Error:__d__n
call fcn.140001010
jmp 0x140001363
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400012ec
cmp edi, dword [rsp + 0x40]
je 0x140001313
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile_Failed_With_Error:__d__n
call fcn.140001010
mov edx, dword [rsp + 0x40]
lea rcx, str._i__Wrote__d_Of__d_Bytes__n
mov r8d, edi
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001363
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x40]
lea rcx, str.____ReadFile_Failed_With_Error:__d__n_i__Read__d_Of__d_Bytes__n
mov edx, eax
mov r9d, edi
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, str.Couldnt_read_file_
call fcn.140001010
mov rdi, qword [rsp + 0x88]
xor eax, eax
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400013b0
add rsp, 0x98
ret