Function at 0x4124d0
Capabilities:
Check if file exists
Get common file path
Get file version info
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4398b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x44f014]
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 dword [ebp - 0x2ec], ecx
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 4
call fcn.00415ee0
lea ecx, [ebp - 0x244]
call fcn.00413b30
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x244]
call fcn.00413f10
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x244]
call fcn.00415a10
lea edx, [ebp - 0x2cc]
lea ecx, [ebp - 0x2f0]
call fcn.00413940
push dword [ebp - 0x2f0]
lea eax, [ebp - 0x210]
push 0x44a7e4
push 0x100
push eax
call fcn.004034d0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x308], 0
add esp, 0x10
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412635
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x308]
call fcn.00402040
mov ecx, dword [ebp - 0x2f4]
cmp ecx, 8
jb 0x412697
mov edx, dword [ebp - 0x308]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41268d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4131ba
push ecx
push edx
call fcn.00417151
add esp, 8
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ebx, 7
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x250], ax
lea edx, [ebp - 0x2cc]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x234]
call fcn.00413940
cmp dword [ebp - 0x2cc], 2
jne 0x41270a
lea ecx, [ebp - 0x230]
call fcn.0040f390
jmp 0x4127bd
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4127bd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412730
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a120
mov ecx, dword [ebp - 0x21c]
mov eax, ecx
mov edi, dword [ebp - 0x220]
sub eax, edi
cmp eax, 0x1b
jb 0x41279c
cmp ecx, 8
lea esi, [ebp - 0x230]
lea eax, [edi + 0x1b]
cmovae esi, dword [ebp - 0x230]
push 0x36
mov dword [ebp - 0x220], eax
push str.AdobeAdobe_Creative_Cloud
lea eax, [esi + edi*2]
push eax
call fcn.00418a30
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x36], ax
jmp 0x4127bd
push 0x1b
push str.AdobeAdobe_Creative_Cloud
mov byte [ebp - 0x2cc], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x2cc]
push 0x1b
call fcn.004021b0
push 0x16
push 0x44a458
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
call fcn.00402040
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x412898
mov eax, dword [ebp - 0x2d8]
test eax, eax
je 0x412898
lea edi, [ecx + 0xb]
mov edx, 2
add edi, eax
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421c43
mov esi, eax
add esp, 4
test esi, esi
je 0x412898
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push edi
push esi
call fcn.00421a66
add esp, 0xc
lea eax, [ebp - 0x2e8]
cmp dword [ebp - 0x2d4], 8
cmovae eax, dword [ebp - 0x2e8]
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 0x412873
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.0040a120
push esi
call fcn.0042163d
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2d4]
cmp ecx, 8
jb 0x4128dc
mov edx, dword [ebp - 0x2e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4128d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4131bf
push ecx
push edx
call fcn.00417151
add esp, 8
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
je 0x412b55
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00403380
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x238]
xor bl, bl
mov dword [ebp - 0x238], 0
cmp dword [ebp - 0x2d4], 8
lea eax, [ebp - 0x2e8]
push ecx
cmovae eax, dword [ebp - 0x2e8]
push eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00418fc0
add esp, 0xc
test esi, esi
je 0x412a4d
push esi
call fcn.00417605
add esp, 4
lea ecx, [ebp - 0x2e8]
cmp dword [ebp - 0x2d4], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x2e8]
push edi
push esi
push dword [ebp - 0x238]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x412a44
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0x449cbc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x412a44
cmp dword [ebp - 0x234], 0
je 0x412a44
mov eax, dword [ebp - 0x2cc]
cmp dword [eax], 0xfeef04bd
jne 0x412a44
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004034d0
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.0040a120
mov bl, 1
push edi
call fcn.00417600
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2d4]
cmp ecx, 8
jb 0x412a91
mov edx, dword [ebp - 0x2e8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412a87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4131c4
push ecx
push edx
invalid