Function at 0x40cfe9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
push ebx
push esi
push edi
xor edx, edx
xor eax, eax
mov esi, 0xff
mov byte [ebp - 0x418], dl
mov ecx, esi
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xc18], dl
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0xc17]
rep stosd dword es:[edi], eax
mov ebx, 0x20019
push ebx
stosw word es:[edi], ax
push 0x422034
push 0x80000002
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
stosb byte es:[edi], al
mov dword [ebp - 0x14], edx
call fcn.00402e4b
test eax, eax
jne 0x40d235
push ebx
push 0x422040
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00402e4b
test eax, eax
jne 0x40d235
push ebx
push 0x42204c
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402e4b
test eax, eax
jne 0x40d235
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x422068
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 4]
call fcn.0040c606
test eax, eax
je 0x40d0d2
xor esi, esi
lea ecx, [ebp - 8]
call fcn.00402e34
lea ecx, [ebp - 4]
call fcn.00402e34
lea ecx, [ebp - 0xc]
call fcn.00402e34
lea ecx, [ebp - 0x10]
call fcn.00402e34
mov eax, esi
jmp 0x40d257
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e4b
test eax, eax
jne 0x40d118
lea eax, [ebp + 0x10]
push eax
push 0x422078
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0040c606
test eax, eax
jne 0x40d118
push dword [ebp + 0xc]
call fcn.0040b972
test eax, eax
pop ecx
je 0x40d118
cmp dword [ebp + 8], 0
je 0x40d22d
xor eax, eax
mov byte [ebp - 0x818], 0
mov ecx, esi
lea edi, [ebp - 0x817]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, 0x400
push esi
lea eax, [ebp - 0x418]
push eax
push 0
jmp 0x40d1e5
push eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40d1da
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e4b
test eax, eax
jne 0x40d1d7
lea eax, [ebp + 0x10]
push eax
push str.JavaHome
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 8]
call fcn.0040c606
test eax, eax
jne 0x40d1d7
cmp dword [ebp + 0x10], eax
jbe 0x40d1d7
lea eax, [ebp - 0xc18]
push eax
call fcn.0040b972
test eax, eax
pop ecx
je 0x40d1d7
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x818]
push 0x422090
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc18]
push eax
push 0x422094
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
inc dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call edi
test eax, eax
lea eax, [ebp - 0x818]
je 0x40d148
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d1fb
sub eax, edx
mov dword [ebp - 0x14], eax
je 0x40d235
lea eax, [ebp - 0x818]
push eax
push 0x422098
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x10], eax
xor esi, esi
inc esi
jmp 0x40d0ab
lea ecx, [ebp - 8]
call fcn.00402e34
lea ecx, [ebp - 4]
call fcn.00402e34
lea ecx, [ebp - 0xc]
call fcn.00402e34
lea ecx, [ebp - 0x10]
call fcn.00402e34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret