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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x58], ecx
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0x58]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001114f
mov dword [ebp - 0x3c], 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10010f66
xor eax, eax
jmp 0x10011152
cmp dword [ebp - 0x28], 0
jbe 0x1001114f
cmp dword [ebp - 0x20], 0
jbe 0x1001114f
cmp dword [ebp - 0x2c], 0
jbe 0x1001114f
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x64
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], 0xc
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax + 0xc]
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x28]
lea ecx, [edx + eax + 0xa]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
mov byte [edx], 0xa2
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], 0
jmp 0x10011048
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x28]
jae 0x10011122
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
add eax, 0x64
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [ebp - 0x1c], 1
jne 0x100110ba
mov edx, dword [ebp - 0x44]
mov byte [edx], 0
cmp dword [ebp - 0x1c], 4
jne 0x100110c6
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
cmp dword [ebp - 0x1c], 3
jne 0x100110d2
mov ecx, dword [ebp - 0x44]
mov byte [ecx], 2
cmp dword [ebp - 0x1c], 2
jne 0x100110de
mov edx, dword [ebp - 0x44]
mov byte [edx], 3
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0x44], ecx
jmp 0x1001103f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0x42
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret