Function at 0x1400643b0
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 0x140064410
xor edi, edi
test rax, rax
je 0x14006442e
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14006442e
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 0x140064456
test rax, rax
je 0x140064477
cmp word [rbp + rax*2 + 0x17e], 0x5c
jne 0x140064477
mov word [rbp + rax*2 + 0x17e], di
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064650
test al, 0x10
je 0x140064650
test sil, sil
je 0x140064527
movzx esi, word [rsp + 0x70]
test esi, 0xffffff80
jne 0x1400644bc
mov edx, 1
mov ecx, esi
call fcn.1400adfa4
test eax, eax
je 0x1400644bc
or esi, 0x20
movzx edi, word [rbp + 0x180]
test edi, 0xffffff80
jne 0x1400644de
mov edx, 1
mov ecx, edi
call fcn.1400adfa4
test eax, eax
je 0x1400644de
or edi, 0x20
cmp si, di
jne 0x1400644eb
cmp word [rsp + 0x72], 0x3a
je 0x14006451e
movzx r8d, byte [rsp + 0x20]
lea rdx, [rbp + 0x180]
xor r9d, r9d
lea rcx, [rsp + 0x70]
call fcn.1400643b0
test al, al
je 0x140064650
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140064670
jmp 0x140064652
movzx esi, byte [rbp + 0x3c8]
xor edi, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064553
test al, 0x10
je 0x140064650
cmp byte [rsp + 0x20], 0
je 0x140064650
test sil, sil
jne 0x1400645a2
jmp 0x14006456e
test sil, sil
jne 0x1400645a2
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.14004eeb0
test al, al
je 0x140064650
lea rcx, [rsp + 0x70]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140064580
movsd xmm0, qword [0x1400ec600]
movzx eax, word [0x1400ec608]
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 0x1400645b0
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 0x1400645d0
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 0x14006463e
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 0x140064652
xor al, al
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret