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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400913a8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
call fcn.140065810
xor r15d, r15d
test al, al
je 0x140065906
mov eax, 0x1126
jmp 0x140065c98
lea rdx, [rbp - 9]
mov qword [rbp - 9], r15
mov rcx, rbx
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], 7
call fcn.1400655e0
cmp qword [rbp + 7], 3
mov dil, al
jb 0x140065980
mov rdx, qword [rbp + 0xf]
lea rax, [rbp - 9]
mov rcx, qword [rbp - 9]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x3a
jne 0x140065980
cmp rdx, 8
lea rax, [rbp - 9]
cmovae rax, rcx
cmp word [rax + 4], 0x5c
jne 0x140065980
cmp rdx, 8
lea rax, [rbp - 9]
cmovae rax, rcx
movzx ecx, word [rax]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14006597c
sub cx, 0x61
cmp cx, 0x19
ja 0x140065980
mov bl, 1
jmp 0x140065983
mov bl, r15b
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400653b0
mov r14d, 0x1000
test bl, bl
jne 0x1400659ad
test al, al
jne 0x1400659ad
test dil, dil
jne 0x1400659ad
mov ebx, 0x7b
jmp 0x140065c50
or rdi, 0xffffffffffffffff
mov sil, r15b
test bl, bl
jne 0x140065aa8
lea ebx, [rdi + 8]
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x2f], rbx
lea rdx, [0x140083258]
mov qword [rbp + 0x27], r15
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400659d5
lea rcx, [rbp + 0x17]
call fcn.14001cda0
cmp qword [rbp + 0xf], 8
lea rdx, [rbp - 9]
mov r8, qword [rbp + 7]
lea rcx, [rbp + 0x17]
cmovae rdx, qword [rbp - 9]
call fcn.14001c940
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rbx
mov word [rax], r15w
mov rdx, qword [rbp + 0xf]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
cmp rdx, 8
jb 0x140065a5e
mov rcx, qword [rbp - 9]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, r14
jb 0x140065a51
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065a99
call fcn.14001d8c0
movups xmm0, xmmword [rbp - 0x29]
movups xmm1, xmmword [rbp - 0x19]
mov rdx, qword [rbp + 0x2f]
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
cmp rdx, 8
jb 0x140065aa5
mov rcx, qword [rbp + 0x17]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, r14
jb 0x140065aa0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065aa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d8c0
mov sil, 1
mov r9, qword [rbp + 0xf]
mov r14b, r15b
mov r10, qword [rbp + 7]
mov ebx, 0x7b
mov r8, qword [rbp - 9]
mov rax, rdi
cmp r10, rax
mov qword [rbp + 0x17], r15
lea rdx, [rbp - 9]
mov qword [rbp + 0x27], r15
cmovb rax, r10
mov qword [rbp + 0x2f], 7
cmp r9, 8
lea rcx, [rbp + 0x17]
cmovae rdx, r8
mov r8, rax
call fcn.14001cda0
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140065b2e
mov rcx, qword [rbp - 9]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065b29
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065c27
call fcn.14001d8c0
movups xmm1, xmmword [rbp + 0x27]
lea rcx, [rbp - 9]
movups xmm0, xmmword [rbp + 0x17]
movups xmmword [rbp + 7], xmm1
psrldq xmm1, 8
movq rdx, xmm0
movq rax, xmm1
cmp rax, 8
movups xmmword [rbp - 9], xmm0
cmovae rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140065bbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140065bc5
cmp eax, ebx
je 0x140065bc5
mov r9, qword [rbp + 0xf]
mov r8, qword [rbp - 9]
test r14b, r14b
je 0x140065c49
test sil, sil
je 0x140065c49
mov rax, qword [rbp + 7]
lea rcx, [rbp - 9]
cmp r9, 8
cmovae rcx, r8
test rax, rax
je 0x140065c49
dec rax
cmp rax, rdi
cmovb rdi, rax
lea rax, [rcx + rdi*2]
jmp 0x140065c37
bt eax, 0xa
jb 0x140065c4d
mov r9, qword [rbp + 0xf]
lea rdx, [rbp - 9]
mov r8, qword [rbp - 9]
cmp r9, 8
mov r10, qword [rbp + 7]
mov r14b, 1
cmovae rdx, r8
test r10, r10
je 0x140065abc
lea rcx, [r10 - 1]
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea rax, [rdx + rax*2]
jmp 0x140065c0a
cmp rax, rdx
je 0x140065abc
sub rax, 2
cmp word [rax], 0x5c
jne 0x140065bfd
sub rax, rdx
sar rax, 1
cmp rax, 2
ja 0x140065abf
mov ebx, 0x1126
jmp 0x140065c58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rax, rcx
je 0x140065c49
sub rax, 2
cmp word [rax], 0x5c
jne 0x140065c2e
sub rax, rcx
sar rax, 1
cmp rax, 3
je 0x140065c20
mov ebx, edx
jmp 0x140065c58
mov ebx, r15d
mov r8, qword [rbp - 9]
mov r9, qword [rbp + 0xf]
cmp r9, 8
jb 0x140065c96
lea rdx, [r9*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140065c8e
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065c8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14001d8c0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140077590
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret