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

Disassembly:
push ebp
lea ebp, [esp - 0x4654]
mov eax, 0x4654
call fcn.0040ede0
push 0xffffffffffffffff
push 0x42743b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x4650], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x465c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x4660]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x4664]
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x4668]
push 0x20019
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x466c]
xor edi, edi
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b2e8
lea ecx, [ebp - 0x4c]
call fcn.004073e3
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x2ee0]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1770]
push eax
push edi
push dword [ebp - 0x18]
mov esi, 0x1770
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call edi
mov ebx, 0x103
jmp 0x40b1f5
push dword [ebp - 0x24]
lea eax, [ebp + 0x1770]
push dword [ebp - 0x2c]
push eax
call fcn.0040a07b
add esp, 0xc
test al, al
je 0x40b1c8
lea eax, [ebp + 0x1770]
push eax
lea ecx, [ebp - 0x78]
call fcn.00402f10
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040b05b
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.0040292d
inc dword [ebp - 0x10]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x2ee0]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1770]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call edi
cmp eax, ebx
jne 0x40b183
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00406e7f
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
call fcn.00406e7f
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040b03b
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
add esp, 0x10
push 0x1c
cdq
pop ecx
idiv ecx
mov ebx, eax
jmp 0x40b2c7
push ebx
lea ecx, [ebp - 0x4c]
call fcn.004092eb
cmp dword [eax + 0x18], 0x10
jb 0x40b252
mov eax, dword [eax + 4]
jmp 0x40b255
add eax, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
xor edi, edi
push edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b2c7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push str.JavaHome
push dword [ebp - 0x10]
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b2be
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call fcn.00408972
pop ecx
pop ecx
test al, al
je 0x40b2be
push 1
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
push dword [ebp - 0x28]
call fcn.0040a2dd
add esp, 0x18
test al, al
jne 0x40b30d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec ebx
jns 0x40b23e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
call fcn.00409db8
push dword [ebp - 0x4c]
call fcn.0040eb88
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4650]
xor ecx, ebp
call fcn.0040edc8
add ebp, 0x4654
leave
ret
lea ecx, [ebp - 0x4c]
call fcn.00409db8
push dword [ebp - 0x4c]
call fcn.0040eb88
pop ecx
mov al, 1
jmp 0x40b2ea