Function at 0x4060da
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x80000002
mov dword [esi], edi
call ebx
test eax, eax
jne 0x406178
jmp 0x406171
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [esi]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406178
mov ecx, dword [esi]
imul ecx, ecx, 0x234
add ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00405b9a
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x234
lea eax, [eax + ecx + 0x130]
push str.SoftwareJavaSoftJava_Runtime_Environment
push eax
call fcn.00406be0
inc dword [esi]
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [esi], eax
jb 0x406114
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareIBMJava2_Runtime_Environment
push 0x80000002
call ebx
test eax, eax
jne 0x406208
mov eax, dword [esi]
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jae 0x406208
jmp 0x4061a1
mov eax, dword [ebp - 0xc]
push edi
push edi
push edi
push edi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [esi]
sub ecx, eax
push ecx
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406208
mov ecx, dword [esi]
imul ecx, ecx, 0x234
add ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00405b9a
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x234
lea eax, [eax + ecx + 0x130]
push str.SoftwareIBMJava2_Runtime_Environment
push eax
call fcn.00406be0
mov eax, dword [ebp + 0xc]
inc dword [esi]
cmp dword [esi], eax
pop ecx
pop ecx
jb 0x40619e
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareWow6432NodeJavaSoftJava_Runtime_Environment
push 0x80000002
call ebx
test eax, eax
jne 0x406288
jmp 0x406281
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [esi]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406288
mov ecx, dword [esi]
imul ecx, ecx, 0x234
add ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00405b9a
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x234
lea eax, [eax + ecx + 0x130]
push str.SoftwareWow6432NodeJavaSoftJava_Runtime_Environment
push eax
call fcn.00406be0
inc dword [esi]
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp dword [esi], eax
jb 0x406224
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareWow6432NodeIBMJava2_Runtime_Environment
push 0x80000002
call ebx
test eax, eax
jne 0x406310
mov ebx, dword [esi]
cmp ebx, dword [ebp + 0xc]
jae 0x406310
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [esi]
sub eax, ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406310
mov ecx, dword [esi]
imul ecx, ecx, 0x234
add ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.00405b9a
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x234
lea eax, [eax + ecx + 0x130]
push str.SoftwareWow6432NodeIBMJava2_Runtime_Environment
push eax
call fcn.00406be0
mov eax, dword [ebp + 0xc]
inc dword [esi]
cmp dword [esi], eax
pop ecx
pop ecx
jb 0x4062a9
pop edi
pop esi
pop ebx
leave
ret 8