Function at 0x40cf38
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 0x422004
push reloc.OLEAUT32.dll_SysReAllocString
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.00402e3b
test eax, eax
jne 0x40d184
push ebx
push 0x422010
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00402e3b
test eax, eax
jne 0x40d184
push ebx
push 0x42201c
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402e3b
test eax, eax
jne 0x40d184
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x422038
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 4]
call fcn.0040c58b
test eax, eax
je 0x40d021
xor esi, esi
lea ecx, [ebp - 8]
call fcn.00402e24
lea ecx, [ebp - 4]
call fcn.00402e24
lea ecx, [ebp - 0xc]
call fcn.00402e24
lea ecx, [ebp - 0x10]
call fcn.00402e24
mov eax, esi
jmp 0x40d1a6
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e3b
test eax, eax
jne 0x40d067
lea eax, [ebp + 0x10]
push eax
push 0x422048
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0040c58b
test eax, eax
jne 0x40d067
push dword [ebp + 0xc]
call fcn.0040b914
test eax, eax
pop ecx
je 0x40d067
cmp dword [ebp + 8], 0
je 0x40d17c
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 0x40d134
push eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40d129
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402e3b
test eax, eax
jne 0x40d126
lea eax, [ebp + 0x10]
push eax
push str.JavaHome
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 8]
call fcn.0040c58b
test eax, eax
jne 0x40d126
cmp dword [ebp + 0x10], eax
jbe 0x40d126
lea eax, [ebp - 0xc18]
push eax
call fcn.0040b914
test eax, eax
pop ecx
je 0x40d126
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x818]
push 0x422060
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc18]
push eax
push 0x422064
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 0x40d097
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d14a
sub eax, edx
mov dword [ebp - 0x14], eax
je 0x40d184
lea eax, [ebp - 0x818]
push eax
push 0x422068
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 0x40cffa
lea ecx, [ebp - 8]
call fcn.00402e24
lea ecx, [ebp - 4]
call fcn.00402e24
lea ecx, [ebp - 0xc]
call fcn.00402e24
lea ecx, [ebp - 0x10]
call fcn.00402e24
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret