Function at 0x4a0ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9d20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], eax
test esi, esi
je 0x4a0d69
test eax, eax
je 0x4a0d69
call fcn.004a00a0
test eax, eax
jne 0x4a0b21
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a0d69
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0
push esi
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4a0b72
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x38]
mov ecx, edi
push 1
call fcn.00409aa0
xor eax, eax
mov dword [edi + 0xc], 0
cmp esi, 2
sete al
jmp 0x4a0d6b
cmp dword [ebp - 0x28], 7
je 0x4a0b88
push 0x70c
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a0d69
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], 0
and eax, 0xfffffffe
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x14], eax
call fcn.00409a00
test eax, eax
jne 0x4a0bc1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4a0d69
push eax
jmp 0x4a0d60
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push dword [ebp - 0x2c]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4a0c26
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x38]
push 1
call fcn.00409aa0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xc], 0
xor eax, eax
cmp edi, 2
sete al
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x4a0d6b
push esi
call dword [0x4f90e8]
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x4a0d6b
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.FamRT::TSmallListEx0_class_FamRT::CUnicodeString__class_FamRT::CNoMTProtection_.0
call fcn.00494a10
mov edi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], vtable.FamRT::TSmallList1_class_FamRT::CUnicodeString_.0
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4a0c60
lea ecx, [ebp - 0x24]
call fcn.00434b50
jmp 0x4a0d69
mov ecx, dword [ebp - 0x34]
mov eax, 0
shr ecx, 1
mov dword [ebp - 0x3c], ecx
mov word [esi + ecx*2 - 2], ax
je 0x4a0d0e
mov esi, edi
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a0c80
sub esi, edx
sar esi, 1
je 0x4a0d0b
cmp esi, ecx
jae 0x4a0d99
push 0x4d88a4
push 0x14
call fcn.004a55e9
mov edi, eax
add esp, 8
test edi, edi
je 0x4a0d88
lea eax, [edi + 8]
mov dword [edi], edi
mov ecx, eax
mov dword [edi + 4], edi
mov dword [ebp - 0x40], eax
call fcn.004941b0
cmp edi, dword [edi + 4]
jne 0x4a0cdc
lea eax, [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
inc dword [ebp - 0x18]
push edi
call fcn.00494610
test eax, eax
je 0x4a0d4e
mov ecx, dword [ebp - 0x3c]
lea edi, [edi + esi*2]
or eax, 0xffffffff
lea edi, [edi + 2]
sub eax, esi
mov dword [ebp - 0x2c], edi
add ecx, eax
mov dword [ebp - 0x3c], ecx
jne 0x4a0c78
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
lea eax, [edi + 4]
push eax
call fcn.00494a50
lea edx, [edi + 0xc]
test edx, edx
je 0x4a0d2e
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov dword [edx], ecx
lea ecx, [ebp - 0x24]
call fcn.00434b50
push esi
mov dword [ebp - 4], 6
call dword [0x4f90e8]
add esp, 4
mov eax, 1
jmp 0x4a0d6b
lea ecx, [ebp - 0x24]
call fcn.00434b50
mov dword [ebp - 4], 5
push dword [ebp - 0x30]
call dword [0x4f90e8]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x24]
call fcn.00434b50
mov dword [ebp - 4], 4
jmp 0x4a0d5d
lea ecx, [ebp - 0x24]
call fcn.00434b50
mov dword [ebp - 4], 3
jmp 0x4a0d5d