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

Disassembly:
push 0x280
mov eax, 0x433d61
call fcn.0041e986
mov dword [ebp - 0x244], edx
mov esi, ecx
mov dword [ebp - 0x230], esi
mov bl, byte [ebp + 8]
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp + 0x10]
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 0x41357c
mov ebx, dword [ebp - 0x264]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], edi
mov byte [ebp - 4], 1
mov eax, edi
mov dword [ebp - 0x24c], edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x268], 0x208
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x41354c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404200
push 2
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x234]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040fca2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.004045ed
push esi
lea ecx, [ebp - 0x22c]
call fcn.0040fc77
test eax, eax
js 0x41354c
lea eax, [ebp - 0x238]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41354c
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x238], eax
lea eax, [ebp - 0x23c]
push eax
cmovne edi, dword [ebp - 0x238]
xor eax, eax
push eax
push eax
push eax
push str.JavaHome
push edi
mov dword [ebp - 0x254], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x413525
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041df8f
mov esi, eax
pop ecx
mov dword [ebp - 0x284], esi
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 4
push eax
push esi
push 0
push 0
push str.JavaHome
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41343a
push esi
call fcn.0041df98
mov byte [ebp - 4], 1
pop ecx
test edi, edi
je 0x413544
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x230]
xor edi, edi
mov dword [ebp - 0x254], edi
jmp 0x41354c
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x280]
call fcn.004136cf
xor ebx, ebx
cmp dword [ebp - 0x27c], ebx
jle 0x413481
push ebx
lea ecx, [ebp - 0x280]
call fcn.00413856
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
call fcn.0040fc77
test eax, eax
js 0x413515
inc ebx
cmp ebx, dword [ebp - 0x27c]
jl 0x413456
lea ecx, [ebp - 0x280]
call fcn.004067a1
or ebx, 0xffffffff
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.00413659
push esi
lea ecx, [ebp - 0x240]
call fcn.00404200
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 5
call fcn.004032bc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
call fcn.004045ed
cmp ebx, 0xffffffff
je 0x4134f4
mov edx, ebx
lea ecx, [ebp - 0x260]
call fcn.00413743
mov ecx, dword [ebp - 0x244]
mov edx, ebx
call fcn.004137c3
push esi
call fcn.0041df98
mov byte [ebp - 4], 1
pop ecx
test edi, edi
je 0x41353e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x248]
jmp 0x413427
lea ecx, [ebp - 0x280]
call fcn.004067a1
jmp 0x41348f
mov byte [ebp - 4], 1
test edi, edi
je 0x41354a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x254], edi
jmp 0x41354c
mov ebx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x230]
xor edi, edi
mov eax, dword [ebp - 0x24c]
inc eax
cmp dword [ebp - 0x26c], 0
mov dword [ebp - 0x24c], eax
je 0x4132e7
lea ecx, [ebp - 0x260]
call fcn.004067a1
test ebx, ebx
je 0x41357c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041e941
ret