Function at 0x408ce0
Capabilities:
Get common file path

Disassembly:
push 0x4b8
mov eax, 0x4ad664
call fcn.0046c66c
mov ebx, ecx
push str.CleanupObsoleteFolders...
lea ecx, [ebp - 0x428]
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x428]
push 0
push 2
pop ecx
call fcn.00417741
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [ebx + 0x254], 0
mov esi, 0x4ce868
jne 0x408dce
and dword [ebp - 0x428], 0
lea eax, [ebp - 0x434]
and dword [ebp - 0x434], 0
mov edx, esi
push eax
lea eax, [ebp - 0x428]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push str.iAllowCleanupObsoleteFolders
call fcn.0044470e
xor edi, edi
add esp, 0xc
inc edi
cmp dword [ebp - 0x428], edi
je 0x408dce
push 0x4d0aa4
lea ecx, [ebp - 0x43c]
call fcn.00402829
push str.cleanup_not_allowed_by_product_Manifest
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], edi
call fcn.00402829
push 0
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x424]
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x43c]
jmp 0x40962e
cmp dword [ebx + 0x250], 0
jne 0x408e34
push 0x4d0aa4
lea ecx, [ebp - 0x424]
call fcn.00402829
push str.no_cleanup_without_successful_check_for_updates
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 3
call fcn.00402829
push 0
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 4
push eax
push 2
lea edx, [ebp - 0x428]
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x424]
jmp 0x40962e
call fcn.004527d1
push eax
lea ecx, [ebp - 0x444]
call fcn.00402899
mov dword [ebp - 4], 5
mov eax, dword [ebx + 0x19c]
sub eax, 0x10
push eax
call fcn.00402d9f
lea edi, [eax + 0x10]
mov dword [ebp - 0x44c], edi
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 6
and dword [ebp - 0x434], 0
mov edx, esi
push eax
lea eax, [ebp - 0x444]
mov ecx, SysReAllocString
push eax
push dword [0x519e48]
call fcn.0044464f
mov esi, dword [ebp - 0x444]
add esp, 0x10
test eax, eax
jne 0x408f22
cmp dword [esi - 0xc], eax
je 0x408f22
push edi
lea ecx, [ebp - 0x444]
call fcn.00409b05
test eax, eax
jne 0x408f22
push 0x4d0aa4
lea ecx, [ebp - 0x424]
call fcn.00402829
push str.no_cleanup_while_UpgradeCache_is_registered_for_this_product
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 7
call fcn.00402829
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0x424]
push eax
push 2
lea edx, [ebp - 0x428]
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
jmp 0x409631
lea eax, [ebp - 0x420]
push eax
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x434], eax
test eax, eax
jns 0x408f76
push 0x4d0aa4
lea ecx, [ebp - 0x424]
call fcn.00402829
push str.SHGetFolderPath_failed:
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 9
call fcn.00402829
mov byte [ebp - 4], 0xa
push dword [ebp - 0x434]
jmp 0x408edf
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.00402829
push str.AdobeARM.
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.0040259d
lea esi, [ebx + 0x12c]
lea eax, [ebx + 0x134]
mov dword [ebp - 0x474], esi
mov ecx, esi
mov dword [ebp - 0x458], eax
call fcn.00403224
mov ebx, eax
mov dword [ebp - 0x470], ebx
test ebx, ebx
je 0x408fdd
push 0x4d0808
lea ecx, [ebp - 0x44c]
call fcn.0040259d
mov edi, dword [ebp - 0x44c]
lea ecx, [ebp - 0x4a8]
call fcn.00453ad0
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x4091a1
call fcn.004527d1
push eax
lea ecx, [ebp - 0x430]
call fcn.00402899
mov byte [ebp - 4], 0xd
call fcn.004527d1
push eax
lea ecx, [ebp - 0x438]
call fcn.00402899
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.004031f2
test eax, eax
mov edx, str.AC76BA86_0000_0000_7761_7E8A45000000_AC76BA86_0000_0000_7760_7E8A45000000_AC76BA86_0000_0000_BA7E_7E8A45000000
mov ecx, str.A6EADE66_0000_0000_484E_7E8A45000000
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00402829
mov byte [ebp - 4], 0xf
and dword [ebp - 0x424], 0
mov esi, dword [ebp - 0x430]
push 0x4cd574
lea ecx, [ebp - 0x428]
call fcn.00402829
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x434]
call fcn.0044440d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x11
call fcn.00402e14
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x438]
cmp dword [edi - 0xc], 0
je 0x409166
xor ebx, ebx
push 0x104
lea ecx, [ebp - 0x430]
call fcn.00402bd2
push eax
push ebx
push 0
push edi
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
mov esi, eax
lea ecx, [ebp - 0x430]
push 0xffffffffffffffff
mov dword [ebp - 0x440], esi
call fcn.00409d68
test esi, esi
mov esi, dword [ebp - 0x430]
jne 0x409158
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00484ac0
add esp, 0xc
mov dword [ebp - 0x448], 0x104
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x218]
push eax
push str.VersionMajor
push esi
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x409158
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x4a0]
lea ecx, [ebp - 0x4a8]
call fcn.00453d1d
inc ebx
cmp dword [ebp - 0x440], 0
je 0x4090c8
cmp dword [ebp - 0x424], 0xffffffff
jne 0x409051
mov ecx, dword [ebp - 0x43c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x438]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00402e64
mov edi, dword [ebp - 0x44c]
lea ecx, [ebp - 0x46c]
call fcn.00453ad0
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 0x12
call fcn.00455253
push 0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x494]
push dword [ebp - 0x450]
call fcn.00455440
test eax, eax
je 0x4095a5
lea ecx, [ebp - 0x494]
call fcn.004555f0
mov ebx, eax
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x428], ebx
call fcn.004559e0
test eax, eax
jne 0x40959d
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x494]
call fcn.00455700
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x494]
call fcn.004556b0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x494]
push 0x10
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x4ba7e8]
lea ecx, [ebp - 0x494]
call esi
test eax, eax
je 0x40957d
push 0
push edi
lea ecx, [ebp - 0x438]
call fcn.0040982e
test eax, eax
jne 0x40957d
xor bl, bl
mov dword [ebp - 0x440], ebx
cmp dword [ebp - 0x470], eax
je 0x4093e3
push eax
push 0x4d0808
lea ecx, [ebp - 0x438]
call fcn.0040982e
cmp eax, 0xffffffff
je 0x4093e3
mov ecx, dword [ebp - 0x438]
inc eax
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x438]
call fcn.00409a7f
push 0
push 0x4d0968
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0x16
call fcn.0040982e
cmp eax, 0xffffffff
je 0x4093c9
push eax
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004097e9
mov byte [ebp - 4], 0x17
call fcn.004527d1
push eax
lea ecx, [ebp - 0x448]
call fcn.00402899
mov ecx, dword [ebp - 0x474]
lea eax, [ebp - 0x448]
push eax
mov byte [ebp - 4], 0x18
call fcn.004421fb
mov esi, dword [ebp - 0x478]
lea ecx, [ebp - 0x448]
push esi
call fcn.00409b05
test eax, eax
je 0x4093b3
xor eax, eax
xor cl, cl
mov byte [ebp - 0x429], cl
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x4a0], eax
jle 0x409390
test cl, cl
jne 0x4093b3
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00409d2f
push esi
mov ecx, eax
call fcn.00409b05
test eax, eax
jne 0x409371
inc eax
mov cl, al
mov bl, al
mov byte [ebp - 0x429], cl
mov dword [ebp - 0x440], ebx
jmp 0x409377
mov cl, byte [ebp - 0x429]
mov eax, dword [ebp - 0x424]
inc eax
mov dword [ebp - 0x424], eax
cmp eax, dword [ebp - 0x4a0]
jl 0x409342
test cl, cl
jne 0x4093b3
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x464]
lea ecx, [ebp - 0x46c]
call fcn.00453ccc
xor eax, eax
lea ebx, [eax + 1]
mov dword [ebp - 0x440], ebx
mov ecx, dword [ebp - 0x448]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x43c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test bl, bl
jne 0x409577
mov eax, dword [ebp - 0x458]
cmp dword [eax + 8], 0
jne 0x40940c
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x464]
lea ecx, [ebp - 0x46c]
call fcn.00453ccc
jmp 0x409577
lea ecx, [ebp - 0x4c4]
call fcn.00455253
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
push eax
call fcn.00402d9f
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x424]
mov dword [esp], 0x4d096c
call fcn.0040259d
mov esi, dword [ebp - 0x424]
lea ecx, [ebp - 0x4c4]
push 0
push esi
call fcn.00455440
test eax, eax
je 0x40953d
mov esi, dword [ebp - 0x458]
test bl, bl
jne 0x409531
lea ecx, [ebp - 0x4c4]
call fcn.004555f0
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x454], eax
call fcn.004559e0
test eax, eax
jne 0x409524
mov ecx, dword [ebp - 0x4c4]
push 0x10
mov ebx, dword [ecx + 0x38]
mov ecx, ebx
call dword [0x4ba7e8]
lea ecx, [ebp - 0x4c4]
call ebx
test eax, eax
jne 0x40951e
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x4c4]
call fcn.00455700
xor edi, edi
mov byte [ebp - 4], 0x1b
cmp dword [esi + 8], edi
jle 0x40950c
mov ebx, dword [ebp - 0x440]
push edi
mov ecx, esi
call fcn.00409d2f
mov ecx, dword [eax]
test ecx, ecx
je 0x409500
push dword [ebp - 0x434]
add ecx, 8
call fcn.00409b05
test eax, eax
movzx ebx, bl
push 1
pop eax
cmove ebx, eax
inc edi
cmp edi, dword [esi + 8]
jl 0x4094d9
mov dword [ebp - 0x440], ebx
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, dword [ebp - 0x440]
cmp dword [ebp - 0x454], 0
jne 0x40946b
mov edi, dword [ebp - 0x44c]
mov esi, dword [ebp - 0x424]
lea ecx, [ebp - 0x4c4]
call fcn.004553e0
test bl, bl
jne 0x409564
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x464]
lea ecx, [ebp - 0x46c]
call fcn.00453ccc
lea ecx, [esi - 0x10]
call fcn.00402e64
lea ecx, [ebp - 0x4c4]
call fcn.00455359
mov ebx, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x438]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test ebx, ebx
jne 0x4091da
lea ecx, [ebp - 0x494]
call fcn.004553e0
xor ebx, ebx
cmp dword [ebp - 0x464], ebx
jle 0x4095f1
push ebx
lea ecx, [ebp - 0x46c]
call fcn.00409d2f
push ecx
mov esi, esp
mov dword [ebp - 0x454], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402d9f
pop ecx
add eax, 0x10
xor ecx, ecx
mov dword [esi], eax
call fcn.00449771
inc ebx
pop ecx
cmp ebx, dword [ebp - 0x464]
jl 0x4095ba
lea ecx, [ebp - 0x494]
call fcn.00455359
lea ecx, [ebp - 0x46c]
call fcn.00453af0
lea ecx, [ebp - 0x4a8]
call fcn.00453af0
mov ecx, dword [ebp - 0x450]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x444]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.0046c616
ret