Function at 0x40cec0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eaa6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
jb 0x40cf18
mov eax, dword [eax]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x23c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40d110
mov esi, dword [ebp - 0x23c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x24c], edi
lea edx, [ebp - 0x25c]
push edx
mov edx, dword [ebp - 0x24c]
push edi
push edi
push edi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push edx
push esi
mov dword [ebp - 0x254], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40d0d3
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40d0bc
xor ebx, ebx
jmp 0x40cfc0
cmp dword [ebx + esi + 0x14], 8
mov ecx, dword [ebx + esi + 0x10]
lea eax, [ebx + esi]
jb 0x40cfd0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0047d801
add esp, 0xc
test eax, eax
je 0x40d026
mov eax, dword [ebp - 0x250]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
cmp edi, eax
jb 0x40cfc0
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
xor edi, edi
inc dword [ebp - 0x24c]
jmp 0x40cf5d
xor edi, edi
mov ebx, 7
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
jmp 0x40d050
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40d050
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00408600
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
push 0x4c4578
mov edx, esi
push edx
push eax
call fcn.0040c890
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], 8
jb 0x40d0a5
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x238], dx
xor edi, edi
inc dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
jmp 0x40cf5d
cmp esi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d0ec
mov eax, dword [ebp - 0x23c]
push eax
call esi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x40d10c
push eax
call esi
mov dword [ebp - 0x248], edi
mov al, 1
jmp 0x40d119
mov dword [ebp - 4], 0xffffffff
xor al, al
mov dword [ebp - 0x244], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret