Function at 0x406707
Capabilities:
Get common file path

Disassembly:
push 0x4ac
mov eax, 0x46c9a3
call fcn.00452a2d
mov esi, ecx
push str.CleanupObsoleteFolders...
lea ecx, [ebp - 0x428]
call fcn.004012e2
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x428]
push eax
push 2
pop ebx
push ebx
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x428]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [esi + 0x22c], 0
mov edi, 0x477688
jne 0x4067eb
and dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
push str.iAllowCleanupObsoleteFolders
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call main
add esp, 0x10
cmp dword [ebp - 0x428], 1
je 0x4067eb
push 0x478d00
lea ecx, [ebp - 0x434]
call fcn.004012e2
push str.cleanup_not_allowed_by_product_Manifest
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 1
call fcn.004012e2
push 0
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
push ebx
mov byte [ebp - 4], bl
call fcn.004112e0
mov ecx, dword [ebp - 0x42c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x434]
jmp 0x406ffd
cmp dword [esi + 0x228], 0
jne 0x406851
push 0x478d00
lea ecx, [ebp - 0x42c]
call fcn.004012e2
push str.no_cleanup_without_successful_check_for_updates
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 3
call fcn.004012e2
push 0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.004112e0
mov ecx, dword [ebp - 0x428]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x42c]
jmp 0x406ffd
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x444]
call fcn.004013a1
lea eax, [esi + 0x174]
push eax
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 5
call fcn.00401326
lea eax, [ebp - 0x444]
push eax
mov byte [ebp - 4], 6
push dword [0x4b76c4]
push edi
push SysReAllocString
call main
add esp, 0x10
test eax, eax
jne 0x406939
mov edi, dword [ebp - 0x444]
cmp dword [edi - 0xc], eax
je 0x406939
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x444]
call fcn.004074b3
test eax, eax
jne 0x406939
push 0x478d00
lea ecx, [ebp - 0x42c]
call fcn.004012e2
push str.no_cleanup_while_UpgradeCache_is_registered_for_this_product
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 7
call fcn.004012e2
push 0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
mov byte [ebp - 4], 8
call fcn.004112e0
mov ecx, dword [ebp - 0x428]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [edi - 0x10]
jmp 0x407000
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 edi, eax
test edi, edi
jge 0x4069af
push 0x478d00
lea ecx, [ebp - 0x42c]
call fcn.004012e2
push str.SHGetFolderPath_failed:
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 9
call fcn.004012e2
push edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
mov byte [ebp - 4], 0xa
call fcn.004112e0
mov ecx, dword [ebp - 0x428]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x42c]
jmp 0x406fe1
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x454]
call fcn.004012e2
push str.AdobeARM.
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0xb
call fcn.004075b6
lea eax, [esi + 0x10c]
add esi, 0x104
mov dword [ebp - 0x458], eax
mov eax, esi
mov dword [ebp - 0x474], esi
call fcn.00401c1a
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x406a0e
push 0x4789e0
lea ecx, [ebp - 0x43c]
call fcn.004075b6
lea ecx, [ebp - 0x4b8]
call fcn.0043ff8b
cmp dword [ebp - 0x45c], 0
mov byte [ebp - 4], 0xc
je 0x406bdb
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x430]
call fcn.004013a1
mov byte [ebp - 4], 0xd
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x42c]
call fcn.004013a1
mov edi, esi
mov byte [ebp - 4], 0xe
call fcn.00401bec
test eax, eax
mov eax, str.A6EADE66_0000_0000_484E_7E8A45000000
jne 0x406a69
mov eax, str.AC76BA86_0000_0000_7761_7E8A45000000_AC76BA86_0000_0000_7760_7E8A45000000_AC76BA86_0000_0000_BA7E_7E8A45000000
push eax
lea ecx, [ebp - 0x440]
call fcn.004012e2
mov byte [ebp - 4], 0xf
and dword [ebp - 0x448], 0
mov esi, 0x104
push 0x478b24
lea ecx, [ebp - 0x428]
call fcn.004012e2
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x450]
push eax
lea ebx, [ebp - 0x428]
lea edi, [ebp - 0x448]
mov byte [ebp - 4], 0x10
call fcn.0043403d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0x11
call fcn.00407768
mov ecx, dword [ebp - 0x450]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.004017df
mov edi, dword [ebp - 0x42c]
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x406ba6
mov dword [ebp - 0x438], ebx
push esi
lea ecx, [ebp - 0x430]
call fcn.0040165f
push eax
push dword [ebp - 0x438]
push ebx
push edi
call sub.msi.dll_MsiSourceListClearAllW
push 0xffffffffffffffff
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x434], eax
call fcn.00407662
cmp dword [ebp - 0x434], ebx
jne 0x406b94
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004507c0
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x478b28
push dword [ebp - 0x430]
mov dword [ebp - 0x44c], esi
call sub.msi.dll_MsiGetPropertyW
cmp eax, ebx
jne 0x406b94
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x4b0]
lea ecx, [ebp - 0x4b8]
call main
inc dword [ebp - 0x438]
cmp dword [ebp - 0x434], ebx
je 0x406b01
cmp dword [ebp - 0x448], 0xffffffff
jne 0x406a85
mov ecx, dword [ebp - 0x440]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [edi - 0x10]
call fcn.004017df
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebp - 0x470]
call fcn.0043ff8b
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 0x12
call fcn.00441464
xor edi, edi
push edi
mov byte [ebp - 4], 0x13
push dword [ebp - 0x454]
lea ecx, [ebp - 0x48c]
call main
cmp eax, edi
je 0x406f6d
lea ecx, [ebp - 0x48c]
call fcn.004411f9
lea ecx, [ebp - 0x48c]
mov dword [ebp - 0x448], eax
call fcn.00441425
test eax, eax
jne 0x406f61
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x48c]
call fcn.00441729
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 0x14
call fcn.004417ba
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x48c]
push 0x10
lea ecx, [ebp - 0x48c]
call dword [eax + 0x38]
test eax, eax
je 0x406f3f
push dword [ebp - 0x43c]
xor ecx, ecx
lea esi, [ebp - 0x438]
call fcn.0040737b
cmp eax, edi
jne 0x406f3f
mov byte [ebp - 0x421], 0
cmp dword [ebp - 0x45c], edi
je 0x406dd1
push 0x4789e0
xor ecx, ecx
call fcn.0040737b
cmp eax, 0xffffffff
je 0x406dd1
inc eax
push eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call main
push 0x478b44
xor ecx, ecx
lea esi, [ebp - 0x42c]
mov byte [ebp - 4], 0x16
call fcn.0040737b
cmp eax, 0xffffffff
je 0x406db2
push eax
lea eax, [ebp - 0x44c]
push eax
mov ecx, esi
call main
mov byte [ebp - 4], 0x17
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x434]
call fcn.004013a1
mov ecx, dword [ebp - 0x474]
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 0x18
call fcn.00431c66
mov edi, dword [ebp - 0x44c]
push edi
lea ecx, [ebp - 0x434]
call fcn.004074b3
test eax, eax
je 0x406d9c
xor esi, esi
xor bl, bl
cmp dword [ebp - 0x4b0], esi
jle 0x406d7d
test bl, bl
jne 0x406d9c
push esi
lea ecx, [ebp - 0x4b8]
call fcn.0040768c
push edi
mov ecx, eax
call fcn.004074b3
test eax, eax
jne 0x406d70
inc bl
mov byte [ebp - 0x421], bl
inc esi
cmp esi, dword [ebp - 0x4b0]
jl 0x406d4c
test bl, bl
jne 0x406d9c
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x468]
lea ecx, [ebp - 0x470]
call main
mov byte [ebp - 0x421], 1
mov ecx, dword [ebp - 0x434]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [edi - 0x10]
call fcn.004017df
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
call fcn.004017df
cmp byte [ebp - 0x421], 0
jne 0x406f3f
mov edi, dword [ebp - 0x458]
xor ebx, ebx
cmp dword [edi + 8], ebx
jne 0x406dfb
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x468]
lea ecx, [ebp - 0x470]
call main
jmp 0x406f3f
lea ecx, [ebp - 0x4a4]
call fcn.00441464
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 0x19
call fcn.00401326
push 0x478b48
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 0x1a
call fcn.004075b6
push ebx
push dword [ebp - 0x428]
lea ecx, [ebp - 0x4a4]
call main
cmp eax, ebx
je 0x406ef6
cmp byte [ebp - 0x421], 0
jne 0x406ef6
lea ecx, [ebp - 0x4a4]
call fcn.004411f9
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x450], eax
call fcn.00441425
test eax, eax
jne 0x406eea
mov eax, dword [ebp - 0x4a4]
push 0x10
lea ecx, [ebp - 0x4a4]
call dword [eax + 0x38]
test eax, eax
jne 0x406eea
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00441729
mov byte [ebp - 4], 0x1b
xor esi, esi
cmp dword [edi + 8], ebx
jle 0x406ed8
push esi
mov ecx, edi
call fcn.0040768c
mov eax, dword [eax]
cmp eax, ebx
je 0x406ed2
push dword [ebp - 0x440]
add eax, 8
mov ecx, eax
call fcn.004074b3
test eax, eax
jne 0x406ed2
mov byte [ebp - 0x421], 1
inc esi
cmp esi, dword [edi + 8]
jl 0x406ea9
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x440]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x450], ebx
jne 0x406e4a
lea ecx, [ebp - 0x4a4]
call fcn.00441113
cmp byte [ebp - 0x421], 0
jne 0x406f22
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x468]
lea ecx, [ebp - 0x470]
call main
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 0x15
call fcn.0044148d
mov ecx, dword [ebp - 0x438]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.004017df
xor edi, edi
cmp dword [ebp - 0x448], edi
jne 0x406c15
lea ecx, [ebp - 0x48c]
call fcn.00441113
xor esi, esi
cmp dword [ebp - 0x468], edi
jle 0x406fae
push edi
push esi
lea ecx, [ebp - 0x470]
call fcn.0040768c
push ecx
mov dword [ebp - 0x458], esp
mov ecx, esp
push eax
call fcn.00401326
call fcn.00439272
inc esi
cmp esi, dword [ebp - 0x468]
pop ecx
pop ecx
jl 0x406f82
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 0x12
call fcn.0044148d
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0xc
call fcn.00440168
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 0xb
call fcn.00440168
mov ecx, dword [ebp - 0x454]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x444]
add ecx, 0xfffffff0
call fcn.004017df
call fcn.00452ab0
ret