Function at 0x46e210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
mov esi, dword [0x4ae860]
push edi
push 1
push 0
push 0xffffffffffffffff
mov dword [esp + 0x38], ecx
mov ecx, esi
push 0
mov dword [esp + 0x2c], esi
call fcn.004744e0
mov edx, dword [ebp + 8]
test edx, edx
jne 0x46e247
lea edi, [edx + 0x57]
jmp 0x46e4f0
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x4aa1d8]
mov eax, dword [eax + 0xb0]
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x46e4f0
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x46e2dc
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 6
ja case.0x46e29c.5
jmp dword [eax*4 + 0x46e50c]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
push 0
push 0
push eax
push dword [esp + 0x20]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
mov edi, eax
test edi, edi
jne 0x46e2dc
push 0x18
push eax
push dword [esp + 0x28]
mov ecx, esi
call fcn.00401330
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46e4f0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov eax, dword [ebp + 0x10]
push 0
push 0
push 0
push eax
push dword [esp + 0x20]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
mov edi, eax
test edi, edi
jne 0x46e2dc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46e2dc
push 1
push edi
add eax, 2
mov ecx, esi
push eax
push edi
call fcn.004744e0
cmp eax, 1
je 0x46e343
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401490
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x46e3a1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46e3a1
mov word [esi + eax], di
cmp dword [esp + 0x14], 7
jne 0x46e3a4
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
jne 0x46e39e
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x46e3a4
inc eax
jmp 0x46e390
mov byte [esi], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x46e3a7
sub esi, ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00413850
mov ecx, dword [esp + 0x1c]
push 0
call fcn.00413920
test eax, eax
jne 0x46e4f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x46e2dc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46e2dc
push 1
push edi
add eax, eax
mov ecx, esi
push eax
push edi
call fcn.004744e0
cmp eax, 1
jne 0x46e32f
push edi
push eax
mov ecx, esi
call fcn.00401490
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
push ecx
mov byte [eax], 0
add eax, dword [esp + 0x14]
push eax
push edi
push edi
push dword [ebp + 0x10]
mov dword [esp + 0x38], eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x46e4f0
movdqu xmm0, xmmword [str.0123456789ABCDEF]
mov al, byte [0x4a3c5c]
xor edx, edx
xor esi, esi
mov byte [esp + 0x40], al
movdqu xmmword [esp + 0x30], xmm0
cmp dword [esp + 0x10], edx
jbe 0x46e4c2
mov edi, dword [esp + 0x18]
lea esp, [esp]
mov eax, dword [esp + 0x24]
movzx ecx, byte [esi + eax]
inc esi
mov eax, ecx
shr ecx, 4
and eax, 0xf
and ecx, 0xf
movzx eax, byte [esp + eax + 0x30]
mov byte [edx + edi + 1], al
movzx eax, byte [esp + ecx + 0x30]
mov byte [edx + edi], al
add edx, 2
cmp esi, dword [esp + 0x10]
jb 0x46e490
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
mov byte [edx + eax], 0
call fcn.00413920
test eax, eax
jne 0x46e4f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x65e
mov ecx, dword [esp + 0x2c]
test edi, edi
push edi
setne al
movzx eax, al
push eax
call fcn.0042cb40
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc