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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140002d5f
mov eax, 0xffffffff
jmp 0x140003001
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140002d8c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140003001
mov eax, dword [rsp + 0x44]
mov ecx, eax
call fcn.14001ce88
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002dfe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14001ce80
mov eax, 0xffffffff
jmp 0x140003001
mov edx, 0x10
mov ecx, dword [rsp + 0x40]
call fcn.140001b60
mov eax, eax
mov ecx, eax
call fcn.14001ce88
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov edx, 0x10
mov ecx, dword [rsp + 0x40]
call fcn.140001b60
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140043170
mov edx, 0x10
mov ecx, dword [rsp + 0x40]
call fcn.140001b60
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140042ad0
mov edx, 0x10
mov ecx, dword [rsp + 0x40]
call fcn.140001b60
xor r9d, r9d
mov r8, qword [rsp + 0xc0]
mov edx, eax
mov rcx, qword [rsp + 0x58]
call fcn.1400019d0
mov eax, dword [rsp + 0x44]
mov edx, eax
mov rcx, qword [rsp + 0x60]
call fcn.140015910
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140002f0e
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.14001ce80
mov eax, 0xffffffff
jmp 0x140003001
mov dword [rsp + 0x48], 0
mov edx, 0x10
mov ecx, dword [rsp + 0x40]
call fcn.140001b60
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x48], 0
jne 0x140002f6e
lea rdx, str.Error_...
lea rcx, [0x14005db60]
call fcn.1400040f0
lea rdx, [0x140008100]
mov rcx, rax
call fcn.14000b1d0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14001ce80
mov edx, dword [rsp + 0x48]
lea rcx, [0x14005da30]
call fcn.14000b1f0
lea rdx, str._bytes_written_to
mov rcx, rax
call fcn.140003ce0
mov rdx, qword [rsp + 0xb8]
mov rcx, rax
call fcn.140003ce0
lea rdx, [0x140008100]
mov rcx, rax
call fcn.14000b1d0
lea rdx, str.Original_size_:
lea rcx, [0x14005da30]
call fcn.140003ce0
mov edx, dword [rsp + 0x44]
mov rcx, rax
call fcn.14000b1f0
lea rdx, [0x140008100]
mov rcx, rax
call fcn.14000b1d0
xor eax, eax
add rsp, 0xa8
ret