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

Disassembly:
push 0x22c
mov eax, 0x4699d4
call fcn.0045091b
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x8023
push ebx
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x4161b5
push str.SHGetFolderPath_failed:
lea ecx, [ebp - 0x224]
call fcn.004012e2
push edi
lea eax, [ebp - 0x224]
push eax
push 1
mov dword [ebp - 4], ebx
call fcn.00410d56
mov ecx, dword [ebp - 0x224]
add esp, 0xc
mov esi, eax
jmp 0x4166f8
lea eax, [ebp - 0x21c]
lea ebx, [esi + 8]
push eax
mov ecx, ebx
call fcn.00401356
push 0x4b2850
lea ecx, [ebp - 0x230]
call fcn.00401326
push 0x2f
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.00407f08
mov edi, eax
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x234]
call fcn.00413a25
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
je 0x416247
mov eax, dword [ebp - 0x230]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407f50
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00406b64
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017ba
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x22c]
call fcn.00413a25
mov edi, 0x4b27dc
mov eax, edi
mov byte [ebp - 4], 4
call fcn.00401bd8
test eax, eax
jne 0x41637f
mov edi, dword [ebp - 0x234]
cmp dword [edi - 0xc], eax
jne 0x4162db
push str.Manifest_URL_is_not_valid
lea ecx, [ebp - 0x224]
call fcn.004012e2
push 0
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00410d56
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [edi - 0x10]
call fcn.004017ba
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
jmp 0x416702
lea eax, [ebp - 0x230]
lea edi, [esi + 0x10]
push eax
mov ecx, edi
call fcn.00406b64
push edi
lea ecx, [ebp - 0x22c]
call fcn.00406b64
push 0x4b284c
lea eax, [ebp - 0x220]
push str.AdobeARM_
push eax
call fcn.0040107c
add esp, 0xc
push 0x475554
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 6
call fcn.00406977
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00401103
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00401025
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 8
call fcn.00406b64
jmp 0x416633
push 0x4b2830
lea ecx, [ebp - 0x224]
call fcn.00401326
mov byte [ebp - 4], 9
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x238]
call fcn.00413a25
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0043021b
push dword [ebp - 0x238]
call fcn.0044e727
pop ecx
mov dword [ebp - 0x220], eax
call fcn.00401baa
lea ecx, [esi + 0x14]
test eax, eax
je 0x416452
mov edi, 0x4722f0
push edi
call fcn.00401356
cmp dword [ebp - 0x220], 0xa
jge 0x4163f5
push dword [0x4b2830]
push 0x12d
jmp 0x416471
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push str.AdobeARMReader_
push eax
call fcn.0040107c
add esp, 0xc
push 0x475554
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 0xb
call fcn.00406977
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.00401103
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x228]
jmp 0x4164d4
mov edi, str.Acrobat
push edi
call fcn.00401356
cmp dword [ebp - 0x220], 0xa
jge 0x41647c
push dword [0x4b2830]
push 0x12c
mov ecx, ebx
call fcn.0041b959
pop ecx
pop ecx
jmp 0x4164dc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push str.AdobeARMAcrobat_
push eax
call fcn.0040107c
add esp, 0xc
push 0x475554
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 0xd
call fcn.00406977
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.00401103
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004017ba
push edi
lea ecx, [ebp - 0x22c]
call fcn.00401356
mov eax, dword [ebp - 0x234]
cmp dword [eax - 0xc], 0
jne 0x41654c
mov eax, dword [ebp - 0x238]
push dword [eax - 0xc]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
call fcn.00401163
push str.Manifest2.msi
mov ecx, edi
call fcn.00406a25
push edi
lea eax, [ebp - 0x228]
push 0x4b269c
push eax
call fcn.00401025
add esp, 0xc
lea edi, [esi + 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.00406b64
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
jmp 0x41656c
lea eax, [ebp - 0x234]
push eax
lea ecx, [esi + 0x14]
call fcn.00406b64
lea eax, [ebp - 0x230]
lea edi, [esi + 0x10]
push eax
mov ecx, edi
call fcn.00406b64
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.00401025
add esp, 0xc
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 0x10
call fcn.00406b64
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
push str.UpgradeManifest.msi
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.00406977
add esp, 0xc
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 0x11
call fcn.00406b64
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017ba
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x220]
call fcn.00413a25
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x4b27dc
mov byte [ebp - 4], 0x12
call fcn.00430343
mov esi, dword [ebp - 0x220]
cmp dword [esi - 0xc], 0
lea eax, [ebp - 0x238]
je 0x416611
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401103
lea ecx, [esi - 0x10]
call fcn.004017ba
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00410f1f
mov eax, dword [ebx]
pop ecx
pop ecx
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x41669f
cmp esi, 3
je 0x41669f
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
inc eax
jmp 0x416702
push str.SHCreateDirectoryEx___failed:
lea ecx, [ebp - 0x220]
call fcn.004012e2
push esi
push ebx
lea eax, [ebp - 0x220]
push eax
push 1
mov byte [ebp - 4], 0x13
call fcn.00410886
mov ecx, dword [ebp - 0x220]
add esp, 0x10
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017ba
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, esi
call fcn.0045099e
ret