Function at 0x401ed3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
call sym.IsWow64__
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x80000002
mov dword [ebp - 0x18], 0x42c0b0
mov dword [ebp - 0x1c], str.JavaHome
cmp dword [ebp - 0x10], 0
je 0x401f2d
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x401f5d
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x401f64
mov eax, 1
jmp 0x401f69
mov eax, 0
test al, al
je 0x4022cf
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x23]
mov ecx, eax
call fcn.0041bfd0
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x23]
mov dword [esp + 4], edx
mov dword [esp], 0x100
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.vector_unsigned_int__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 0x23]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
lea eax, [ebp - 0x34]
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.size___const
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.operator___unsigned_int_
sub esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea ebx, [ebp - 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._RegEnumKeyExW_32
sub esp, 0x20
test eax, eax
setne al
test al, al
je 0x40201b
mov ebx, 0
jmp 0x40222a
cmp dword [ebp - 0x10], 0
je 0x402062
lea eax, [ebp - 0x34]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.operator___unsigned_int_
sub esp, 4
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x4020a3
lea eax, [ebp - 0x34]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.operator___unsigned_int_
sub esp, 4
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x4020aa
mov eax, 1
jmp 0x4020af
mov eax, 0
test al, al
je 0x402225
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x40]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
sete al
test al, al
je 0x402217
lea eax, [ebp - 0x22]
mov ecx, eax
call fcn.0041bf40
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x22]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector_unsigned_int__std::allocator_unsigned_char__const_
sub esp, 8
lea eax, [ebp - 0x22]
mov ecx, eax
call sym.std::allocator_unsigned_char_::allocator__
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x4c]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_int_
sub esp, 4
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
sete al
test al, al
je 0x40220d
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x402194
mov eax, dword [ebp - 0x50]
cmp eax, 2
jne 0x40220d
lea eax, [ebp - 0x21]
mov ecx, eax
call fcn.0041bfd0
lea eax, [ebp - 0x4c]
mov dword [esp], 0
mov ecx, eax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_int_
sub esp, 4
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x21]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ecx, edx
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
sub esp, 8
lea eax, [ebp - 0x21]
mov ecx, eax
call sym.std::allocator_wchar_t_::allocator__
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x54]
mov dword [esp], edx
mov ecx, eax
call method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
sub esp, 4
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov ecx, dword [ebp + 8]
call method.std.function_void__std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____::operator___std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t_____const
sub esp, 4
lea eax, [ebp - 0x20]
mov ecx, eax
call sym.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea eax, [ebp - 0x54]
mov ecx, eax
call sym.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x40220d
lea eax, [ebp - 0x4c]
mov ecx, eax
call fcn.00422ee8
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov ebx, 1
lea eax, [ebp - 0x34]
mov ecx, eax
call method.std::vector_wchar_t__std::allocator_wchar_t___.vector__
cmp ebx, 1
jne 0x402243
nop
add dword [ebp - 0xc], 1
jmp 0x401f78
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x4022cf
mov ebx, dword [ebp - 4]
leave
ret