Function at 0x1401338b0
Capabilities:
Get common file path
Move file

Disassembly:
sub rsp, 0x3b8
mov rax, qword [0x140298e80]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
lea rdx, [0x1402b80c0]
lea rcx, [rsp + 0x128]
call fcn.1400fb0f0
nop
lea r9, [rsp + 0x120]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140231860]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x140133938
lea rdx, str.Failed_to_get_AppData_folder_path
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001d420
mov qword [rsp + 0x28], rax
lea rdx, [0x140021930]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x128]
call fcn.1400ff050
jmp 0x140133bff
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x170]
call fcn.1400c3b50
nop
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rsp + 0x150]
call fcn.14012ac60
nop
lea rcx, [rsp + 0x20]
call fcn.1400092e0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x150]
call fcn.1400cbaf0
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x150]
call fcn.1400cb790
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x100]
call fcn.1400ce4e0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
lea r8, [0x1402107b4]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xe0]
call fcn.1400d0450
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xc0]
call fcn.1400d03b0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea r8, [0x140210878]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x130]
call fcn.1400d0400
nop
lea rcx, [rsp + 0xc0]
call fcn.140024f10
nop
lea rcx, [rsp + 0xe0]
call fcn.140024f10
nop
lea rcx, [rsp + 0x100]
call fcn.140024f10
mov r8d, 0x104
lea rdx, [rsp + 0x190]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140133b33
lea rdx, str.Error_getting_module_file_name
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001d420
mov qword [rsp + 0x98], rax
lea rdx, [0x140021930]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x130]
call fcn.140024f10
nop
lea rcx, [rsp + 0x150]
call fcn.14000fe40
nop
lea rcx, [rsp + 0x170]
call fcn.140024f10
nop
lea rcx, [rsp + 0x128]
call fcn.1400ff050
jmp 0x140133bff
lea rcx, [rsp + 0x130]
call fcn.14004a0c0
mov rdx, rax
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140133b97
lea rdx, str.File_renamed_to:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400cfc30
lea rdx, [rsp + 0x130]
mov rcx, rax
call fcn.1400d0020
mov qword [rsp + 0xa0], rax
lea rdx, [0x1400f37c0]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140133bc8
lea rdx, str.Failed_to_rename_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001d420
mov qword [rsp + 0xa8], rax
lea rdx, [0x140021930]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x130]
call fcn.140024f10
nop
lea rcx, [rsp + 0x150]
call fcn.14000fe40
nop
lea rcx, [rsp + 0x170]
call fcn.140024f10
nop
lea rcx, [rsp + 0x128]
call fcn.1400ff050
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1401dae20
add rsp, 0x3b8
ret