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

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x438060]
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 0x4083a0
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 0x40854b
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 0x408529
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x44]
call fcn.004015d9
mov eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0042cd65
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.0040147d
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
call fcn.0042cd7b
test eax, eax
jl 0x408529
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 0x408529
mov eax, dword [ebp - 0x60]
cmp eax, ebx
mov dword [ebp - 0x28], ebx
je 0x40845d
mov dword [ebp - 0x28], eax
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 0x40851b
push dword [ebp - 0x34]
call fcn.0042ddf5
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 0x408512
lea eax, [ebp - 0x80]
push eax
sub esp, 0xc
lea edi, [ebp - 0x50]
mov eax, esp
call fcn.00408a5b
cmp byte [ebp + 0xf8], bl
je 0x4084bb
call fcn.00408b25
jmp 0x4084c0
call fcn.00408b62
mov dword [ebp - 0x2c], eax
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea esi, [ebp - 0x50]
call fcn.00408aa4
push dword [ebp - 0x30]
lea esi, [ebp - 0x3c]
call fcn.004015d9
mov eax, esi
mov esi, dword [ebp - 0x40]
push eax
call fcn.00408a14
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
call fcn.0040147d
cmp dword [ebp - 0x2c], 0xffffffff
je 0x408512
push dword [ebp - 0x2c]
lea edi, [ebp - 0x50]
call fcn.00408b9f
push dword [ebp - 0x2c]
mov ebx, esi
call fcn.00408bff
pop ecx
pop ecx
xor ebx, ebx
push dword [ebp - 0x30]
call fcn.0042ddfa
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x408529
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x38]
cmp dword [ebp - 0x68], ebx
je 0x4083d1
lea esi, [ebp - 0x50]
call fcn.00412cbf
cmp dword [ebp - 0x58], ebx
je 0x40854b
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.0042e08a
add ebp, 0xe8
leave
ret