Function at 0x40cd3e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4438f9
call fcn.00428c84
sub esp, 0xc4
push ebx
push esi
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x14]
push edi
call fcn.00401691
xor ebx, ebx
lea ecx, [ebp - 0x14]
push str.TypeLib_
mov dword [ebp - 4], ebx
call fcn.004028e8
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40cd79
mov eax, ebx
jmp 0x40cd80
push esi
call fcn.004304f5
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040225c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov edi, ebx
call fcn.00401621
push ebx
push 0x2e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040d4e5
mov esi, eax
cmp esi, 1
jl 0x40ce13
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d5b7
mov edi, dword [ebp + 0xc]
push edi
mov byte [ebp - 4], 2
call fcn.00432783
pop ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [esi + 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov ecx, dword [ecx - 0xc]
sub ecx, edx
push ecx
push edx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b1b9
mov esi, dword [ebp - 0x20]
push esi
call fcn.00432783
pop ecx
lea ecx, [esi - 0x10]
mov dword [ebp - 0x18], eax
call fcn.00401b78
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00401b78
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jmp 0x40cf48
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
push 0x20019
push ebx
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cf48
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 0x40
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0xd0]
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40cf3f
mov esi, ebx
mov edi, ebx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401621
push ebx
push 0x2e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0040d4e5
mov dword [ebp - 0x34], eax
cmp eax, 1
jl 0x40cef8
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040d5b7
mov edi, dword [ebp - 0x30]
push edi
mov byte [ebp - 4], 4
call fcn.00432783
mov edx, dword [ebp - 0x34]
pop ecx
mov ecx, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
sub ecx, edx
push ecx
push edx
push eax
lea ecx, [ebp + 0xc]
call fcn.0040b1b9
push dword [ebp - 0x10]
call fcn.00432783
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
cmp eax, esi
jg 0x40cedd
jne 0x40cee2
cmp ecx, dword [ebp - 0x18]
jle 0x40cee2
mov esi, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401b78
lea ecx, [edi - 0x10]
call fcn.00401b78
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0x40
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401b78
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xd0]
push eax
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40ce66
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x40cf75
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push ebx
push dword [ebp - 0x18]
push edi
push edx
push ecx
call dword [eax + 0x24]
test eax, eax
jne 0x40cf92
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x40cf8f
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push ebx
push dword [ebp - 0x18]
push edi
push edx
push ecx
call dword [eax + 0x24]
test eax, eax
jne 0x40cf92
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401b78
lea ecx, [esi - 0x10]
call fcn.00401b78
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8