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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rbp + 0x390], rax
and dword [rdx], 0
mov rbx, rdx
lea rax, [rsp + 0x48]
mov r12, rcx
lea rdx, [0x14003daa0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bae2
mov rcx, qword [rsp + 0x48]
xor esi, esi
lea r9, [rsp + 0x40]
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
and qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rsi
lea r8, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000bad7
or r15, 0xffffffffffffffff
lea rdx, [0x14003daf8]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov dword [rsp + 0x50], 0x104
call fcn.1400145e4
test eax, eax
js 0x14000ba96
xor eax, eax
lea rdi, [rsp + 0x70]
mov rcx, r15
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 3
jbe 0x14000ba96
lea rax, [rsp + 0x70]
lea r9, str._s_s
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x28], rax
lea rax, str.SOFTWAREJavaSoftJava_Runtime_Environment
mov r8, r15
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140014bd4
lea rdx, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rdx
lea rdx, [rbp + 0x180]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ba96
mov ecx, 0x208
call fcn.140013da8
movsxd rcx, dword [rbx]
lea rdx, [rcx + rcx*2]
add rdx, rdx
mov qword [r12 + rdx*8 + 0x18], rax
movsxd rax, dword [rbx]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [r12 + rcx*8 + 0x18]
test rax, rax
je 0x14000bb63
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x60]
lea rdx, str.JavaHome
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movsxd rax, dword [rbx]
jne 0x14000ba7a
lea rdi, [rax + rax*2]
xor eax, eax
mov rcx, r15
add rdi, rdi
lea rdx, str._binjavaw.exe
mov rdi, qword [r12 + rdi*8 + 0x18]
repne scasw ax, word [rdi]
xor ecx, ecx
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x14000ba1f
lea rcx, [rsp + 0x70]
call fcn.140013bf8
movsxd rcx, dword [rbx]
lea rdx, [rcx + rcx*2]
add rdx, rdx
mov qword [r12 + rdx*8 + 8], rax
movsxd rax, dword [rbx]
lea rcx, [rax + rax*2]
lea rax, [0x14003dba0]
add rcx, rcx
mov qword [r12 + rcx*8 + 0x28], rax
movsxd rax, dword [rbx]
lea rcx, [rax + rax*2]
lea rax, [0x14003dbb0]
add rcx, rcx
mov qword [r12 + rcx*8 + 0x20], rax
inc dword [rbx]
jmp 0x14000ba8b
lea rcx, [rax + rax*2]
add rcx, rcx
mov rcx, qword [r12 + rcx*8 + 0x18]
call fcn.140013ae8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
inc esi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, esi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000b8fd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp edi, dword [rbx]
jae 0x14000bb0d
lea rsi, [r12 + 0x18]
call fcn.14000b518
mov rcx, qword [rsi]
mov rdx, rax
call fcn.140015528
test eax, eax
je 0x14000bb0b
inc edi
add rsi, 0x30
cmp edi, dword [rbx]
jb 0x14000baed
cmp edi, dword [rbx]
jne 0x14000bb63
call fcn.14000b518
mov rcx, rax
call fcn.140013bf8
movsxd rcx, dword [rbx]
lea rdx, [rcx + rcx*2]
lea rcx, str.amd64
add rdx, rdx
mov qword [r12 + rdx*8 + 0x18], rax
call fcn.140013bf8
movsxd rcx, dword [rbx]
lea rdx, [rcx + rcx*2]
lea rcx, str.Windows
add rdx, rdx
mov qword [r12 + rdx*8 + 0x28], rax
call fcn.140013bf8
movsxd rcx, dword [rbx]
lea rdx, [rcx + rcx*2]
add rdx, rdx
mov qword [r12 + rdx*8 + 0x20], rax
inc dword [rbx]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400130b0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret