Function at 0x406b81
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xb0
mov eax, 0x57cebc
call fcn.00552eab
mov ebx, ecx
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
xor edi, edi
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x104
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], edi
call fcn.00409574
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00403ca0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x94], eax
call fcn.00403d80
mov esi, eax
mov dword [ebp - 0xa4], esi
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
cmp dword [esi + 0x14], 8
jb 0x406c0e
mov eax, dword [esi]
jmp 0x406c10
mov eax, esi
lea ecx, [ebp - 0x90]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
push edi
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x406e2b
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x75], al
jb 0x406c49
mov ecx, dword [esi]
jmp 0x406c4b
mov ecx, esi
call fcn.0040ad0b
cmp dword [esi + 0x14], 8
jb 0x406c5a
mov eax, dword [esi]
jmp 0x406c5c
mov eax, esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403b10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5c]
push eax
lea edi, [ebx + 0x38]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa8], edi
push eax
mov ecx, edi
call fcn.00409730
mov ebx, dword [ebp - 0xa0]
cmp ebx, dword [edi]
je 0x406c9e
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040a66d
test eax, eax
jns 0x406ca0
mov ebx, dword [edi]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004043b0
cmp ebx, dword [edi]
je 0x406cd3
mov ebx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
ja 0x406d2c
jb 0x406e25
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebx]
ja 0x406d2c
jmp 0x406e25
push 0x20
call fcn.00417f38
mov ebx, eax
pop ecx
mov dword [ebp - 0xb0], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x406d04
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov byte [ebx + 0x18], 1
jmp 0x406d06
xor ebx, ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x406e25
mov esi, dword [ebp + 0x10]
mov edi, ebx
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xa4]
mov edi, dword [ebp - 0xa8]
mov byte [ebp - 0x75], 1
push dword [ebp - 0xac]
lea ecx, [ebp - 0x2c]
call fcn.00403b10
mov byte [ebp - 4], 4
push 0x5c9b58
call fcn.00403bf0
pop ecx
push eax
push 0x5c9b58
lea ecx, [ebp - 0x2c]
call fcn.00405210
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405351
lea ecx, [ebp - 0x2c]
call fcn.00403d80
cmp dword [eax + 0x14], 8
jb 0x406d77
mov eax, dword [eax]
lea ecx, [ebp - 0x88]
push ecx
push 0x20019
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406e09
mov ecx, dword [ebp - 0x7c]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00406abf
mov eax, dword [ebp - 0x90]
mov dword [ebx], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 4], eax
cmp dword [esi + 0x14], 8
jb 0x406dc2
mov ecx, dword [esi]
jmp 0x406dc4
mov ecx, esi
call fcn.0040ad0b
cmp dword [esi + 0x14], 8
jb 0x406dd3
mov eax, dword [esi]
jmp 0x406dd5
mov eax, esi
push eax
lea ecx, [ebp - 0x74]
call fcn.00403b10
mov byte [ebp - 4], 5
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0040947a
mov dword [eax], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004043b0
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406e19
cmp byte [ebp - 0x75], 0
je 0x406e19
push 0x20
push ebx
call fcn.00552e2c
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004043b0
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x7c]
inc dword [ebp - 0x84]
mov edi, dword [ebp - 0x84]
test eax, eax
je 0x406bf6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004043b0
call fcn.00552e55
ret 0xc