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

Disassembly:
push ebp
lea ebp, [esp - 0x4654]
mov eax, 0x4654
call fcn.00413c90
push 0xffffffffffffffff
push 0x42f003
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x43bc80]
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 0x40de89
lea ecx, [ebp - 0x4c]
call fcn.0040bd45
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 0x40dd94
push dword [ebp - 0x24]
lea eax, [ebp + 0x1770]
push dword [ebp - 0x2c]
push eax
call fcn.0040c4ed
add esp, 0xc
test al, al
je 0x40dd67
lea eax, [ebp + 0x1770]
push eax
lea ecx, [ebp - 0x78]
call fcn.00402f54
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040dbfa
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call fcn.00402988
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 0x40dd22
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00406524
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
call fcn.00406524
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040d8bf
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
add esp, 0x10
push 0x1c
cdq
pop ecx
idiv ecx
mov ebx, eax
jmp 0x40de68
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040a479
cmp dword [eax + 0x18], 0x10
jb 0x40ddf1
mov eax, dword [eax + 4]
jmp 0x40ddf4
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 0x40de68
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 0x40de5f
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call fcn.00409bb6
pop ecx
pop ecx
test al, al
je 0x40de5f
push 1
push 1
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
push dword [ebp - 0x28]
call fcn.0040d072
add esp, 0x1c
test al, al
jne 0x40deae
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec ebx
jns 0x40dddd
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
call fcn.0040c189
push dword [ebp - 0x4c]
call fcn.00413a45
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.00413c78
add ebp, 0x4654
leave
ret
lea ecx, [ebp - 0x4c]
call fcn.0040c189
push dword [ebp - 0x4c]
call fcn.00413a45
pop ecx
mov al, 1
jmp 0x40de8b