Function at 0x406bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e7b3
mov eax, dword fs:[0]
push eax
mov eax, 0x1047c
call fcn.005012e0
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10420], 0x3fff
call fcn.00504db0
mov esi, 0xf
mov dword [ebp - 0x10444], 0
mov dword [ebp - 0x1042c], 0x104
mov dword [ebp - 0x10428], 0
mov dword [ebp - 0x10434], 0
mov dword [ebp - 0x10430], esi
mov byte [ebp - 0x10444], 0
push 0x3fff
lea eax, [ebp - 0x8418]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00504db0
add esp, 0x18
mov dword [ebp - 0x1041c], 0xa
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp + 8]
cmovae edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c96
push 0
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, eax
mov eax, edi
lea ecx, [eax + 1]
mov dword [ebp - 0x10468], ecx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406cc0
sub eax, dword [ebp - 0x10468]
lea ecx, [ebp - 0x210]
push edx
push ecx
inc eax
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10464]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f46
lea eax, [ebp - 0x10460]
push eax
lea eax, [ebp - 0x10448]
push eax
lea eax, [ebp - 0x1044c]
push eax
lea eax, [ebp - 0x10450]
push eax
lea eax, [ebp - 0x10424]
push eax
lea eax, [ebp - 0x10454]
push eax
lea eax, [ebp - 0x10458]
push eax
lea eax, [ebp - 0x10428]
push eax
push 0
lea eax, [ebp - 0x1042c]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x10464]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebx + 4], 0
mov edi, eax
je 0x406d7d
mov edx, dword [ebx]
call fcn.004082c0
mov ecx, dword [ebx]
mov dword [ecx], ecx
mov ecx, dword [ebx]
mov dword [ecx + 4], ecx
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x10424]
test eax, eax
je 0x406f46
test edi, edi
jne 0x406f46
test eax, eax
jle 0x406f46
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x10420], 0x3fff
mov word [ebp - 0x10418], ax
lea eax, [ebp - 0x1041c]
push eax
lea eax, [ebp - 0x8418]
mov dword [ebp - 0x1041c], 0xff
push eax
push 0
push 0
lea eax, [ebp - 0x10420]
push eax
lea eax, [ebp - 0x10418]
push eax
push edi
push dword [ebp - 0x10464]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x406f33
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x8418]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.005008e0
add esp, 4
mov dword [ebp - 0x10468], eax
push 0
push 0
push esi
mov esi, eax
lea eax, [ebp - 0x8418]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, esi
mov dword [ebp - 0x10488], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10474], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e58
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x10488]
call fcn.00405490
lea eax, [ebp - 0x10488]
push eax
lea ecx, [ebp - 0x10444]
call fcn.00408240
mov edx, dword [ebp - 0x10474]
cmp edx, 0x10
jb 0x406eba
mov ecx, dword [ebp - 0x10488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406eb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fd9
push edx
push ecx
call fcn.0050057d
add esp, 8
push 1
push esi
call fcn.0050057d
mov eax, dword [ebx]
add esp, 8
cmp dword [ebx + 4], 0x7ffffff
mov dword [ebp - 0x10468], eax
je 0x406fde
mov dword [ebp - 0x10470], ebx
mov byte [ebp - 4], 2
push 0x20
mov dword [ebp - 0x1046c], 0
call fcn.0050058b
mov esi, eax
add esp, 4
lea eax, [ebp - 0x10444]
mov dword [ebp - 0x1046c], esi
lea ecx, [esi + 8]
push eax
call fcn.00404fc0
mov ecx, dword [ebp - 0x10468]
mov byte [ebp - 4], 1
inc dword [ebx + 4]
mov dword [ebp - 0x1046c], 0
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov dword [eax], esi
inc edi
cmp edi, dword [ebp - 0x10424]
jl 0x406da0
mov esi, dword [ebp - 0x10430]
cmp dword [ebx + 4], 0
push dword [ebp - 0x10464]
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x10
jb 0x406f8b
mov ecx, dword [ebp - 0x10444]
lea edx, [esi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fd9
push edx
push ecx
call fcn.0050057d
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x406fbb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406fb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fd9
push edx
push ecx
call fcn.0050057d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000f2
mov esp, ebp
pop ebp
ret
call fcn.00508673
push str.list_too_long
call fcn.004fe997
int3