Function at 0x404a14
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x238
mov eax, 0x4347ab
call fcn.0041ab20
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
mov edi, dword [ebp + 0xc]
push str.CreateCachedArmMsi...
mov dword [ebp - 0x234], esi
call fcn.0040200d
xor ebx, ebx
lea eax, [ebp - 0x224]
push ebx
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004031a3
mov ecx, dword [ebp - 0x224]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a18
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x404a9b
push eax
push 0x437d78
push 0x436f68
push str.SHGetFolderPath_failed
call fcn.00407a47
add esp, 0x10
jmp 0x404f17
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040200d
push str.AdobeARM1.0Cache
mov dword [ebp - 4], 1
call fcn.0041fcde
pop ecx
push eax
push str.AdobeARM1.0Cache
lea ecx, [ebp - 0x230]
call fcn.00402296
push ebx
push dword [ebp - 0x230]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x404eec
cmp eax, 3
je 0x404eec
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402378
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
push 0x2d
push esi
mov byte [ebp - 4], 2
call fcn.0041d484
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x404ec4
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x404ec4
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x228]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00403498
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.00402129
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a18
push 0x7d
lea ecx, [ebp - 0x228]
call fcn.004082b5
call fcn.0040be29
push eax
lea ecx, [ebp - 0x224]
call fcn.00401320
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 4
push 4
push eax
call fcn.00405c0d
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push 0x438880
push eax
call fcn.00403fad
push 0x43887c
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 5
push eax
call fcn.004021ce
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00402179
push str..msi
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 7
push eax
call fcn.004021ce
add esp, 0x38
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xb
lea ecx, [ecx - 0x10]
call fcn.00401a18
push 0x437078
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004021ce
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x23c]
push ecx
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00402179
add esp, 0x18
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.00401a18
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - method.AutoHandle.virtual_0], vtable.AutoHandle.0
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x240], edx
mov byte [ebp - 4], 0xf
test edx, edx
je 0x404ca4
mov cl, 1
cmp edx, 0xffffffff
jne 0x404ca6
mov cl, bl
mov eax, dword [edi]
test cl, cl
je 0x404ea5
push str.2_16_17_18_19_52_53_54_63_68_81_82_83_84_85_86_87_88_89_90_91_92_93_97
push edx
push eax
call fcn.0040b01b
mov ecx, dword [edi]
add esp, 0xc
test eax, eax
je 0x404e93
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
push eax
push ebx
push ecx
mov dword [ebp - 0x21c], ebx
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x404e73
call fcn.0040be29
push eax
lea ecx, [ebp - 0x220]
call fcn.00401320
push str.UpgradeCode
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0x11
call fcn.0040200d
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x21c]
call fcn.00405a76
mov ecx, dword [ebp - 0x238]
add esp, 0xc
mov byte [ebp - 4], 0x11
lea ecx, [ecx - 0x10]
call fcn.00401a18
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, dword [ebp - 0x220]
cmp dword [esi - 0xc], 0
je 0x404e4b
push str.A6EADE66_0804_0000_1959_000000000000
push esi
call fcn.0041fc9e
pop ecx
pop ecx
test eax, eax
jne 0x404e4b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x10
call fcn.00401a18
push 1
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x234]
call fcn.00404950
add esp, 0xc
test eax, eax
jne 0x404e3c
push str.File_copied:
lea ecx, [ebp - 0x220]
call fcn.0040200d
push ebx
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x220]
push eax
push 1
call fcn.00402a61
mov ecx, dword [ebp - 0x220]
add esp, 0x10
mov byte [ebp - 4], 0x10
lea ecx, [ecx - 0x10]
call fcn.00401a18
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.00402129
cmp dword [ebp - 0x21c], 0
je 0x404dfc
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebp - 0x244]
call fcn.00403ee5
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov esi, dword [ebp - 0x228]
jmp 0x404ee2
push eax
push 0x437d78
push dword [edi]
push str.File_copy_failed:
jmp 0x404e84
push 0x3ee
push 0x437d78
push dword [edi]
push str.empty_or_invalid_UpgradeCode
call fcn.00407a47
add esp, 0x10
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.00401a18
jmp 0x404de8
push 0x3ee
push 0x437d78
push dword [edi]
push str.failed_to_open_db:
call fcn.00407a47
mov ebx, eax
add esp, 0x10
jmp 0x404de8
push 0x3ee
push 0x437d78
push ecx
push str.file_not_valid:
jmp 0x404eb5
push 0x3ee
push 0x437d78
push eax
push str.failed_to_lock_for_validation:
call fcn.00407a47
mov ebx, eax
add esp, 0x10
jmp 0x404dfc
mov eax, dword [ebp - 0x234]
push 0xd
push 0x437d78
push dword [eax]
push str.invalid_product_code_format:
call fcn.00407a47
add esp, 0x10
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00401a18
jmp 0x404f07
push eax
push 0x437d78
push dword [ebp - 0x230]
push str.Failed_arm_cache_folder:
call fcn.00407a47
add esp, 0x10
mov ebx, eax
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.00401a18
mov eax, ebx
call fcn.0041aaca
ret