Function at 0x4aee20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x10
call fcn.005662c8
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4aee44
push eax
call fcn.004ad740
mov dword [ebp - 4], eax
jmp 0x4aee47
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x4aee5f
mov eax, dword [esi + 4]
add eax, 1
jmp 0x4aee64
mov eax, 0x57e81c
lea ecx, [ebp - 8]
push ecx
push edi
lea edx, [ebp - 0x14]
push edx
push edi
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x4aee85
add dword [esi], 1
mov edi, dword [ebp - 4]
lea ebx, [ebp - 0x18]
call fcn.004abdf0
test esi, esi
je 0x4aee99
call fcn.004ab850
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xa
ja case.0x4aeeaf.5
movzx edx, byte [ecx + 0x4af0a0]
jmp dword [edx*4 + 0x4af08c]
mov edx, dword [ebp - 4]
xor ecx, ecx
cmp eax, 2
setne cl
push 0
sub ecx, 1
and ecx, 4
test esi, esi
push ecx
mov eax, esp
mov dword [edx + 0xc], ecx
mov dword [eax], esi
je 0x4aeed8
add dword [esi], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.004ae970
mov ebx, eax
lea edi, [ebp - 0xc]
call fcn.004abdf0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4aef00
mov esi, eax
call fcn.004ab850
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4aef12
mov edi, dword [eax + 4]
mov ebx, dword [eax + 0xc]
add edi, 1
jmp 0x4aef19
xor ebx, ebx
mov edi, 0x57e81c
push ebx
call fcn.005662c8
mov edx, dword [ebp - 4]
add esp, 4
push ebx
push edi
push eax
mov dword [edx + 4], eax
call fcn.00566500
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x4aef4a
mov esi, eax
call fcn.004ab850
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4aef53
call fcn.004ab850
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
mov edi, dword [ebp - 4]
push ecx
mov eax, esp
mov dword [edi + 0xc], 5
mov dword [eax], esi
je 0x4aef75
add dword [esi], 1
mov eax, dword [ebp + 8]
call fcn.004aeb80
push 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.005662c8
add esp, 4
push 8
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [edi + 4], eax
call fcn.00566500
add esp, 0xc
mov dword [edi + 8], 8
jmp 0x4aef4a
test esi, esi
mov edi, dword [ebp - 4]
push ecx
mov eax, esp
mov dword [edi + 0xc], 1
mov dword [eax], esi
je 0x4aefbe
add dword [esi], 1
mov ebx, dword [ebp + 8]
call fcn.004aec30
push 4
mov dword [ebp - 0x1c], eax
call fcn.005662c8
add esp, 4
push 4
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [edi + 4], eax
call fcn.00566500
add esp, 0xc
mov dword [edi + 8], 4
jmp 0x4aef4a
test esi, esi
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
mov eax, esp
mov dword [ebx + 0xc], 2
mov dword [eax], esi
je 0x4af00b
add dword [esi], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004aecd0
mov edi, dword [ebp - 8]
push edi
mov dword [ebp + 8], eax
call fcn.005662c8
mov edx, dword [ebp + 8]
add esp, 4
push edi
push edx
push eax
mov dword [ebx + 4], eax
call fcn.00566500
add esp, 0xc
mov dword [ebx + 8], edi
jmp 0x4aef4a
mov edi, dword [ebp - 4]
test edi, edi
je 0x4af078
cmp dword [edi + 8], 0
jbe 0x4af055
mov eax, dword [edi + 4]
push eax
call fcn.0056612f
add esp, 4
mov eax, dword [edi]
test eax, eax
mov dword [edi + 8], 0
je 0x4af06f
mov esi, eax
call fcn.004ab850
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
push edi
call fcn.0056612f
add esp, 4
test esi, esi
je 0x4af081
call fcn.004ab850
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8