Function at 0xa217a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8b6c6
push eax
mov al, byte [0xaf474d]
mov dword fs:[0], esp
sub esp, 0x214
test al, al
push ebx
push ebp
push esi
push edi
je 0xa21803
mov eax, dword [esp + 0x248]
mov ecx, dword [esp + 0x244]
mov edx, dword [esp + 0x240]
push eax
mov eax, dword [esp + 0x240]
push ecx
mov ecx, dword [esp + 0x240]
push edx
mov edx, dword [esp + 0x240]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0xa21a88
mov edi, dword [esp + 0x244]
mov ebx, dword [esp + 0x248]
xor ebp, ebp
cmp edi, ebp
je 0xa21825
cmp ebx, ebp
jne 0xa21825
mov eax, 0x57
jmp 0xa21a88
mov esi, dword [esp + 0x238]
cmp esi, ebp
jne 0xa2183c
mov dword [esp + 0x11c], ebp
jmp 0xa218be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x14], eax
call fcn.00a7e07a
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
add esp, 4
cmp ebp, 0xff
jg 0xa21887
push 0
push 0
lea eax, [esp + 0x24]
push 0x100
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
test eax, eax
je 0xa21887
lea ecx, [esp + 0x1c]
mov dword [esp + 0x11c], ecx
jmp 0xa218aa
lea ebp, [ebp + ebp*2 + 3]
push ebp
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x11c], eax
push 0
push 0
push ebp
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
mov edi, dword [esp + 0x244]
cmp edi, ebp
mov dword [esp + 0x22c], ebp
jne 0xa21948
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x11c]
push ebx
lea eax, [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x240]
push ecx
push edx
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0xa21907
cmp eax, 2
je 0xa21907
cmp eax, 7
jne 0xa2190d
mov ecx, dword [ebx]
shl ecx, 1
mov dword [ebx], ecx
mov ecx, dword [esp + 0x240]
cmp ecx, ebp
je 0xa2191a
mov dword [ecx], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x22c], 0xffffffff
cmp eax, ebp
je 0xa21941
lea edx, [esp + 0x1c]
cmp eax, edx
je 0xa21941
push eax
call fcn.00a1fd20
add esp, 4
mov eax, esi
jmp 0xa21a88
mov eax, dword [ebx]
cmp eax, 0x100
mov dword [esp + 0x14], eax
jae 0xa2195e
lea eax, [esp + 0x120]
jmp 0xa2196f
cmp eax, ebp
je 0xa2196d
push eax
call fcn.00a1fcf0
add esp, 4
jmp 0xa2196f
xor eax, eax
mov dword [esp + 0x220], eax
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
mov ecx, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x244]
lea edx, [esp + 0x20]
mov byte [esp + 0x234], 1
push edx
mov edx, dword [esp + 0x240]
push eax
push ecx
push edx
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x240]
test eax, eax
je 0xa219ca
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0xa21a2f
cmp ecx, 1
je 0xa21a14
cmp ecx, 2
je 0xa21a14
cmp ecx, 7
jne 0xa219f7
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
push esi
call fcn.00a21ab0
add esp, 0x10
mov dword [ebx], eax
jmp 0xa21a2f
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x220]
mov dword [ebx], ecx
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 0xa21a2f
mov eax, dword [ebx]
shr eax, 1
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [eax + eax]
mov dword [ebx], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x220]
mov byte [esp + 0x22c], 0
test eax, eax
je 0xa21a5d
lea edx, [esp + 0x120]
cmp eax, edx
je 0xa21a5d
push eax
call fcn.00a1fd20
add esp, 4
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x22c], 0xffffffff
test eax, eax
je 0xa21a84
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0xa21a84
push eax
call fcn.00a1fd20
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 0x18