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

Disassembly:
push ebp
lea ebp, [esp - 0x4654]
mov eax, 0x4654
call fcn.0040f5e0
push 0xffffffffffffffff
push 0x427b4b
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 0x40b675
lea ecx, [ebp - 0x4c]
call fcn.004077d9
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 0x40b582
push dword [ebp - 0x24]
lea eax, [ebp + 0x1770]
push dword [ebp - 0x2c]
push eax
call fcn.0040a408
add esp, 0xc
test al, al
je 0x40b555
lea eax, [ebp + 0x1770]
push eax
lea ecx, [ebp - 0x78]
call fcn.00402f11
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040b3e8
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.0040292e
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 0x40b510
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00407102
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
call fcn.00407102
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040b3c8
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
add esp, 0x10
push 0x1c
cdq
pop ecx
idiv ecx
mov ebx, eax
jmp 0x40b654
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00409784
cmp dword [eax + 0x18], 0x10
jb 0x40b5df
mov eax, dword [eax + 4]
jmp 0x40b5e2
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 0x40b654
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 0x40b64b
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call fcn.00408e30
pop ecx
pop ecx
test al, al
je 0x40b64b
push 1
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
push dword [ebp - 0x28]
call fcn.0040a66a
add esp, 0x18
test al, al
jne 0x40b69a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec ebx
jns 0x40b5cb
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
call fcn.0040a145
push dword [ebp - 0x4c]
call fcn.0040f388
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.0040f5c8
add ebp, 0x4654
leave
ret
lea ecx, [ebp - 0x4c]
call fcn.0040a145
push dword [ebp - 0x4c]
call fcn.0040f388
pop ecx
mov al, 1
jmp 0x40b677