Function at 0x4aec5d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
push edx
push ecx
call fcn.004af2e3
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0xffffffff
je 0x4aeea5
push 0x3fff
call fcn.0047c917
add esp, 4
mov dword [ebp - 0xc], eax
push 4
call fcn.0047c917
add esp, 4
mov dword [ebp - 0x18], eax
push 4
call fcn.0047c917
add esp, 4
mov esi, eax
push 0
push 0
push esi
call fcn.0047cada
add esp, 0xc
push 0x3fff
push 0
push dword [ebp - 0x18]
call fcn.0047cada
add esp, 0xc
push ebx
call fcn.0047154c
add esp, 4
mov ebx, eax
push dword [ebp - 0x18]
call fcn.0047c979
add esp, 4
push eax
push dword [ebp - 0xc]
call fcn.0047c979
add esp, 4
push eax
push esi
call fcn.0047c979
add esp, 4
push eax
push 0
push ebx
push dword [ebp - 0x24]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov edi, eax
push ebx
call fcn.00471fe4
add esp, 4
mov eax, edi
cmp eax, 0
jne 0x4aee95
mov dword [ebp - 0x14], 0x4f05b8
push 0
push esi
call fcn.0047cac1
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 7
je 0x4aed6f
cmp eax, 2
je 0x4aedf1
cmp eax, 1
je 0x4aedf1
cmp eax, 3
je 0x4aedf1
cmp eax, 4
je 0x4aee4a
jmp 0x4aee65
mov esi, 0
push 0
push dword [ebp - 0x18]
call fcn.0047cac1
add esp, 8
mov ebx, eax
sub ebx, 1
jmp 0x4aedeb
push esi
push dword [ebp - 0xc]
call fcn.0047ca4b
add esp, 8
cmp eax, 0
jne 0x4aedc4
push 0
push dword [ebp - 0x18]
call fcn.0047cac1
add esp, 8
sub eax, 1
cmp esi, eax
jne 0x4aedaf
jmp 0x4aedc2
push 0x4f05e4
push dword [ebp - 0x14]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x4aede8
push esi
push dword [ebp - 0xc]
call fcn.0047ca4b
add esp, 8
push eax
call fcn.004708c9
add esp, 4
push eax
push dword [ebp - 0x14]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x14], eax
add esi, 1
cmp esi, ebx
jle 0x4aed88
jmp 0x4aee65
mov esi, 0
push 0
push dword [ebp - 0x18]
call fcn.0047cac1
add esp, 8
mov ebx, eax
sub ebx, 1
jmp 0x4aee44
push esi
push dword [ebp - 0xc]
call fcn.0047ca4b
add esp, 8
cmp eax, 0
jne 0x4aee1d
jmp 0x4aee48
push esi
push dword [ebp - 0xc]
call fcn.0047ca4b
add esp, 8
push eax
call fcn.004708c9
add esp, 4
push eax
push dword [ebp - 0x14]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x14], eax
add esi, 1
cmp esi, ebx
jle 0x4aee0a
jmp 0x4aee65
push 0
push dword [ebp - 0xc]
call fcn.0047cac1
add esp, 8
push eax
call fcn.00470915
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x4aee65
cmp dword [ebp + 0x18], 0
je 0x4aee93
push dword [ebp - 0x14]
push 0x4f05d4
push dword [ebp - 0x20]
call fcn.00470915
add esp, 4
push eax
call fcn.00470d96
add esp, 8
push eax
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x4aee9a
mov dword [0x4f05b4], eax
push dword [ebp - 0x24]
call fcn.004af35e
add esp, 4
cmp dword [ebp - 0x20], 2
jne 0x4af033
mov dword [ebp - 0x10], 0x4f05b8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov edi, 0x4f05b8
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
jmp 0x4aeff1
push 0x4f05f4
push 1
mov eax, dword [ebp - 8]
add eax, 1
push eax
push dword [ebp - 4]
call fcn.004a9858
add esp, 0xc
push eax
call fcn.00470c44
add esp, 8
cmp eax, 0
jne 0x4aefca
mov eax, dword [ebp - 8]
add eax, 1
mov esi, eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
jmp 0x4aefc0
mov dword [ebp - 8], esi
push 0x4f05f4
push 1
mov eax, esi
add eax, 1
push eax
push dword [ebp - 4]
call fcn.004a9858
add esp, 0xc
push eax
call fcn.00470c44
add esp, 8
cmp eax, 0
jne 0x4aef9e
push edi
call fcn.0046e636
add esp, 4
mov ebx, eax
push 0x4f05b8
push ebx
call fcn.00470c44
add esp, 8
cmp eax, 0
je 0x4aef6c
push ebx
push dword [ebp - 0x10]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x4aef97
push 0x4f05f4
push edi
push 0x4f05f4
call fcn.00470d96
add esp, 8
push eax
call fcn.00470d96
add esp, 8
push eax
push dword [ebp - 0x10]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x10], eax
mov edi, 0x4f05b8
jmp 0x4aefc8
push 1
mov eax, esi
add eax, 1
push eax
push dword [ebp - 4]
call fcn.004a9858
add esp, 0xc
push eax
push edi
call fcn.00470d96
add esp, 8
mov edi, eax
add esi, 1
cmp esi, ebx
jle 0x4aef14
jmp 0x4aefed
push 1
mov eax, dword [ebp - 8]
add eax, 1
push eax
push dword [ebp - 4]
call fcn.004a9858
add esp, 0xc
push eax
push dword [ebp - 0x10]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x10], eax
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jle 0x4aeed6
push 0x4f05b8
push edi
call fcn.00470c44
add esp, 8
cmp eax, 0
je 0x4af02d
push edi
push 0x4f05f4
call fcn.00470d96
add esp, 8
push eax
push dword [ebp - 0x10]
call fcn.00470d96
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x4af038
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret