Function at 0x140001bc6
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x298
lea rbp, [rsp + 0x80]
call sym.IsInstalledOnWindows__
test al, al
je 0x140001c10
lea rax, str.Application_is_already_installed_on_Windows.
mov rdx, rax
mov rax, qword [0x140125b70]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x14000200c
mov byte [0x14016d030], 1
lea rax, [rbp + 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x28]
mov r9, rax
mov r8d, 0
mov edx, 0
mov rax, qword [0x140125540]
mov rcx, rax
call sym.SHGetKnownFolderPath
not eax
shr eax, 0x1f
test al, al
je 0x140001f4c
lea rdx, [rbp + 0x28]
lea rax, [rbp - 0x10]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_wchar_t__std::filesystem::__cxx11.path__wchar_t_const__std::filesystem::__cxx11::path::format_
mov rax, qword [rbp + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoTaskMemFree]
call rax
lea rax, [rbp - 0x10]
lea rdx, str.YourAppName
mov rcx, rax
call method.std::enable_if___is_path_src_char__12____std::filesystem::__cxx11::path_::type_std::filesystem::__cxx11::path.operator__char__12___char_const_____12__
lea rax, [rbp - 0x10]
mov rcx, rax
call method.std::filesystem.create_directory_std::filesystem::__cxx11::path_const_
xor eax, 1
test al, al
je 0x140001cf0
lea rax, str.Error_creating_installation_directory:
mov rdx, rax
mov rax, qword [0x140125b50]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
lea rax, [rbp - 0x10]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::filesystem::__cxx11::operator____char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____std::filesystem::__cxx11::path_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140001f38
lea rax, [rbp + 0x170]
mov r8d, 2
lea rdx, str.YourAppName.exe
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__16___std::filesystem::__cxx11.path__char_const_____16___std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x140]
lea rcx, [rbp + 0x170]
lea rdx, [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call method.std::filesystem::__cxx11.operator__std::filesystem::__cxx11::path_const__std::filesystem::__cxx11::path_const_
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x140]
mov rcx, rax
call method.std::filesystem::__cxx11::path.string___const
lea rax, [rbp + 0x140]
mov rcx, rax
call method.std::filesystem::__cxx11::path.path__
lea rax, [rbp + 0x170]
mov rcx, rax
call method.std::filesystem::__cxx11::path.path__
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x1a0]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::filesystem::__cxx11.path__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesy
lea rdx, [rbp + 0x30]
lea rax, [rbp + 0x1d0]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__260___std::filesystem::__cxx11.path__char_const_____260___std::filesystem::__cxx11::path::format_
lea rdx, [rbp + 0x1a0]
lea rax, [rbp + 0x1d0]
mov r8d, 2
mov rcx, rax
call method.std::filesystem.copy_file_std::filesystem::__cxx11::path_const__std::filesystem::__cxx11::path_const__std::filesystem::copy_options_
xor eax, 1
mov ebx, eax
lea rax, [rbp + 0x1d0]
mov rcx, rax
call method.std::filesystem::__cxx11::path.path__
lea rax, [rbp + 0x1a0]
mov rcx, rax
call method.std::filesystem::__cxx11::path.path__
test bl, bl
je 0x140001e13
lea rax, str.Error_copying_executable_to:
mov rdx, rax
mov rax, qword [0x140125b50]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
lea rax, [rbp - 0x30]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140001f1b
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.SoftwareYourAppName
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
mov dword [rbp + 0x20c], eax
cmp dword [rbp + 0x20c], 0
jne 0x140001e85
mov rax, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x140001eb7
lea rax, str.Error_creating_registry_key.
mov rdx, rax
mov rax, qword [0x140125b50]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140001f1b
lea rax, str.Application_installed_successfully_on_Windows.
mov rdx, rax
mov rax, qword [0x140125b70]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rdx, [rbp + 0x20b]
lea rax, [rbp + 0x200]
mov rcx, rax
call method.std::thread.thread_InstallOnWindows__::lambda__1____void__InstallOnWindows__::lambda__1_
lea rax, [rbp + 0x200]
mov rcx, rax
call method.std::thread.detach__
lea rax, [rbp + 0x200]
mov rcx, rax
call method.std::thread.thread__
mov ebx, 1
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
jne 0x140001f33
mov ebx, 1
jmp 0x140001f38
mov ebx, 0
lea rax, [rbp - 0x10]
mov rcx, rax
call method.std::filesystem::__cxx11::path.path__
cmp ebx, 1
jmp 0x14000200c
lea rax, str.Error_getting_Roaming_AppData_folder_path.
mov rdx, rax
mov rax, qword [0x140125b50]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x14000200c
add rsp, 0x298
pop rbx
pop rbp
ret