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

Disassembly:
push 0x270
mov eax, 0x50b676
call fcn.004d0d27
mov dword [ebp - 0x248], edx
mov esi, ecx
mov dword [ebp - 0x234], esi
mov bl, byte [ebp + 8]
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, str.SoftwareJavaSoftJava_Runtime_Environment_
or eax, 0x20019
test bl, bl
push eax
push 0
mov eax, str.SoftwareJavaSoftJava_Development_Kit_
cmove eax, ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486858
mov ebx, dword [ebp - 0x260]
and dword [ebp - 0x25c], eax
and dword [ebp - 0x258], eax
and dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0x208
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x268], eax
test eax, eax
jne 0x486828
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004093f6
push ecx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x230]
call fcn.0048f781
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push esi
lea ecx, [ebp - 0x230]
call fcn.0048f756
test eax, eax
js 0x486828
lea eax, [ebp - 0x23c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x486828
xor edi, edi
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x23c], edi
push eax
cmovne edi, dword [ebp - 0x23c]
xor eax, eax
push eax
push eax
push eax
push str.JavaHome
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x48686e
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d0681
pop ecx
mov esi, eax
lea eax, [ebp - 0x240]
push eax
push esi
push 0
push 0
push str.JavaHome
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x486754
push esi
call fcn.004d0771
pop ecx
test edi, edi
je 0x486822
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x486822
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.004869b9
xor ebx, ebx
cmp dword [ebp - 0x278], ebx
jle 0x48679b
push ebx
lea ecx, [ebp - 0x27c]
call fcn.00486b3d
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.0048f756
test eax, eax
js 0x48685e
inc ebx
cmp ebx, dword [ebp - 0x278]
jl 0x486770
lea ecx, [ebp - 0x27c]
call fcn.00406f43
or ebx, 0xffffffff
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00486943
push esi
lea ecx, [ebp - 0x244]
call fcn.004093f6
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x244]
push eax
call fcn.0046e350
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp ebx, 0xffffffff
je 0x48680a
mov edx, ebx
lea ecx, [ebp - 0x25c]
call fcn.00486a2d
mov ecx, dword [ebp - 0x248]
mov edx, ebx
call fcn.00486aad
push esi
call fcn.004d0771
pop ecx
test edi, edi
je 0x48681c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x234]
mov eax, dword [ebp - 0x250]
inc eax
cmp dword [ebp - 0x268], 0
mov dword [ebp - 0x250], eax
je 0x48662c
lea ecx, [ebp - 0x25c]
call fcn.00406f43
test ebx, ebx
je 0x486858
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004d0cd1
ret
lea ecx, [ebp - 0x27c]
call fcn.00406f43
jmp 0x4867a9
test edi, edi
je 0x486828
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x486828