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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov qword [rsp + 0x68], 0xffffffffffffffff
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0xc0]
call fcn.140006930
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140070ef3
mov byte [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400710c5
mov rcx, qword [rsp + 0xc8]
call fcn.140006930
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x140070f51
mov byte [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400710c5
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140070f77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400710c5
mov eax, dword [0x14019c014]
mov ecx, eax
call fcn.1400c7eb0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x1400710c5
mov eax, dword [0x14019c014]
cmp qword [rsp + 0x50], rax
jbe 0x140070fcf
mov eax, dword [0x14019c014]
mov qword [rsp + 0x88], rax
jmp 0x140070fdc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14007101f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400710c5
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140071054
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400710c5
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x64], eax
je 0x140071068
mov dword [rsp + 0x44], 0x570
jmp 0x1400710c5
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xd0]
xor ecx, ecx
call fcn.140072e50
movzx eax, al
test eax, eax
je 0x1400710ac
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call fcn.140076100
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x140070fa6
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x1400710d8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x1400710eb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x70], 0
je 0x14007110d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400c7ea8
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14007112c
mov rcx, qword [rsp + 0xc8]
call fcn.140006930
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0xd8]
xor ecx, ecx
call fcn.140072e50
movzx eax, al
test eax, eax
je 0x14007115a
mov r8d, dword [rsp + 0x44]
movzx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
call fcn.140076180
nop
mov rcx, qword [rsp + 0xd0]
call fcn.140075880
nop
mov rcx, qword [rsp + 0xd8]
call fcn.140075880
add rsp, 0xb8
ret