Function at 0x10048990
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10058792
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x198]
push str.MEDIAUPI32LOC
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.1004a7b0
xor ebp, ebp
mov dword [esp + 0x4b4], ebp
mov eax, dword [eax]
mov edx, dword [ebx + 0x16c]
mov ecx, dword [edx + 0x19c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10049e10
add esp, 0x14
lea esi, [ebx + 0x2c8]
mov edi, eax
mov eax, esi
mov byte [esp + 0x4a8], 1
call fcn.10015ac0
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10048a4e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10048a4e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x4a8], 0xffffffff
mov eax, dword [esp + 0x30]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10048a82
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10048a82
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esi]
lea eax, [esp + 0x14]
push str.Upi32.dll
push eax
mov ecx, esi
call fcn.10049e10
add esp, 8
mov dword [esp + 0x4a8], 2
mov word [esp + 0x490], 0x5c
mov dword [esp + 0x494], ebp
mov dword [esp + 0x498], ebp
mov byte [esp + 0x4a8], 3
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x38]
call fcn.100497f0
test eax, eax
jne 0x10048b27
mov eax, dword [esp + 0x494]
cmp eax, ebp
mov dword [esp + 0x498], ebp
je 0x10048af9
cmp eax, 0xffffffff
je 0x10048af9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x494], ebp
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10048de3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10048de3
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
jmp 0x10048ddb
mov eax, dword [0x1006eb44]
mov dword [esp + 0x18], eax
mov byte [esp + 0x4a8], 4
mov ecx, dword [ebx + 0x170]
mov eax, dword [ecx + 0x130]
push eax
push str.LiveUpdate
push str.SoftwareAutodesk
push str._s_s_s
lea edx, [esp + 0x28]
call fcn.10014ab0
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea edx, [esp + 0x1c]
push edx
push 0x20019
mov byte [esp + 0x4b0], 5
mov esi, dword [esp + 0x20]
push ebp
push esi
push SysReAllocStringLen
mov dword [esp + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
inc eax
je 0x10048bea
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
lea eax, [ebx + 0x2b8]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.10040b90
mov eax, 4
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x2c0]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebp
push str.PreviewMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x10048c09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10048c09
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x14]
push 8
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x10048d5c
lea esi, [ebx + 0x2bc]
mov eax, esi
call fcn.100148b0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getUPIValue
push ebp
call edi
push str.setMRFlag
push ebp
mov ebx, eax
call edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x28], eax
je 0x10048cbb
lea edi, [esp + 0x14]
call fcn.10011c20
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
push str.upiconfig.xml
push str.upi32.dll
mov edx, edi
push edx
call fcn.100137b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
mov dword [esp + 0x2c], edi
call dword [esp + 0x28]
push edi
call ebx
mov edi, eax
test edi, edi
je 0x10048ca1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
call fcn.100158a0
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call ebx
push edi
call ebx
xor edi, edi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi]
cmp dword [eax - 8], edi
mov eax, dword [esp + 0x1c]
setne bl
cmp eax, edi
je 0x10048cdd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10048d03
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10048d03
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x494]
cmp eax, edi
mov dword [esp + 0x498], edi
je 0x10048d28
cmp eax, 0xffffffff
je 0x10048d28
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x494], edi
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10048d55
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10048d55
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, bl
jmp 0x10048de5
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x10048d6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10048d91
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10048d91
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x494]
cmp eax, edi
mov dword [esp + 0x498], edi
je 0x10048db6
cmp eax, 0xffffffff
je 0x10048db6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x494], edi
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10048de3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10048de3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.10056d50
add esp, 0x498
ret