Function at 0x14009aa00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1403aa6c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov rcx, qword [rcx]
mov rax, qword [rdi + 8]
sub rax, rcx
sar rax, 3
cmp rax, 2
jne 0x14009ac49
mov rcx, qword [rcx]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x14009ac49
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x14009ac49
mov rax, qword [rdi]
mov rcx, qword [rax]
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
call qword [rax + 0x98]
nop
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14009aaa7
mov r8, qword [rdx + 8]
test r8, r8
je 0x14009aaa7
mov rdx, qword [rdx]
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
lea rcx, [rbp - 0x30]
call fcn.140082e10
jmp 0x14009aab9
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
lea rax, vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14009aaee
cmp byte [rbp - 0x38], 0
je 0x14009aae6
call sub.libcef.dll_cef_string_utf16_clear
mov edx, 0x18
mov rcx, qword [rbp - 0x40]
call fcn.140229774
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], 0
lea rcx, [rbp - 0x30]
call fcn.140097290
lea rcx, [rbp - 0x30]
cmp rcx, rax
je 0x14009ab1a
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14009ab0d
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140082e10
cmp qword [rbp - 0x20], 0
jne 0x14009ab2b
mov ebx, 2
jmp 0x14009ac02
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov edi, eax
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 8
cmovae rdx, rax
mov rcx, qword [rbp - 0x20]
lea r8, [rdx + rcx*2]
lea rcx, [rbp - 0x30]
cmovae rcx, rax
cmp rcx, r8
je 0x14009ab82
mov eax, 0x5c
cmp word [rcx], 0x2f
jne 0x14009ab71
mov word [rcx], ax
add rcx, 2
cmp rcx, r8
jne 0x14009ab68
mov r9, qword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
cmp r9, 8
cmovae rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14009abac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dl, 1
call fcn.1400974e0
mov ebx, eax
jmp 0x14009ac02
shr eax, 4
and al, 1
jne 0x14009ac02
mov edx, edi
shr edx, 8
and edx, 1
shl edx, 8
shr edi, 7
and edi, 1
shl edi, 7
or edx, edi
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wchmod]
cmp eax, 0xffffffff
jne 0x14009ac02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test ecx, ecx
je 0x14009ac02
cmp ecx, 2
je 0x14009abfd
cmp ecx, 0x16
sete bl
inc ebx
jmp 0x14009ac02
mov ebx, 3
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14009ac45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ac40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009ac40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140229774
mov eax, ebx
jmp 0x14009ac4e
mov eax, 2
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140229810
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret