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

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x4c
mov eax, 0x50b6a4
call fcn.004cea03
mov dword [ebp - 0x38], edx
mov esi, ecx
mov dword [ebp - 0x10], esi
mov bl, byte [ebp + 0x228]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 0x230]
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 0x490bf5
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x58], edi
and dword [ebp - 0x54], eax
and dword [ebp - 4], eax
and dword [ebp - 0x24], eax
and dword [ebp - 0x20], eax
and dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x208
push ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x490bb6
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409ea5
push 2
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp]
call fcn.00469a90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004068c3
push esi
lea ecx, [ebp]
call fcn.00469a50
test eax, eax
js 0x490bb6
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
lea eax, [ebp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x490bb6
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
push ecx
mov esi, ecx
cmp dword [ebp - 0x2c], esi
push ecx
cmovne esi, dword [ebp - 0x2c]
push ecx
push str.JavaHome
push esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x490ba4
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce399
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
push ecx
push eax
push 0
push 0
push str.JavaHome
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x490c18
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
call fcn.004ce497
and dword [ebp - 0x14], 0
pop ecx
mov byte [ebp - 4], 1
test esi, esi
je 0x490bb3
push esi
call ebx
and dword [ebp - 0x44], 0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
inc eax
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], eax
je 0x490aa4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 0
je 0x490bde
push dword [ebp - 0x24]
call fcn.004d396c
and dword [ebp - 0x24], 0
pop ecx
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x490bf5
push edi
call ebx
and dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.004cde67
lea esp, [ebp + 0x220]
pop ebp
ret
sub esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00490e06
mov byte [ebp - 4], 6
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00490e7a
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp]
lea ecx, [ebp - 0x24]
push eax
call fcn.00490d90
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.00409ea5
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call fcn.00471ac0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004068c3
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x490b93
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00490ee0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
call fcn.00490f60
jmp 0x490b93