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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x455090]
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 0x40f9cf
mov ecx, str.SoftwareJavaSoftJava_Runtime_Environment_
lea edx, [ebp - 0x26c]
push edx
or eax, 0x20019
push eax
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fc6b
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 - 0x220], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x220]
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 0x40fc3a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x230]
call fcn.004045e3
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00419871
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.004046b1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x284]
call fcn.004198a1
test eax, eax
jl 0x40fc3a
lea eax, [ebp - 0x268]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40fc3a
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x21c], ebx
cmp eax, ebx
je 0x40fad8
mov dword [ebp - 0x21c], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
push ebx
mov edi, str.JavaHome
push edi
push dword [ebp - 0x21c]
call esi
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x40fb3e
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043029a
pop ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], eax
call esi
test eax, eax
je 0x40fb5b
push dword [ebp - 0x224]
call fcn.004302a5
pop ecx
cmp dword [ebp - 0x21c], ebx
je 0x40fc3a
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fc3a
lea edi, [ebp - 0x24c]
lea eax, [ebp - 0x264]
call fcn.0041029a
xor edi, edi
cmp dword [ebp - 0x260], ebx
jle 0x40fb9f
mov eax, edi
lea ecx, [ebp - 0x264]
call fcn.004104ec
lea ecx, [ebp - 0x284]
call fcn.004198a1
test eax, eax
jl 0x40fc7a
inc edi
cmp edi, dword [ebp - 0x260]
jl 0x40fb76
lea esi, [ebp - 0x264]
call fcn.00410383
or dword [ebp - 0x228], 0xffffffff
lea eax, [ebp - 0x284]
push eax
lea esi, [ebp - 0x24c]
call fcn.0041030b
push dword [ebp - 0x224]
lea eax, [ebp - 0x22c]
call fcn.004045e3
mov esi, dword [ebp - 0x234]
lea ebx, [ebp - 0x22c]
call fcn.004095ec
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x40fc17
lea edi, [ebp - 0x24c]
call fcn.0041039c
push dword [ebp - 0x228]
mov ebx, esi
call fcn.0041044f
pop ecx
push dword [ebp - 0x224]
call fcn.004302a5
cmp dword [ebp - 0x21c], 0
pop ecx
je 0x40fc38
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc dword [ebp - 0x220]
cmp dword [ebp - 0x270], ebx
je 0x40fa15
lea esi, [ebp - 0x24c]
call fcn.00410383
cmp dword [ebp - 0x240], ebx
je 0x40fc6b
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.0043028b
leave
ret
lea esi, [ebp - 0x264]
call fcn.00410383
mov dword [ebp - 0x228], edi
jmp 0x40fbb1