Function at 0x10040340
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021fe6c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24c], ebx
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
sub edx, eax
je 0x10040570
sub edx, 1
jne 0x100407bf
lea ecx, [ebp - 0x230]
call fcn.1014d800
push 3
push 0x1027028c
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call fcn.1000aef0
mov byte [ebp - 4], 3
mov edi, 2
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x10040496
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x10040496
lea ebx, [ecx + 0xb]
xor ecx, ecx
add ebx, eax
mov eax, ebx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov esi, eax
add esp, 4
test esi, esi
je 0x10040496
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push ebx
push esi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
test ax, ax
jne 0x10040472
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.10010360
push esi
call fcn.101dbd83
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.1000ae90
push 0x12
push str.Creative_Cloud.exe
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call fcn.1000aef0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x100407aa
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x100407aa
lea ebx, [ecx + 0xb]
xor ecx, ecx
add ebx, eax
mov eax, ebx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov esi, eax
add esp, 4
test esi, esi
je 0x100407aa
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push ebx
push esi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040560
jmp 0x10040790
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x254]
call fcn.10150080
cmp dword [ebp - 0x250], 2
jne 0x10040597
lea ecx, [ebp - 0x230]
call fcn.1014d800
jmp 0x100405eb
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100405eb
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100405b7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10010360
push 0x1b
push str.AdobeAdobe_Creative_Cloud
lea ecx, [ebp - 0x230]
call fcn.10010650
push 5
push str.Utils
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call fcn.1000aef0
mov byte [ebp - 4], 1
mov edi, 2
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x100406c5
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x100406c5
lea ebx, [ecx + 0xb]
xor ecx, ecx
add ebx, eax
mov eax, ebx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov esi, eax
add esp, 4
test esi, esi
je 0x100406c5
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push ebx
push esi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
test ax, ax
jne 0x100406a1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.10010360
push esi
call fcn.101dbd83
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.1000ae90
push 0x17
push str.CreativeCloudSet_Up.exe
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call fcn.1000aef0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x100407aa
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x100407aa
lea ebx, [ecx + 0xb]
xor ecx, ecx
add ebx, eax
mov eax, ebx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101dc6a1
mov esi, eax
add esp, 4
test esi, esi
je 0x100407aa
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push ebx
push esi
call fcn.101dc63d
add esp, 0xc
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040785
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.10010360
push esi
call fcn.101dbd83
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.1000ae90
mov ebx, dword [ebp - 0x24c]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10040829
mov esi, dword [0x102eec30]
test esi, esi
je 0x10040825
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ecx, esi
cmovae eax, dword [ebp - 0x230]
push eax
push str.App_does_not_exits_at_path:__s
push 0x1025b044
push 0x1025b044
push str.ContainerBLCommonUtils
push str.c3containerBL
push 0x32
call dword [0x1024852c]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x10040851
lea eax, [ebp - 0x230]
cmp ebx, eax
je 0x1004084f
cmp dword [ebp - 0x21c], 8
mov ecx, ebx
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10010360
mov bl, 1
lea ecx, [ebp - 0x230]
call fcn.1000ae90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret