Function at 0x46b6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [0x4a6c10]
push edi
mov ecx, esi
mov ebx, eax
mov dword [esp + 0x18], esi
call fcn.00412600
test ebx, ebx
jne 0x46b71e
mov ebx, 0x57
mov eax, ebx
mov ecx, dword [0x4a3440]
test ebx, ebx
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp + 8]
setne dl
movzx eax, dl
push eax
push ecx
call fcn.0042ce00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4a3440]
mov edx, dword [ecx + 0xac]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
or edx, 0x20019
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x46b7be
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call edi
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
jne 0x46b7b3
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 6
ja case.0x46b778.5
jmp dword [eax*4 + 0x46ba64]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], 4
call edi
mov ebx, eax
test ebx, ebx
jne 0x46b7b3
push 0x18
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, esi
call fcn.004010d0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x46b6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46b6fa
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x10]
push edx
push ecx
push ecx
push ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
jne 0x46b7b3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b7b3
push 1
push ebx
add eax, 2
push eax
push ebx
push esi
call fcn.004715e0
cmp eax, 1
je 0x46b820
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x17], 0
jne 0x46b829
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x46b836
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x46b84f
test byte [esi + 0x15], 4
je 0x46b84a
mov eax, esi
call fcn.0042d7f0
mov esi, dword [esi + 8]
jmp 0x46b861
cmp al, 2
jne 0x46b85c
call fcn.00401000
mov esi, eax
jmp 0x46b861
mov esi, 0x4a857d
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x46b8b1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b8b1
mov word [eax + esi], bx
cmp dword [esp + 0x14], 7
jne 0x46b8b4
mov eax, esi
lea esp, [esp]
cmp byte [eax], 0
jne 0x46b8ae
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x46b8b4
inc eax
jmp 0x46b8a0
mov byte [esi], 0
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46b8c0
mov esi, dword [esp + 0x18]
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00412aa0
push 0
mov eax, esi
call fcn.00412ba0
test eax, eax
jne 0x46b7be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x10]
push edx
push ecx
push ecx
push ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
jne 0x46b7b3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b7b3
push 1
push ebx
lea edx, [eax + eax]
push edx
push ebx
push esi
call fcn.004715e0
cmp eax, 1
je 0x46b946
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x17], 0
jne 0x46b94f
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x46b95c
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x46b975
test byte [esi + 0x15], 4
je 0x46b970
mov eax, esi
call fcn.0042d7f0
mov esi, dword [esi + 8]
jmp 0x46b987
cmp al, 2
jne 0x46b982
call fcn.00401000
mov esi, eax
jmp 0x46b987
mov esi, 0x4a857d
mov byte [esi], 0
mov ecx, dword [esp + 0x10]
lea eax, [esi + ecx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
push 0
push eax
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x46b7be
mov eax, dword [str.0123456789ABCDEF]
mov edx, dword [0x49d18c]
mov dword [esp + 0x24], eax
mov eax, dword [0x49d190]
xor ecx, ecx
mov dword [esp + 0x28], edx
mov edx, dword [0x49d194]
mov dword [esp + 0x2c], eax
mov al, byte [0x49d198]
xor edi, edi
mov dword [esp + 0x30], edx
mov byte [esp + 0x34], al
cmp dword [esp + 0x10], ecx
jbe 0x46ba2c
jmp 0x46ba00
mov edx, dword [esp + 0x20]
movzx eax, byte [edi + edx]
mov edx, eax
shr eax, 4
and edx, 0xf
mov dl, byte [esp + edx + 0x24]
and eax, 0xf
mov al, byte [esp + eax + 0x24]
mov byte [ecx + esi + 1], dl
mov byte [ecx + esi], al
inc edi
add ecx, 2
cmp edi, dword [esp + 0x10]
jb 0x46ba00
mov eax, dword [esp + 0x18]
push 0
mov byte [ecx + esi], 0
call fcn.00412ba0
test eax, eax
jne 0x46b6f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
jmp 0x46b6f8