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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4b2d60]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x46c8b0
call fcn.00452eb4
mov esi, ecx
push str.InitOnDemandDownload...
lea ecx, [ebp - 0x10]
call fcn.004012e2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
pop edi
push edi
mov dword [ebp - 4], ebx
call fcn.00411806
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x417613
push str.SHGetFolderPath_failed:
lea ecx, [ebp - 0x10]
call fcn.004012e2
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00411806
add esp, 0xc
mov esi, eax
jmp 0x417787
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x10]
call fcn.004013a1
lea eax, [ebp - 0x10]
push eax
push 0x4b7c0c
mov dword [ebp - 4], edi
call fcn.00416054
lea eax, [ebp]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.00401356
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push str.AdobeARMOnDemand_
push eax
call fcn.0040107c
push 0x479944
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00407458
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00401103
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
lea ebx, [esi + 0x2c]
push ebx
push str.OnDemandManifestURL
push 0x477678
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00434592
mov eax, dword [ebx]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x4176e2
push str.ArmOnDemand2.msi
lea eax, [ebp - 0x18]
push 0x4b769c
push eax
call fcn.00407458
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004077b3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00401025
push str..msi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.00407458
add esp, 0x18
lea ecx, [esi + 0x28]
push eax
mov byte [ebp - 4], 7
call fcn.004077b3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x417759
cmp esi, 3
je 0x417759
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
inc eax
jmp 0x417794
push str.SHCreateDirectoryEx_failed:
lea ecx, [ebp - 0x14]
call fcn.004012e2
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 1
mov byte [ebp - 4], 8
call fcn.00411336
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017df
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044ff92
add ebp, 0x20c
leave
ret