Function at 0x4a63e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4fc2a8]
push 1
push 0
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
mov ecx, edi
push 0
mov dword [esp + 0x30], edi
call fcn.004b4bf0
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x4a6414
lea ebx, [edx + 0x57]
jmp 0x4a672d
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4f8174]
mov eax, dword [eax + 0xd0]
or eax, 0x20019
push eax
push 0
push dword [esp + 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4a672d
mov ebp, dword [esp + 0x58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4a64a3
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x4a646e.5
jmp dword [eax*4 + 0x4a674c]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ebp
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4a64a3
push dword [esp + 0x1c]
mov ecx, edi
call fcn.00401600
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a672d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4a64a3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a64a3
push 1
shr eax, 1
mov ecx, edi
push ebx
add eax, 2
push eax
push ebx
call fcn.004b4bf0
cmp eax, 1
je 0x4a6506
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret 0xc
push 0
push 1
mov ecx, edi
call fcn.00401690
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4a656d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a656d
shr eax, 1
xor ecx, ecx
mov dword [esi + eax*2], ecx
cmp dword [esp + 0x18], 7
jne 0x4a6572
mov eax, esi
lea edx, [ebx + 0xa]
cmp word [eax], 0
lea ecx, [eax + 2]
jne 0x4a6569
cmp word [ecx], 0
mov word [eax], dx
mov eax, ecx
je 0x4a6572
jmp 0x4a6553
mov eax, ecx
jmp 0x4a6553
xor eax, eax
mov word [esi], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a6575
sub esi, ecx
sar esi, 1
cmp byte [edi + 0x17], al
jne 0x4a658e
mov ebp, dword [edi + 0xc]
jmp 0x4a6590
mov ebp, edi
cmp byte [ebp + 0x17], 1
jne 0x4a65a8
test byte [ebp + 0x15], 8
je 0x4a65a3
mov ecx, ebp
call fcn.004014f0
add ebp, 0xc
jmp 0x4a65ad
mov ebp, 0x4feb88
lea eax, [esi + esi]
mov dword [ebp], eax
cmp byte [edi + 0x17], 0
jne 0x4a65bc
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4a65e3
cmp dword [0x4fd77c], 0
je 0x4a65e3
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
test eax, eax
je 0x4a6712
jmp 0x4a672d
and byte [edi + 0x15], 0x86
jmp 0x4a672d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call esi
mov ebx, eax
test ebx, ebx
jne 0x4a64a3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a64a3
push 1
push ebx
add eax, eax
mov ecx, edi
push eax
push ebx
call fcn.004b4bf0
cmp eax, 1
jne 0x4a64f0
push ebx
push eax
mov ecx, edi
call fcn.00401690
xor ecx, ecx
mov dword [esp + 0x50], eax
mov word [eax], cx
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push ebx
push ebp
push dword [esp + 0x24]
mov dword [esp + 0x6c], eax
call esi
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4a672d
movups xmm0, xmmword [str.0123456789ABCDEF]
mov ax, word [0x4f0374]
xor edx, edx
mov ebp, dword [esp + 0x50]
xor esi, esi
movups xmmword [esp + 0x28], xmm0
mov word [esp + 0x48], ax
movups xmm0, xmmword [0x4f0364]
movups xmmword [esp + 0x38], xmm0
cmp dword [esp + 0x14], edx
jbe 0x4a66de
mov edi, dword [esp + 0x54]
nop word [eax + eax]
movzx ecx, byte [edx + edi]
inc edx
mov eax, ecx
shr ecx, 4
and eax, 0xf
movzx eax, word [esp + eax*2 + 0x28]
mov word [ebp + esi*2 + 2], ax
movzx eax, word [esp + ecx*2 + 0x28]
mov word [ebp + esi*2], ax
add esi, 2
cmp edx, dword [esp + 0x14]
jb 0x4a66b0
mov edi, dword [esp + 0x20]
xor eax, eax
mov word [ebp + esi*2], ax
cmp byte [edi + 0x17], al
jne 0x4a66ed
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x4a65e3
cmp dword [0x4fd77c], eax
je 0x4a65e3
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
test eax, eax
jne 0x4a672d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret 0xc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
mov ecx, dword [esp + 0x24]
test ebx, ebx
push ebx
setne al
movzx eax, al
push eax
call fcn.0044d820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc