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

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x429060]
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 0x4052e0
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 0x405491
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 0x40546f
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x44]
call fcn.00401d1b
mov eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004215dc
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.0040175b
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
call fcn.0042160e
test eax, eax
jl 0x40546f
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 0x40546f
push dword [ebp - 0x60]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004058f4
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 0x40545e
push dword [ebp - 0x34]
call fcn.004222b8
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 0x405455
lea eax, [ebp - 0x80]
push eax
sub esp, 0xc
lea edi, [ebp - 0x50]
mov eax, esp
call fcn.0040590d
cmp byte [ebp + 0xfc], bl
je 0x4053fe
call fcn.004059d7
jmp 0x405403
call fcn.00405a14
mov dword [ebp - 0x2c], eax
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea esi, [ebp - 0x50]
call fcn.00405956
push dword [ebp - 0x30]
lea esi, [ebp - 0x3c]
call fcn.00401d1b
mov eax, esi
mov esi, dword [ebp - 0x40]
push eax
call fcn.004058ad
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [ebp - 0x2c], 0xffffffff
je 0x405455
push dword [ebp - 0x2c]
lea edi, [ebp - 0x50]
call fcn.00405a51
push dword [ebp - 0x2c]
mov ebx, esi
call fcn.00405ab1
pop ecx
pop ecx
xor ebx, ebx
push dword [ebp - 0x30]
call fcn.004222bd
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x40546f
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 0x405310
lea esi, [ebp - 0x50]
call fcn.0041f8a5
cmp dword [ebp - 0x58], ebx
je 0x405491
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.0042254d
add ebp, 0xe8
leave
ret