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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ce92
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000cca9
xor eax, eax
jmp 0x1000ce95
cmp dword [ebp - 0x24], 0
jbe 0x1000ce92
cmp dword [ebp - 0x40], 0
jbe 0x1000ce92
cmp dword [ebp - 0x20], 0
jbe 0x1000ce92
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x28]
add edx, 0x64
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x50], 0xc
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0xc]
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x24]
lea ecx, [edx + eax + 0xa]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x88
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x1c], 0
jmp 0x1000cd8b
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jae 0x1000ce65
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x28]
add eax, 0x64
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [ebp - 0x2c], 1
jne 0x1000cdfd
mov edx, dword [ebp - 0x58]
mov byte [edx], 0
cmp dword [ebp - 0x2c], 4
jne 0x1000ce09
mov eax, dword [ebp - 0x58]
mov byte [eax], 1
cmp dword [ebp - 0x2c], 3
jne 0x1000ce15
mov ecx, dword [ebp - 0x58]
mov byte [ecx], 2
cmp dword [ebp - 0x2c], 2
jne 0x1000ce21
mov edx, dword [ebp - 0x58]
mov byte [edx], 3
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
jmp 0x1000cd82
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0x42
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret