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

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
lea eax, [r8 - 1]
movzx esi, r9b
cmp eax, 1
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x70]
mov edx, 0x104
setbe byte [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140064900
xor edi, edi
test rax, rax
je 0x14006491e
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14006491e
mov word [rsp + rax*2 + 0x6e], di
mov rcx, qword [rbp + 0x3b8]
lea r9, [rsp + 0x28]
lea r8, [rbp + 0x180]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x180]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140064946
test rax, rax
je 0x140064967
cmp word [rbp + rax*2 + 0x17e], 0x5c
jne 0x140064967
mov word [rbp + rax*2 + 0x17e], di
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064b40
test al, 0x10
je 0x140064b40
test sil, sil
je 0x140064a17
movzx esi, word [rsp + 0x70]
test esi, 0xffffff80
jne 0x1400649ac
mov edx, 1
mov ecx, esi
call fcn.1400ae954
test eax, eax
je 0x1400649ac
or esi, 0x20
movzx edi, word [rbp + 0x180]
test edi, 0xffffff80
jne 0x1400649ce
mov edx, 1
mov ecx, edi
call fcn.1400ae954
test eax, eax
je 0x1400649ce
or edi, 0x20
cmp si, di
jne 0x1400649db
cmp word [rsp + 0x72], 0x3a
je 0x140064a0e
movzx r8d, byte [rsp + 0x20]
lea rdx, [rbp + 0x180]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.1400648a0
test al, al
je 0x140064b40
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140064b60
jmp 0x140064b42
movzx esi, byte [rbp + 0x3c8]
xor edi, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064a43
test al, 0x10
je 0x140064b40
cmp byte [rsp + 0x20], 0
je 0x140064b40
test sil, sil
jne 0x140064a92
jmp 0x140064a5e
test sil, sil
jne 0x140064a92
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.14004f1e0
test al, al
je 0x140064b40
lea rcx, [rsp + 0x70]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140064a70
movsd xmm0, qword [str..]
movzx eax, word [0x1400ec708]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rsp + 0x70]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140064aa0
mov word [rsp + rax*2 + 0x72], di
lea rax, [rbp + 0x180]
nop dword [rax + rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140064ac0
xor eax, eax
mov word [rbp + rbx*2 + 0x182], di
mov qword [rsp + 0x38], rax
neg sil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x48], rax
sbb eax, eax
add eax, 2
cmp dword [rbp + 0x3c0], 2
mov dword [rsp + 0x38], eax
mov eax, 0x614
mov word [rsp + 0x50], ax
jne 0x140064b2e
mov eax, 0x615
mov word [rsp + 0x50], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x140064b42
xor al, al
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret