Function at 0x140007480
Capabilities:
Check if file exists
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14004f678]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rcx
lea rdx, [rbp + 0x30]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400077e4
mov rdx, rdi
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
xor esi, esi
test eax, eax
jne 0x140007538
lea rcx, [rbp + 0x30]
lea rax, [rbp + 0x30]
mov rdx, rdi
sub rdx, rax
nop dword [rax]
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x140007512
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140007512
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1400074f0
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], si
je 0x1400077e4
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400077e4
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_0fce37806cf62b3577b8d9e8e5226bf2___void__wchar_t____ptr64_.0
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rbp + 0x18], rsi
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400075c1
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x1400075b6
mov r8, qword [rcx]
lea rdx, [rbp - 0x20]
call qword [r8 + 8]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400075c1
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x1400075ba
mov qword [rbp + 0x18], rcx
mov rcx, rsi
mov qword [rbp - 0x78], rcx
mov qword [rbp + 0x20], rbx
test rcx, rcx
je 0x1400075df
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rbx, qword [rbp + 0x20]
test rbx, rbx
jne 0x1400075f4
lea ecx, [rbx + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
jmp 0x1400077a3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rcx, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64__unsigned_long_int__void____ptr64___void____ptr64__int__struct_std::_Ph_1__const____ptr64___int__wchar_t____ptr64_.0
mov qword [rsp + 0x50], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x58], rcx
movzx ecx, byte [rsp + 0x40]
mov byte [rsp + 0x60], cl
mov dword [rsp + 0x64], esi
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
lea rdx, str._Kvp
lea rcx, [rsp + 0x40]
call fcn.140002d10
mov rbx, rax
mov rcx, rsi
mov qword [rbp - 0x38], rcx
mov r9, qword [rbp - 0x78]
test r9, r9
je 0x14000769e
lea rax, [rsp + 0x50]
mov rcx, r9
cmp r9, rax
jne 0x140007693
mov r8, qword [r9]
lea rdx, [rbp - 0x70]
call qword [r8 + 8]
mov rcx, rax
mov qword [rbp - 0x38], rax
mov r9, qword [rbp - 0x78]
test r9, r9
je 0x14000769e
mov rax, qword [r9]
lea rcx, [rsp + 0x50]
cmp r9, rcx
setne dl
mov rcx, r9
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x38]
jmp 0x140007697
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x78], rsi
mov r9, rsi
mov qword [rbp - 0x30], rbx
test r9, r9
je 0x1400076c3
mov rax, qword [r9]
lea rcx, [rsp + 0x50]
cmp r9, rcx
setne dl
mov rcx, r9
call qword [rax + 0x20]
mov rbx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
test rbx, rbx
je 0x140007766
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [0x14002c530]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1800
xor r9d, r9d
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rbp + 0x20]
call fcn.140007bc0
test eax, eax
js 0x14000775e
mov r8d, 9
mov rdx, qword [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140007744
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140007744
mov edx, 2
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14000774f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000775e
mov edi, 1
mov rbx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
jmp 0x140007768
mov rcx, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x30]
mov edi, esi
test rbx, rbx
je 0x14000778a
mov qword [rsp + 0x48], rbx
test rcx, rcx
je 0x140007814
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400077a3
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x38], rsi
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x1400077c5
mov qword [rsp + 0x48], rax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14000780e
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400077e0
mov r8, qword [rcx]
lea rax, [rbp - 0x20]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
nop
mov eax, edi
jmp 0x1400077e6
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400153e0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140014ea8
nop
call fcn.140014ea8
int3