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

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x42a060]
push ebx
xor eax, ebp
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0xf0]
xor ebx, ebx
cmp byte [ebp + 0xf4], bl
push esi
mov dword [ebp + 0xe4], eax
mov eax, dword [ebp + 0xfc]
mov dword [ebp - 0x40], ecx
push edi
mov ecx, str.SoftwareJavaSoftJava_Development_Kit_
jne 0x405867
mov ecx, str.SoftwareJavaSoftJava_Runtime_Environment_
lea edx, [ebp - 0x64]
push edx
or eax, 0x20019
push eax
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a19
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 0x4059f7
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x44]
call fcn.00401cf3
mov eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00422b47
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.0040175b
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
call fcn.00422b79
test eax, eax
jl 0x4059f7
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 0x4059f7
push dword [ebp - 0x60]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00405e7c
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 0x4059e6
push dword [ebp - 0x34]
call fcn.0042382d
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 0x4059dd
lea eax, [ebp - 0x80]
push eax
sub esp, 0xc
lea edi, [ebp - 0x50]
mov eax, esp
call fcn.00405e95
cmp byte [ebp + 0xf8], bl
je 0x405986
call fcn.00405f5f
jmp 0x40598b
call fcn.00405f9c
mov dword [ebp - 0x2c], eax
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea esi, [ebp - 0x50]
call fcn.00405ede
push dword [ebp - 0x30]
lea esi, [ebp - 0x3c]
call fcn.00401cf3
mov eax, esi
mov esi, dword [ebp - 0x40]
push eax
call fcn.00405e35
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4059dd
push dword [ebp - 0x2c]
lea edi, [ebp - 0x50]
call fcn.00405fd9
push dword [ebp - 0x2c]
mov ebx, esi
call fcn.00406039
pop ecx
pop ecx
xor ebx, ebx
push dword [ebp - 0x30]
call fcn.00423832
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x4059f7
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 0x405898
lea esi, [ebp - 0x50]
call fcn.00418a8d
cmp dword [ebp - 0x58], ebx
je 0x405a19
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.00423ac2
add ebp, 0xe8
leave
ret