Function at 0x10047370
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 + 0x518]
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 0x1004742e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1004742e
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 0x10047462
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10047462
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 0x10047507
mov eax, dword [esp + 0x494]
cmp eax, ebp
mov dword [esp + 0x498], ebp
je 0x100474d9
cmp eax, 0xffffffff
je 0x100474d9
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 0x100477c3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x100477c3
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
jmp 0x100477bb
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 0x100475ca
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
lea eax, [ebx + 0x508]
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 + 0x510]
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 0x100475e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100475e9
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 0x1004773c
lea esi, [ebx + 0x50c]
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 0x1004769b
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 0x10047681
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 0x100476bd
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 0x100476e3
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100476e3
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 0x10047708
cmp eax, 0xffffffff
je 0x10047708
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 0x10047735
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10047735
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 0x100477c5
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x1004774f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10047771
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10047771
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 0x10047796
cmp eax, 0xffffffff
je 0x10047796
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 0x100477c3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100477c3
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