Function at 0x140002360
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [0x1400ccf20]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJRE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002405
lea rax, [0x1400ccf20]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002405
lea rax, [0x1400ccf20]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJDK
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002405
lea rdx, str.Unable_to_open_JavaSoft_registry_key
lea rcx, [0x1400cdd50]
call fcn.140002e80
xor eax, eax
jmp 0x1400025f9
mov dword [section..data], 0
lea rax, section..data
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [0x1400ccf30]
xor r8d, r8d
lea rdx, [0x140084308]
mov rcx, qword [0x1400ccf20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000245b
cmp dword [0x1400ccf30], 1
jne 0x14000245b
cmp dword [section..data], 0x104
jle 0x140002475
lea rdx, str.Unable_to_find_CurrentVersion_registry_key
lea rcx, [0x1400cdd50]
call fcn.140002e80
xor eax, eax
jmp 0x1400025f9
mov dword [section..data], 0x104
lea rax, section..data
mov qword [rsp + 0x28], rax
lea rax, [0x1400ccf40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140084348]
mov rcx, qword [0x1400ccf20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400024cf
lea rdx, str.Unable_to_load_CurrentVersion_registry_key
lea rcx, [0x1400cdd50]
call fcn.140002e80
xor eax, eax
jmp 0x1400025f9
lea rax, [0x1400ccf28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400ccf40]
mov rcx, qword [0x1400ccf20]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002516
lea rdx, str.Unable_to_open_CurrentVersion_registry_key
lea rcx, [0x1400cdd50]
call fcn.140002e80
xor eax, eax
jmp 0x1400025f9
mov dword [section..data], 0
lea rax, section..data
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [0x1400ccf30]
xor r8d, r8d
lea rdx, [0x1400843b8]
mov rcx, qword [0x1400ccf28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000256c
cmp dword [0x1400ccf30], 1
jne 0x14000256c
cmp dword [section..data], 0x104
jle 0x140002583
lea rdx, str.Unable_to_find_JavaHome_registry_key
lea rcx, [0x1400cdd50]
call fcn.140002e80
xor eax, eax
jmp 0x1400025f9
mov dword [section..data], 0x104
lea rax, section..data
mov qword [rsp + 0x28], rax
lea rax, [0x1400cd050]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400843f0]
mov rcx, qword [0x1400ccf28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400025da
lea rdx, str.Unable_to_load_JavaHome_registry_key
lea rcx, [0x1400cdd50]
call fcn.140002e80
xor eax, eax
jmp 0x1400025f9
mov rcx, qword [0x1400ccf20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1400ccf28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x38
ret