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

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x424050]
xor eax, ebp
mov dword [ebp + 0xe4], eax
mov eax, dword [ebp + 0xf0]
push ebx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xf4]
xor ebx, ebx
cmp byte [ebp + 0xf8], bl
push esi
mov dword [ebp - 0x40], eax
push edi
mov eax, str.SoftwareJavaSoftJava_Development_Kit_
jne 0x406243
mov eax, str.SoftwareJavaSoftJava_Runtime_Environment_
lea ecx, [ebp - 0x64]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4063f4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x5c], 0x104
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
mov dword [ebp - 0x68], eax
jne 0x4063d2
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x44]
call fcn.004032f7
mov eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041db07
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.00402f79
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
call fcn.0041db39
test eax, eax
jl 0x4063d2
lea eax, [ebp - 0x60]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4063d2
push dword [ebp - 0x60]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00406a38
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
mov edi, str.JavaHome
push edi
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x34], ebx
je 0x4063c1
push dword [ebp - 0x34]
call fcn.0041e6ca
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
call esi
test eax, eax
jne 0x4063b8
lea eax, [ebp - 0x80]
push eax
sub esp, 0xc
lea edi, [ebp - 0x50]
mov eax, esp
call fcn.00406a51
cmp byte [ebp + 0xfc], bl
je 0x406361
call fcn.00406c2a
jmp 0x406366
call fcn.00406c67
mov dword [ebp - 0x2c], eax
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea esi, [ebp - 0x50]
call fcn.00406a9a
push dword [ebp - 0x30]
lea esi, [ebp - 0x3c]
call fcn.004032f7
mov eax, esi
mov esi, dword [ebp - 0x40]
push eax
call fcn.004069f1
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.00402f79
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4063b8
push dword [ebp - 0x2c]
lea edi, [ebp - 0x50]
call fcn.00406ca4
push dword [ebp - 0x2c]
mov ebx, esi
call fcn.00406d04
pop ecx
pop ecx
xor ebx, ebx
push dword [ebp - 0x30]
call fcn.0041e6cf
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x4063d2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x38]
cmp dword [ebp - 0x68], ebx
je 0x406273
lea esi, [ebp - 0x50]
call fcn.0041a512
cmp dword [ebp - 0x58], ebx
je 0x4063f4
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e95f
add ebp, 0xe8
leave
ret