Function at 0x46f6f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
mov esi, dword [0x4b0840]
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.004759c0
mov edx, dword [ebp + 8]
test edx, edx
jne 0x46f727
lea edi, [edx + 0x57]
jmp 0x46f9d0
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x4ac1d8]
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 0x46f9d0
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 0x46f7bc
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 6
ja case.0x46f77c.5
jmp dword [eax*4 + 0x46f9ec]
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 0x46f7bc
push 0x18
push eax
push dword [esp + 0x28]
mov ecx, esi
call fcn.00402370
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46f9d0
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 0x46f7bc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46f7bc
push 1
push edi
add eax, 2
mov ecx, esi
push eax
push edi
call fcn.004759c0
cmp eax, 1
je 0x46f823
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.004024d0
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 0x46f881
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46f881
mov word [esi + eax], di
cmp dword [esp + 0x14], 7
jne 0x46f884
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
jne 0x46f87e
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x46f884
inc eax
jmp 0x46f870
mov byte [esi], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x46f887
sub esi, ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004149d0
mov ecx, dword [esp + 0x1c]
push 0
call fcn.00414aa0
test eax, eax
jne 0x46f9d0
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 0x46f7bc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46f7bc
push 1
push edi
add eax, eax
mov ecx, esi
push eax
push edi
call fcn.004759c0
cmp eax, 1
jne 0x46f80f
push edi
push eax
mov ecx, esi
call fcn.004024d0
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 0x46f9d0
movdqu xmm0, xmmword [str.0123456789ABCDEF]
mov al, byte [0x4a604c]
xor edx, edx
xor esi, esi
mov byte [esp + 0x40], al
movdqu xmmword [esp + 0x30], xmm0
cmp dword [esp + 0x10], edx
jbe 0x46f9a2
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 0x46f970
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
mov byte [edx + eax], 0
call fcn.00414aa0
test eax, eax
jne 0x46f9d0
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.0042e020
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc