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

Disassembly:
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x220
push 0xffffffffffffffff
push 0x51151d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 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 0x497f68
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x58], 0x537130
mov dword [ebp - 0x54], edi
and dword [ebp - 4], eax
and dword [ebp - 0x2c], eax
and dword [ebp - 0x28], eax
and dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 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 0x497f22
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d91c
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp]
lea eax, [ebp - 0x30]
push eax
call fcn.0046e100
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040d133
push esi
lea ecx, [ebp]
call fcn.0046e140
test eax, eax
js 0x497f22
lea eax, [ebp - 0x34]
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 0x497f22
xor ecx, ecx
mov dword [ebp - 0x1c], 0x537130
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
push ecx
mov esi, ecx
cmp dword [ebp - 0x34], esi
push ecx
cmovne esi, dword [ebp - 0x34]
push ecx
push str.JavaHome
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x497f09
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d62d5
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
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 0x497f8b
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
call fcn.004d62d0
and dword [ebp - 0x14], 0
pop ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x537130
test esi, esi
je 0x497f1f
push esi
call ebx
and dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
inc eax
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x44], eax
je 0x497e06
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c], 0
je 0x497f4a
push dword [ebp - 0x2c]
call fcn.004dbc9c
and dword [ebp - 0x2c], 0
pop ecx
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], 0x537130
test edi, edi
je 0x497f68
push edi
call ebx
and dword [ebp - 0x54], 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.004d5b75
add ebp, 0x220
leave
ret
sub esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004981d5
mov byte [ebp - 4], 6
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00498244
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00498156
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
call fcn.0040d91c
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 7
call fcn.0046b650
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0040d133
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x497ef8
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.004982a7
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
call fcn.0049832b
jmp 0x497ef8