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

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x4c
mov eax, 0x50de90
call fcn.004d0de3
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x48], ecx
mov bl, byte [ebp + 0x228]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 0x230]
xor edi, edi
or eax, 0x20019
mov ecx, str.SoftwareJavaSoftJava_Runtime_Environment_
push eax
test bl, bl
mov eax, str.SoftwareJavaSoftJava_Development_Kit_
push edi
cmove eax, ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x496245
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x54], 0x533de0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov ebx, edi
jmp 0x496081
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x208
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x496211
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d264
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp]
lea eax, [ebp - 0x2c]
push eax
call fcn.0046f320
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ca45
push dword [ebp - 0x48]
lea ecx, [ebp]
call fcn.0046f360
test eax, eax
js 0x496211
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push edi
lea eax, [ebp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x496211
xor esi, esi
mov dword [ebp - 0x28], 0x533de0
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x496127
lea ecx, [ebp - 0x28]
call fcn.004709c0
mov esi, edi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x30]
push eax
xor eax, eax
push eax
push eax
push eax
push str.JavaHome
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4961ff
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d093b
mov edi, eax
pop ecx
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
push edi
push 0
push 0
push str.JavaHome
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4961f0
sub esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x58], esp
lea esi, [ebp]
push eax
call fcn.004963d5
mov byte [ebp - 4], 6
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00496444
add esp, 0xc
lea ecx, [ebp - 0x20]
mov esi, eax
lea eax, [ebp]
push eax
call fcn.0049635f
push edi
lea ecx, [ebp - 0x34]
call fcn.0040d264
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call fcn.0046c410
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040ca45
cmp esi, 0xffffffff
je 0x4961f0
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.004964aa
mov ecx, dword [ebp - 0x38]
mov edx, esi
call fcn.0049652a
push edi
mov byte [ebp - 4], 3
call fcn.004d0936
and dword [ebp - 0x3c], 0
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004709e0
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
inc ebx
test edi, edi
je 0x49607f
mov byte [ebp - 4], 8
cmp dword [ebp - 0x20], 0
je 0x496231
push dword [ebp - 0x20]
call fcn.004d5c5a
and dword [ebp - 0x20], 0
pop ecx
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x54]
and dword [ebp - 0x18], 0
or dword [ebp - 4], 0xffffffff
call fcn.004709e0
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.004d0217
lea esp, [ebp + 0x220]
pop ebp
ret