Function at 0x1800117e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov esi, 0x100000
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], esi
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, 0x80
cmp ebx, 0xffffffff
cmove ebx, eax
test bl, 1
je 0x180011843
mov edx, ebx
mov rcx, r14
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, 1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0xd8], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x20000000
mov rcx, r14
mov qword [rsp + 0xe0], r12
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1800118ce
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800118c5
mov rax, qword [rsp + 0x60]
cmp eax, esi
jae 0x1800118af
lea esi, [rax + 0x200]
mov dword [rsp + 0x40], esi
mov ebp, esi
mov ecx, esi
mov qword [rsp + 0x48], rbp
call fcn.180115540
mov r12, rax
test rax, rax
jne 0x1800118e4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800118dd
mov edx, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
jmp 0x180011abf
mov qword [rsp + 0xe8], r13
xorps xmm0, xmm0
xor r13d, r13d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x69], xmm0
movdqu xmmword [rsp + 0x79], xmm1
cmp dword [rsp + 0x44], r13d
jbe 0x180011a81
nop dword [rax]
mov rbx, qword [rsp + 0x60]
xor edi, edi
mov edx, edi
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ecx, ecx
call fcn.18011ab34
mov rcx, rax
call fcn.18011aa84
xor esi, esi
lea r14, [rsp + 0x68]
nop
call fcn.18011aa58
imul ecx, eax, 0xff
mov eax, 0x20005
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xe
mov byte [r14], cl
test cl, cl
jne 0x180011968
lea eax, [rsi + 1]
mov byte [r14], al
inc esi
inc r14
cmp esi, 0x20
jb 0x180011940
mov esi, r13d
and esi, 1
cmp rbx, rbp
jle 0x1800119f3
mov r14d, dword [rsp + 0x40]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], 0
mov r8d, r14d
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, 0x20
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x68]
mov edx, r14d
mov rcx, r12
call sym.SafeBase64.dll_Ordinal_23
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], 0
mov r8d, r14d
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, rbp
sub rbx, rbp
cmp rbx, rbp
jg 0x180011982
lea ebp, [rbx + 0x200]
and ebp, 0xfffffe00
test rbx, rbx
jle 0x180011a69
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, 0x20
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x68]
mov edx, ebp
mov rcx, r12
call sym.SafeBase64.dll_Ordinal_23
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [rsp + 0x48]
inc r13d
cmp r13d, dword [rsp + 0x44]
jb 0x180011910
mov r14, qword [rsp + 0x50]
mov rcx, r12
call fcn.180115548
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call sym.SafeBase64.dll_PurgeFileBuffer
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r13, qword [rsp + 0xe8]
mov eax, 1
mov r12, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret