Function at 0x14001f710
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rax - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402e7080]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov r13, rdx
mov r12, rcx
lea rsi, [rdx + 8]
mov rcx, rsi
cmp qword [rdx + 0x20], 8
jb 0x14001f75c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f783
test al, 1
je 0x14001f783
and eax, 0xfffffffe
mov rcx, rsi
cmp qword [r13 + 0x20], 8
jb 0x14001f77b
mov rcx, qword [rsi]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
cmp qword [r13 + 0x20], 8
jb 0x14001f790
mov rcx, qword [rsi]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x14001fb6a
mov ecx, 0xd0
call fcn.140068210
mov rdi, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call fcn.1400b5f90
lea rbx, [rdi + 0x28]
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], r15
lea ecx, [r15 + 0x10]
call fcn.140004af0
mov qword [rbx], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], r15b
lea r15, [rdi + 0x70]
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x20], rax
lea ecx, [rax + 0x10]
call fcn.140004af0
mov qword [r15], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
movups xmmword [rax], xmm0
mov rax, qword [r15]
mov qword [rax], r15
xor eax, eax
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x20], 7
mov word [r15 + 8], ax
lea rbx, [rdi + 0x98]
mov qword [rbx], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
lea ecx, [rax + 0x10]
call fcn.140004af0
mov qword [rbx], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
xor eax, eax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], 7
mov word [rbx + 8], ax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], r14
mov qword [rdi + 0x50], rax
mov word [rdi + 0x58], 1
mov qword [rdi + 0x10], rax
cmp r15, r13
je 0x14001f8ed
mov rdx, rsi
cmp qword [r13 + 0x20], 8
jb 0x14001f8e1
mov rdx, qword [rsi]
mov r8, qword [r13 + 0x18]
mov rcx, r15
call fcn.140013c40
mov eax, dword [r12 + 0x98]
mov dword [rdi + 0xc4], eax
mov eax, dword [r12 + 0x9c]
mov dword [rdi + 0xc8], eax
mov dword [rdi + 0xc0], 0
lea rdx, [rdi + 0x68]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14001f93a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14001fba0
jmp 0x14001fb6a
mov rdx, qword [rdi + 0x68]
cmp byte [r12 + 0x220], 0
jne 0x14001f9d8
lea rax, [rdx - 1]
cmp rax, 0x63fffff
jbe 0x14001f9d8
lea rax, [rdx - 0x6400001]
cmp rax, 0x383fffff
ja 0x14001f979
mov dword [rdi + 0xc8], 0x32
mov ebx, 1
jmp 0x14001f9e3
cmp rdx, 0x3e800000
jle 0x14001f9a2
movabs rax, 0x138800000
cmp rdx, rax
ja 0x14001f9a2
mov dword [rdi + 0xc8], 0x64
mov ebx, 1
jmp 0x14001f9e3
movabs rax, 0xfffffffec77fffff
add rax, rdx
mov ecx, 0x7d0
mov r9d, 0x3e8
movabs r8, 0xafc7fffff
cmp rax, r8
cmovbe ecx, r9d
mov dword [rdi + 0xc8], ecx
mov ebx, 1
jmp 0x14001f9e3
mov ebx, 1
mov dword [rdi + 0xc8], ebx
lea rax, [rdx + 0xf]
cqo
and edx, 0xf
add rax, rdx
and rax, 0xfffffffffffffff0
mov qword [rdi + 0x60], rax
movsxd r15, dword [rdi + 0xc4]
cmp rax, r15
cmovl r15, rax
lea rcx, [rdi + 0x28]
mov rax, qword [rcx + 0x18]
cmp r15, rax
ja 0x14001fa2b
lea rax, [rdi + 0x30]
cmp qword [rdi + 0x48], 0x10
jb 0x14001fa20
mov rax, qword [rax]
mov qword [rdi + 0x40], r15
mov byte [rax + r15], 0
jmp 0x14001fa3a
mov rdx, r15
sub rdx, rax
xor r8d, r8d
call fcn.1400143a0
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14001f924
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x40], rax
cmp rax, qword [rdi + 0x68]
je 0x14001fb06
cmp qword [r13 + 0x20], 8
jb 0x14001fa73
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140011be0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea edx, [r9 + 2]
lea r8d, [r9 + 0x40]
call fcn.1400cf9d0
mov esi, dword [rsp + 0xb0]
mov r13d, 0xffffffff
test eax, eax
cmovne esi, r13d
cmp esi, r13d
je 0x14001fae1
mov rdx, qword [rsp + 0x40]
mov ecx, esi
call fcn.1400ce180
mov ecx, esi
call fcn.1400d1920
lea rcx, [rsp + 0x50]
call fcn.140013b90
lea rcx, [rsp + 0x50]
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rsp + 0x50]
call fcn.140068260
jmp 0x14001fb0c
mov r13d, 0xffffffff
lock xadd dword [r12 + 0x168], ebx
lea rdx, [rdi + 0x30]
cmp qword [rdi + 0x48], 0x10
jb 0x14001fb24
mov rdx, qword [rdx]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001fb66
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001fb66
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14001fba0
lock xadd dword [r12 + 0x168], r13d
jmp 0x14001fb6a
mov al, 1
jmp 0x14001fb6c
xor al, al
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400681e0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret