Function at 0x406500
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b55b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x670
mov eax, dword [0x463024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x46b744]
call fcn.00416bd0
mov eax, dword [0x46b744]
mov ecx, 0x20119
cmp dword [0x4695c8], 0
mov dword [eax], eax
mov eax, dword [0x46b744]
mov dword [eax + 4], eax
mov eax, 0x20019
cmovne eax, ecx
mov dword [0x46b748], 0
lea ecx, [ebp - 0x650]
push ecx
push eax
push 0
push str.CLSID645FF040_5081_101B_9F08_00AA002F954EShell
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4067b4
mov esi, dword [ebp - 0x650]
test esi, esi
je 0x4067b4
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041c5f0
add esp, 0xc
mov dword [ebp - 0x658], 0x104
lea eax, [ebp - 0x680]
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x654], 0
push eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x4067a3
push eax
push str._nNumber_of_subkeys:__d_n
call fcn.00402150
xor esi, esi
add esp, 8
cmp dword [ebp - 0x64c], esi
jbe 0x4067a3
nop word [eax + eax]
lea eax, [ebp - 0x680]
mov dword [ebp - 0x65c], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x630]
push eax
push esi
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406796
lea eax, [ebp - 0x630]
push eax
lea eax, [esi + 1]
push eax
push str.__d___s_n
call fcn.004020f0
add esp, 0xc
mov dword [ebp - 0x648], 0
xor eax, eax
mov dword [ebp - 0x638], 0
mov word [ebp - 0x648], ax
lea eax, [ebp - 0x630]
mov dword [ebp - 0x634], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066e2
sub eax, edx
lea ecx, [ebp - 0x648]
sar eax, 1
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.00414d00
mov dword [ebp - 4], 0
cmp dword [0x46b748], 0x7ffffff
mov edi, dword [0x46b744]
je 0x4067d2
mov dword [ebp - 0x664], 0x46b744
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x660], 0
call fcn.0041b024
movups xmm0, xmmword [ebp - 0x648]
mov ecx, eax
mov dword [ebp - 0x660], 0
add esp, 4
mov dword [ecx + 8], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
movq xmm0, qword [ebp - 0x638]
movq qword [ecx + 0x18], xmm0
inc dword [0x46b748]
mov eax, dword [edi + 4]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [edi + 4], ecx
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
inc esi
cmp esi, dword [ebp - 0x64c]
jb 0x406660
mov eax, dword [ebp - 0x650]
test eax, eax
je 0x4067b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.list_too_long
call fcn.00418bbc
int3