Function at 0x1400811d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file on windows
Write file on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0x108]
call fcn.140003570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140081247
movzx eax, byte [rsp + 0x110]
test eax, eax
jne 0x140081235
mov dword [rsp + 0x54], 1
jmp 0x14008123d
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
jmp 0x1400814c9
mov dword [rsp + 0x48], 1
mov rcx, qword [rsp + 0x100]
call fcn.140003570
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x1400812a6
mov dword [rsp + 0x48], 0
jmp 0x1400814ab
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0xa8]
call fcn.14004f430
nop
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xc8]
call fcn.140028f80
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140003570
mov rcx, rax
call fcn.140028660
nop
lea rcx, [rsp + 0xc8]
call fcn.1400049b0
nop
lea rcx, [rsp + 0xa8]
call fcn.1400049b0
mov rcx, qword [rsp + 0x108]
call fcn.140003570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x108]
call fcn.140003570
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x140081392
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], 0
jmp 0x1400814ab
mov dword [rsp + 0x4c], 0x100000
mov eax, dword [rsp + 0x4c]
mov ecx, eax
call fcn.1400d6048
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x40], 0
je 0x140081465
cmp dword [rsp + 0x50], 0
je 0x140081465
cmp dword [rsp + 0x44], 0
je 0x140081465
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140081463
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x50], eax
jmp 0x1400813f9
cmp dword [rsp + 0x50], 0
je 0x140081473
cmp dword [rsp + 0x44], 0
jne 0x14008147b
mov dword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400d6040
cmp dword [rsp + 0x48], 1
jne 0x1400814bc
mov dword [rsp + 0x58], 1
jmp 0x1400814c4
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140263a60
add rsp, 0xf8
ret