Function at 0x140096bf0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x350
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012a4f8]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rcx
cmp qword [rcx + 0x20], 8
jb 0x140096c32
mov rdx, qword [rcx + 8]
jmp 0x140096c36
lea rdx, [rcx + 8]
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x28]
call fcn.140025a70
nop
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0xb0]
call fcn.1400924e0
nop
cmp qword [rsp + 0x48], 8
jb 0x140096c94
mov rcx, qword [rsp + 0x30]
call fcn.1400ad0b8
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov byte [rsp + 0xb8], 0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov edi, 3
mov r8, rdi
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x50]
call fcn.140025a70
nop
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.140095090
nop
cmp qword [rsp + 0x70], 8
jb 0x140096d04
mov rcx, qword [rsp + 0x58]
call fcn.1400ad0b8
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xb0]
call fcn.1400927a0
nop
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x98]
cmp r8, 3
cmovb rdi, r8
lea rdx, [0x1400f35c0]
test rdi, rdi
je 0x140096d75
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x140096d68
add rcx, 2
add rdx, 2
sub rdi, 1
jne 0x140096d50
jmp 0x140096d75
mov edi, 1
cmp word [rcx], ax
cmovb edi, ebp
jmp 0x140096d77
mov edi, esi
movsxd rax, edi
test edi, edi
jne 0x140096d91
cmp r8, 3
jb 0x140096eac
mov eax, esi
cmp r8, 3
setne al
test eax, eax
jne 0x140096eac
cmp qword [rsp + 0x188], 0
je 0x140096e58
cmp dword [rsp + 0x190], eax
jbe 0x140096e58
mov qword [rsp + 0x20], rsi
cmp qword [rbx + 0x70], 8
jb 0x140096dc7
mov rdx, qword [rbx + 0x58]
jmp 0x140096dcb
lea rdx, [rbx + 0x58]
lea r8, [0x1400f2fc8]
lea rcx, [rsp + 0x20]
call fcn.1400b15bc
test eax, eax
jne 0x140096e58
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140096e58
mov edx, dword [rsp + 0x190]
lea r8d, [rax + 1]
mov rcx, qword [rsp + 0x188]
call fcn.1400b13d0
mov rcx, qword [rsp + 0x20]
call fcn.1400b11bc
nop
cmp qword [rsp + 0xa0], 8
jb 0x140096e25
mov rcx, qword [rsp + 0x88]
call fcn.1400ad0b8
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], rsi
mov word [rsp + 0x88], si
lea rcx, [rsp + 0xb0]
call fcn.1400904e0
mov eax, 1
jmp 0x140096eef
cmp qword [rbx + 0x70], 8
jb 0x140096e65
mov rbx, qword [rbx + 0x58]
jmp 0x140096e69
add rbx, 0x58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140096e89
test al, 1
je 0x140096e89
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140096eac
lea edx, [rax + 1]
mov rcx, rbx
call fcn.14007e6a0
test eax, eax
jne 0x140096eac
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [rsp + 0xa0], 8
jb 0x140096ec4
mov rcx, qword [rsp + 0x88]
call fcn.1400ad0b8
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], rsi
mov word [rsp + 0x88], si
lea rcx, [rsp + 0xb0]
call fcn.1400904e0
xor eax, eax
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400ad2c0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret