Function at 0x140064720
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 0x140064780
xor edi, edi
test rax, rax
je 0x14006479e
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14006479e
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 0x1400647c6
test rax, rax
je 0x1400647e7
cmp word [rbp + rax*2 + 0x17e], 0x5c
jne 0x1400647e7
mov word [rbp + rax*2 + 0x17e], di
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400649c0
test al, 0x10
je 0x1400649c0
test sil, sil
je 0x140064897
movzx esi, word [rsp + 0x70]
test esi, 0xffffff80
jne 0x14006482c
mov edx, 1
mov ecx, esi
call fcn.1400ad844
test eax, eax
je 0x14006482c
or esi, 0x20
movzx edi, word [rbp + 0x180]
test edi, 0xffffff80
jne 0x14006484e
mov edx, 1
mov ecx, edi
call fcn.1400ad844
test eax, eax
je 0x14006484e
or edi, 0x20
cmp si, di
jne 0x14006485b
cmp word [rsp + 0x72], 0x3a
je 0x14006488e
movzx r8d, byte [rsp + 0x20]
lea rdx, [rbp + 0x180]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.140064720
test al, al
je 0x1400649c0
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.1400649e0
jmp 0x1400649c2
movzx esi, byte [rbp + 0x3c8]
xor edi, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400648c3
test al, 0x10
je 0x1400649c0
cmp byte [rsp + 0x20], 0
je 0x1400649c0
test sil, sil
jne 0x140064912
jmp 0x1400648de
test sil, sil
jne 0x140064912
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.14004f220
test al, al
je 0x1400649c0
lea rcx, [rsp + 0x70]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400648f0
movsd xmm0, qword [str..]
movzx eax, word [0x1400eb768]
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 0x140064920
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 0x140064940
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 0x1400649ae
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 0x1400649c2
xor al, al
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret