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

Disassembly:
push ebp
lea ebp, [esp - 0x4654]
mov eax, 0x4654
call fcn.0041d7b0
push 0xffffffffffffffff
push 0x436e9c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x450970]
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 0x40abf4
lea ecx, [ebp - 0x4c]
call fcn.00417a42
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 0x40ab01
push dword [ebp - 0x24]
lea eax, [ebp + 0x1770]
push dword [ebp - 0x2c]
push eax
call fcn.00409995
add esp, 0xc
test al, al
je 0x40aad4
lea eax, [ebp + 0x1770]
push eax
lea ecx, [ebp - 0x78]
call fcn.00402ee1
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040a967
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.00402907
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 0x40aa8f
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00408f8e
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
call fcn.00408f8e
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040a947
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
add esp, 0x10
push 0x1c
cdq
pop ecx
idiv ecx
mov ebx, eax
jmp 0x40abd3
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00408ce5
cmp dword [eax + 0x18], 0x10
jb 0x40ab5e
mov eax, dword [eax + 4]
jmp 0x40ab61
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 0x40abd3
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 0x40abca
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call fcn.0040831a
pop ecx
pop ecx
test al, al
je 0x40abca
push 1
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
push dword [ebp - 0x28]
call fcn.00409bf7
add esp, 0x18
test al, al
jne 0x40ac19
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec ebx
jns 0x40ab4a
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
call fcn.004096d2
push dword [ebp - 0x4c]
call fcn.0041d558
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.0041d798
add ebp, 0x4654
leave
ret
lea ecx, [ebp - 0x4c]
call fcn.004096d2
push dword [ebp - 0x4c]
call fcn.0041d558
pop ecx
mov al, 1
jmp 0x40abf6