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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x40]
call 0x140065a20
mov ebp, dword [rsp + 0x40]
cmp ebp, 4
jne 0x1400659f3
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400658ea
mov rdx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140065902
lea rcx, [rsp + 0x50]
call fcn.1400118b0
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
lea r8d, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14006599d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065997
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065a1a
call fcn.140066cf4
nop
movdqa xmm0, xmmword [0x14009fe00]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], bp
cmp rbx, 0xffffffffffffffff
jne 0x1400659cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, r14
mov r8, rdi
mov rcx, rsi
call fcn.1400653d0
nop
jmp 0x1400659fc
mov r9, r14
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140065580
mov ebp, dword [rax]
mov edi, dword [rax + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400659f7
mov edi, dword [rsp + 0x44]
mov dword [rsi], ebp
mov dword [rsi + 4], edi
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400672d0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140075c54
nop
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x140065a4d
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140065a65
lea rcx, [rsp + 0x48]
call fcn.1400118b0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
lea r8d, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140065b00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065afa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065bb2
call fcn.140066cf4
nop
movdqa xmm0, xmmword [0x14009fe00]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
cmp rbx, 0xffffffffffffffff
jne 0x140065b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 5
jne 0x140065b68
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140065b33
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140065b60
bt eax, 0xa
jb 0x140065b68
mov edx, eax
mov rcx, rdi
call fcn.1400651e0
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov dword [rsi], ebx
mov dword [rsi + 4], eax
jmp 0x140065b97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov r9, r14
mov r8, rdi
mov edx, ebp
mov rcx, rsi
call fcn.1400653d0
nop
jmp 0x140065b97
mov r9, r14
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140065580
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400672d0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140075c54
nop
int3