Function at 0x10006c20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x24]
push esi
push eax
push 0xf003f
xor esi, esi
lea eax, [ecx + 4]
push esi
push eax
push dword [ecx + 0x108]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006dfc
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10006c79
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10006dfc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10006dfc
cmp dword [ebp - 4], esi
jbe 0x10006dfc
push ebx
lea ebx, [eax + 1]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x20]
add eax, 0x64
mov dword [ebp - 0xc], ebx
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea esi, [eax + 1]
mov dword [ebp - 0x44], eax
add esi, ebx
imul esi, ecx
add esi, 0x16
push esi
push 0x40
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x30], edi
call fcn.100146a0
movq xmm0, qword [ebp - 0x48]
mov byte [edi], 0x84
movq qword [edi + 1], xmm0
mov dword [edi + 9], ebx
push dword [ebp - 4]
call fcn.1001643e
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.1001643e
xor ebx, ebx
mov dword [ebp - 0x14], eax
add esp, 0x14
lea esi, [edi + 0xd]
cmp dword [ebp - 0x18], ebx
jbe 0x10006dd9
mov eax, dword [ebp - 8]
mov edi, esi
sub edi, eax
jmp 0x10006d23
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push 0
push eax
call fcn.100146a0
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x14]
call fcn.100146a0
mov eax, dword [ebp - 0x1c]
add esp, 0x18
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add eax, 0x64
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x10006d7a
mov byte [esi], 0
mov eax, dword [ebp - 0x10]
cmp eax, 4
jne 0x10006d85
mov byte [esi], 1
mov eax, dword [ebp - 0x10]
cmp eax, 3
jne 0x10006d90
mov byte [esi], 2
mov eax, dword [ebp - 0x10]
cmp eax, 2
jne 0x10006d98
mov byte [esi], 3
mov eax, dword [ebp - 8]
inc esi
inc edi
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x10006da0
mov eax, dword [ebp - 0x28]
add esi, dword [ebp - 0x2c]
inc eax
add edi, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
push esi
call fcn.10014120
mov eax, dword [ebp - 0x28]
inc ebx
inc eax
add esp, 0xc
add esi, eax
add edi, eax
cmp ebx, dword [ebp - 0x18]
jb 0x10006d20
mov edi, dword [ebp - 0x30]
push dword [ebp - 8]
call fcn.10016449
push dword [ebp - 0x14]
call fcn.10016449
add esp, 8
push 0x42
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret