Function at 0x489e20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [0x4f90f0]
push edi
push 1
push 0
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
mov ecx, esi
push 0
mov dword [esp + 0x30], esi
call fcn.00495fe0
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x489e77
mov ebx, 0x57
mov ecx, ebx
mov eax, dword [0x4f48cc]
test ebx, ebx
mov dword [eax + 0x30], ecx
setne al
mov ecx, dword [esp + 0x24]
movzx eax, al
push eax
call fcn.0043b920
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4f48cc]
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 0x489f0c
mov ebp, dword [esp + 0x58]
mov edi, 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 edi
mov ebx, eax
test ebx, ebx
jne 0x489f02
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x489ecd.5
jmp dword [eax*4 + 0x48a1a8]
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 edi
mov ebx, eax
test ebx, ebx
jne 0x489f02
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00401510
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x489e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x489e53
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x489f02
mov eax, dword [esp + 0x14]
test eax, eax
je 0x489f02
push 1
shr eax, 1
mov ecx, esi
push ebx
add eax, 2
push eax
push ebx
call fcn.00495fe0
cmp eax, 1
je 0x489f76
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, esi
call fcn.00401530
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
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 0x489fd8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x489fd8
shr eax, 1
xor ecx, ecx
mov dword [edi + eax*2], ecx
cmp dword [esp + 0x18], 7
jne 0x489fdd
mov eax, edi
lea ecx, [ebx + 0xa]
cmp word [eax], 0
jne 0x489fd3
cmp word [eax + 2], 0
mov word [eax], cx
je 0x489fdd
add eax, 2
jmp 0x489fc3
xor eax, eax
mov word [edi], ax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x489fe0
sub edi, ecx
sar edi, 1
cmp byte [esi + 0x17], al
jne 0x489ff9
mov ebp, dword [esi + 0xc]
jmp 0x489ffb
mov ebp, esi
cmp byte [ebp + 0x17], 1
jne 0x48a013
test byte [ebp + 0x15], 8
je 0x48a00e
mov ecx, ebp
call fcn.00401450
add ebp, 0xc
jmp 0x48a018
mov ebp, 0x4fb9c0
lea eax, [edi + edi]
mov dword [ebp], eax
cmp byte [esi + 0x17], 0
jne 0x48a027
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x48a053
cmp dword [0x4f9a60], 0
je 0x48a053
push ecx
mov ecx, 0x4f9a54
call fcn.00405900
test eax, eax
jne 0x489f0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
and byte [esi + 0x15], 0x86
jmp 0x489f0c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x489f02
mov eax, dword [esp + 0x14]
test eax, eax
je 0x489f02
push 1
push ebx
add eax, eax
mov ecx, esi
push eax
push ebx
call fcn.00495fe0
cmp eax, 1
jne 0x489f60
push ebx
push eax
mov ecx, esi
call fcn.00401530
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 edi
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x489f0c
movups xmm0, xmmword [str.0123456789ABCDEF]
mov ax, word [0x4ecc3c]
xor edx, edx
mov ebp, dword [esp + 0x50]
xor edi, edi
movups xmmword [esp + 0x28], xmm0
mov word [esp + 0x48], ax
movups xmm0, xmmword [0x4ecc2c]
movups xmmword [esp + 0x38], xmm0
cmp dword [esp + 0x14], edx
jbe 0x48a14e
mov esi, dword [esp + 0x54]
nop word [eax + eax]
movzx ecx, byte [edx + esi]
inc edx
mov eax, ecx
shr ecx, 4
and eax, 0xf
movzx eax, word [esp + eax*2 + 0x28]
mov word [ebp + edi*2 + 2], ax
movzx eax, word [esp + ecx*2 + 0x28]
mov word [ebp + edi*2], ax
add edi, 2
cmp edx, dword [esp + 0x14]
jb 0x48a120
mov esi, dword [esp + 0x20]
xor eax, eax
mov word [ebp + edi*2], ax
cmp byte [esi + 0x17], al
jne 0x48a15d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x48a188
cmp dword [0x4f9a60], eax
je 0x48a188
push ecx
mov ecx, 0x4f9a54
call fcn.00405900
test eax, eax
jne 0x489e51
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
and byte [esi + 0x15], 0x86
jmp 0x489e51
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
jmp 0x489e51