Function at 0xa21d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8b6fb
push eax
mov al, byte [0xaf474d]
mov dword fs:[0], esp
sub esp, 0x218
test al, al
push ebp
push esi
push edi
je 0xa21df2
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
push eax
mov eax, dword [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x248]
push edx
mov edx, dword [esp + 0x248]
push eax
mov eax, dword [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x248]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0xa21fec
mov esi, dword [esp + 0x240]
xor edi, edi
cmp esi, edi
je 0xa21fe7
cmp dword [esp + 0x24c], edi
je 0xa21fe7
mov ebp, dword [esp + 0x250]
cmp ebp, edi
je 0xa21fe7
mov eax, dword [esi]
cmp eax, 0x100
jae 0xa21e38
lea edx, [esp + 0x120]
mov dword [esp + 0x220], edx
jmp 0xa21e55
cmp eax, edi
je 0xa21e4e
push eax
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x220], eax
jmp 0xa21e55
mov dword [esp + 0x220], edi
mov eax, dword [ebp]
mov dword [esp + 0x22c], edi
cmp eax, 0x100
jae 0xa21e6c
lea eax, [esp + 0x1c]
jmp 0xa21e7d
cmp eax, edi
je 0xa21e7b
push eax
call fcn.00a1fcf0
add esp, 4
jmp 0xa21e7d
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [ebp]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ebx
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x124], eax
push eax
mov eax, dword [esp + 0x250]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x230]
push eax
mov eax, dword [esp + 0x24c]
push ecx
mov ecx, dword [esp + 0x24c]
push edx
push eax
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x24c]
test eax, eax
je 0xa21eeb
mov edx, dword [esp + 0x14]
mov dword [eax], edx
test edi, edi
jne 0xa21f93
mov eax, dword [esi]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x228]
push ecx
push edx
push eax
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call edi
mov dword [esi], eax
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0xa21f71
cmp eax, 2
je 0xa21f71
cmp eax, 7
jne 0xa21f4d
mov ecx, dword [ebp]
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x124]
push edx
push eax
push ecx
call fcn.00a21ab0
add esp, 0x10
jmp 0xa21f90
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x250]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0xa21f90
mov eax, dword [ebp]
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x124]
push ecx
push edx
push eax
push 0
push 0
call edi
mov dword [ebp], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, dword [esp + 0x11c]
test eax, eax
je 0xa21fb7
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0xa21fb7
push eax
call fcn.00a1fd20
add esp, 4
mov eax, dword [esp + 0x220]
mov dword [esp + 0x22c], 0xffffffff
test eax, eax
je 0xa21fe1
lea edx, [esp + 0x120]
cmp eax, edx
je 0xa21fe1
push eax
call fcn.00a1fd20
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0xa21fec
mov eax, 0x57
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x224
ret 0x20