Function at 0x14000ecd0
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 0x14000f034
mov rdx, rdi
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
xor esi, esi
test eax, eax
jne 0x14000ed88
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 0x14000ed62
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14000ed62
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14000ed40
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], si
je 0x14000f034
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14000f034
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_fab864b102642f34cb6a0d5c81f6e8f4___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 0x14000ee11
lea rax, [rsp + 0x50]
cmp rcx, rax
jne 0x14000ee06
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 0x14000ee11
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14000ee0a
mov qword [rbp + 0x18], rcx
mov rcx, rsi
mov qword [rbp - 0x78], rcx
mov qword [rbp + 0x20], rbx
test rcx, rcx
je 0x14000ee2f
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 0x14000ee44
lea ecx, [rbx + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
jmp 0x14000eff3
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.14000b410
mov rbx, rax
mov rcx, rsi
mov qword [rbp - 0x38], rcx
mov r9, qword [rbp - 0x78]
test r9, r9
je 0x14000eeee
lea rax, [rsp + 0x50]
mov rcx, r9
cmp r9, rax
jne 0x14000eee3
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 0x14000eeee
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 0x14000eee7
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x78], rsi
mov r9, rsi
mov qword [rbp - 0x30], rbx
test r9, r9
je 0x14000ef13
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 0x14000efb6
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 0x14000efae
mov r8d, 9
mov rdx, qword [rbp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14000ef94
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14000ef94
mov edx, 2
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14000ef9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000efae
mov edi, 1
mov rbx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
jmp 0x14000efb8
mov rcx, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x30]
mov edi, esi
test rbx, rbx
je 0x14000efda
mov qword [rsp + 0x48], rbx
test rcx, rcx
je 0x14000f064
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14000eff3
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 0x14000f015
mov qword [rsp + 0x48], rax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14000f05e
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14000f030
mov r8, qword [rcx]
lea rax, [rbp - 0x20]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
nop
mov eax, edi
jmp 0x14000f036
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