Function at 0x406ccd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x20119
xor edi, edi
push edi
push 0x4013e8
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406ea7
push esi
push 0x44
pop esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x4013cc
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d3e
cmp dword [ebp - 4], esi
jne 0x406d3e
cmp dword [ebp - 0x5c], 0xaeaeaeae
jne 0x406d3e
test dword [ebp - 0x44], 0xfffffee0
jne 0x406d3e
inc edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x406ea6
push 0x11
pop ecx
push 0x11
mov esi, ebx
lea edi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea esi, [ebp - 0x5c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4013b0
mov ecx, ebx
call fcn.0040697a
cmp dword [ebp + 8], esi
je 0x406ea6
mov eax, dword [ebx + 0x44]
cmp eax, esi
je 0x406ea6
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x9c]
je 0x406d9f
push dword [ebx + 0x7c]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x98]
je 0x406db3
push dword [ebx + 0x7c]
push eax
push 1
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x94]
je 0x406dc7
push dword [ebx + 0x7c]
push eax
push 2
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x90]
je 0x406ddb
push dword [ebx + 0x7c]
push eax
push 3
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x8c]
push 4
pop edi
je 0x406df1
push dword [ebx + 0x7c]
push eax
push edi
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x80]
je 0x406e02
push dword [ebx + 0x7c]
push eax
push 6
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x7c]
je 0x406e13
push dword [ebx + 0x7c]
push eax
push 7
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x78]
je 0x406e95
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x406e95
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x406e95
add eax, eax
cmp eax, ecx
jne 0x406e95
lea eax, [ebp + 8]
push eax
push 0x20119
push 0
push 0x401350
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406e95
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x40133c
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406e7e
mov eax, dword [ebp - 0xc]
not eax
cmp eax, dword [ebx + 0x28]
jne 0x406e7e
xor esi, esi
inc esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406e95
push dword [ebx + 0x7c]
push 0
push 8
call dword [ebx + 0x44]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x74]
je 0x406ea6
push dword [ebx + 0x7c]
push eax
push 9
call dword [ebx + 0x44]
pop esi
pop edi
pop ebx
leave
ret 4