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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x234], ecx
push edi
mov ecx, str.SoftwareJavaSoftJava_Development_Kit_
cmp byte [ebp + 0xc], bl
jne 0x45fa3f
mov ecx, str.SoftwareJavaSoftJava_Runtime_Environment_
lea edx, [ebp - 0x26c]
push edx
or eax, 0x20019
push eax
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45fbe2
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x218], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x250], 0x208
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x270], eax
cmp eax, ebx
jne 0x45fbaf
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405d14
lea eax, [ebp - 0x230]
push eax
lea ebx, [ebp - 0x284]
call fcn.0046e525
lea ecx, [ebp - 0x230]
call fcn.004058a3
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0046e4fa
test eax, eax
jl 0x45fbaf
lea eax, [ebp - 0x268]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45fbaf
mov eax, dword [ebp - 0x268]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x238]
push ecx
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, str.JavaHome
push edi
push eax
mov dword [ebp - 0x224], eax
call esi
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x45fb9b
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049afc0
pop ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], eax
call esi
test eax, eax
je 0x45fbf1
push dword [ebp - 0x21c]
call fcn.0049c876
pop ecx
cmp dword [ebp - 0x224], ebx
je 0x45fbaf
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x218]
xor ebx, ebx
cmp dword [ebp - 0x270], ebx
je 0x45fa85
lea esi, [ebp - 0x24c]
call fcn.004105ea
cmp dword [ebp - 0x240], ebx
je 0x45fbe2
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c07b
leave
ret
lea edi, [ebp - 0x24c]
lea eax, [ebp - 0x264]
call fcn.00460249
xor edi, edi
cmp dword [ebp - 0x260], ebx
jle 0x45fc35
mov eax, edi
lea ecx, [ebp - 0x264]
call fcn.0046047d
lea ecx, [ebp - 0x284]
call fcn.0046e4fa
test eax, eax
jl 0x45fcbf
inc edi
cmp edi, dword [ebp - 0x260]
jl 0x45fc0c
lea esi, [ebp - 0x264]
call fcn.004105ea
or dword [ebp - 0x228], 0xffffffff
lea eax, [ebp - 0x284]
push eax
lea esi, [ebp - 0x24c]
call fcn.004602ba
push dword [ebp - 0x21c]
lea eax, [ebp - 0x22c]
push eax
call fcn.00405d14
mov esi, dword [ebp - 0x234]
lea ebx, [ebp - 0x22c]
call fcn.0044e690
mov ecx, ebx
call fcn.004058a3
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x45fca7
lea edi, [ebp - 0x24c]
call fcn.00460358
push dword [ebp - 0x228]
mov edi, esi
call fcn.0046040b
pop ecx
push dword [ebp - 0x21c]
call fcn.0049c876
cmp dword [ebp - 0x224], 0
pop ecx
jmp 0x45fba1
lea esi, [ebp - 0x264]
call fcn.004105ea
mov dword [ebp - 0x228], edi
jmp 0x45fc47