Function at 0x140064820
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 0x140064880
xor edi, edi
test rax, rax
je 0x14006489e
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14006489e
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 0x1400648c6
test rax, rax
je 0x1400648e7
cmp word [rbp + rax*2 + 0x17e], 0x5c
jne 0x1400648e7
mov word [rbp + rax*2 + 0x17e], di
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064ac0
test al, 0x10
je 0x140064ac0
test sil, sil
je 0x140064997
movzx esi, word [rsp + 0x70]
test esi, 0xffffff80
jne 0x14006492c
mov edx, 1
mov ecx, esi
call fcn.1400ad944
test eax, eax
je 0x14006492c
or esi, 0x20
movzx edi, word [rbp + 0x180]
test edi, 0xffffff80
jne 0x14006494e
mov edx, 1
mov ecx, edi
call fcn.1400ad944
test eax, eax
je 0x14006494e
or edi, 0x20
cmp si, di
jne 0x14006495b
cmp word [rsp + 0x72], 0x3a
je 0x14006498e
movzx r8d, byte [rsp + 0x20]
lea rdx, [rbp + 0x180]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.140064820
test al, al
je 0x140064ac0
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140064ae0
jmp 0x140064ac2
movzx esi, byte [rbp + 0x3c8]
xor edi, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400649c3
test al, 0x10
je 0x140064ac0
cmp byte [rsp + 0x20], 0
je 0x140064ac0
test sil, sil
jne 0x140064a12
jmp 0x1400649de
test sil, sil
jne 0x140064a12
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.14004f320
test al, al
je 0x140064ac0
lea rcx, [rsp + 0x70]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400649f0
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 0x140064a20
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 0x140064a40
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 0x140064aae
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 0x140064ac2
xor al, al
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret