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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4add60]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4688c0
call fcn.004508b2
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.00410d56
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
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 0x416be4
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.00410d56
add esp, 0xc
mov esi, eax
jmp 0x416d58
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x10]
call fcn.00413a25
lea eax, [ebp - 0x10]
push eax
push 0x4b2be0
mov dword [ebp - 4], edi
call fcn.00415615
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 0x475554
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00406977
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.004017ba
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
lea ebx, [esi + 0x2c]
push ebx
push str.OnDemandManifestURL
push 0x473600
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00432795
mov eax, dword [ebx]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x416cb3
push str.ArmOnDemand2.msi
lea eax, [ebp - 0x18]
push 0x4b269c
push eax
call fcn.00406977
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00406b64
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
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.00406977
add esp, 0x18
lea ecx, [esi + 0x28]
push eax
mov byte [ebp - 4], 7
call fcn.00406b64
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x416d2a
cmp esi, 3
je 0x416d2a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
inc eax
jmp 0x416d65
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.00410886
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017ba
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
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.0044da13
add ebp, 0x20c
leave
ret