Function at 0x401500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov dword [ebp - 0x244], sym.___gxx_personality_sj0
mov dword [ebp - 0x240], 0x480480
lea eax, [ebp - 0x23c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x401713
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov eax, dword [ebp + 0x10]
mov ecx, eax
call method.std::string.c_str___const
mov edx, eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x258], 0xffffffff
call eax
sub esp, 0x14
test eax, eax
setne al
test al, al
je 0x4015ef
mov dword [esp + 4], str.Failed_to_open_registry_key.
mov dword [esp], 0x487fc0
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 dword [esp], 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 ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
lea eax, [ebp - 0x1b]
mov ecx, eax
call fcn.00448580
lea eax, [ebp - 0x1b]
mov dword [esp + 4], eax
mov dword [esp], 0x48901e
mov dword [ebp - 0x258], 1
mov ecx, dword [ebp + 8]
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x1b]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x4017b1
mov dword [ebp - 0x24], 0x200
mov eax, dword [ebp + 0x14]
mov ecx, eax
call method.std::string.c_str___const
mov ecx, eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x224]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x258], 0xffffffff
call eax
sub esp, 0x18
test eax, eax
setne al
test al, al
je 0x4016bb
mov dword [esp + 4], str.Failed_to_read_registry_value.
mov dword [esp], 0x487fc0
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 dword [esp], 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 ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
lea eax, [ebp - 0x1a]
mov ecx, eax
call fcn.00448580
lea eax, [ebp - 0x1a]
mov dword [esp + 4], eax
mov dword [esp], 0x48901e
mov dword [ebp - 0x258], 2
mov ecx, dword [ebp + 8]
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x1a]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x4017b1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x258], 0xffffffff
call eax
sub esp, 4
lea eax, [ebp - 0x19]
mov ecx, eax
call fcn.00448580
lea eax, [ebp - 0x19]
mov dword [esp + 4], eax
lea eax, [ebp - 0x224]
mov dword [esp], eax
mov dword [ebp - 0x258], 3
mov ecx, dword [ebp + 8]
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x19]
mov ecx, eax
call sym.std::allocator_char_::allocator__
jmp 0x4017b1
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret