Function at 0x140080e20
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.140003570
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 0x140080f03
mov byte [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400810d5
mov rcx, qword [rsp + 0xc8]
call fcn.140003570
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 0x140080f61
mov byte [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400810d5
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140080f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400810d5
mov eax, dword [0x1403c40a4]
mov ecx, eax
call fcn.1400d6048
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 0x1400810d5
mov eax, dword [0x1403c40a4]
cmp qword [rsp + 0x50], rax
jbe 0x140080fdf
mov eax, dword [0x1403c40a4]
mov qword [rsp + 0x88], rax
jmp 0x140080fec
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 0x14008102f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400810d5
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 0x140081064
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400810d5
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x64], eax
je 0x140081078
mov dword [rsp + 0x44], 0x570
jmp 0x1400810d5
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.140082e30
movzx eax, al
test eax, eax
je 0x1400810bc
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call fcn.140086040
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x140080fb6
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x1400810e8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x1400810fb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x70], 0
je 0x14008111d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400d6040
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14008113c
mov rcx, qword [rsp + 0xc8]
call fcn.140003570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0xd8]
xor ecx, ecx
call fcn.140082e30
movzx eax, al
test eax, eax
je 0x14008116a
mov r8d, dword [rsp + 0x44]
movzx edx, byte [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
call fcn.1400860c0
nop
mov rcx, qword [rsp + 0xd0]
call fcn.1400857c0
nop
mov rcx, qword [rsp + 0xd8]
call fcn.1400857c0
add rsp, 0xb8
ret