Function at 0x40f650
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x547bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5a10e0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x5a10e0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], cx
mov dword [esp + 0x1d0], ebx
xor edx, edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
mov dword [esp + 0xc4], eax
xor eax, eax
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], ax
mov byte [esp + 0x1d0], 2
cmp byte [esi + 0x4c], bl
jne 0x40fd98
mov eax, dword [esi + 0xac]
cmp eax, 2
je 0x40fd98
cmp eax, 1
je 0x40fd98
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x40f71e
mov eax, 0x576984
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f723
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [esp + 0x98]
call fcn.004089c0
mov eax, dword [esi + 0x34]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f747
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x98]
call fcn.004089c0
push ebx
lea ecx, [esp + 0x98]
push ecx
or eax, 0xffffffff
lea edi, [esp + 0xb8]
call fcn.004015e0
push 1
mov eax, 0x5770cc
lea ecx, [esp + 0x98]
call fcn.004089c0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x38]
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f7a0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x98]
call fcn.004089c0
push 4
mov eax, str..exe
lea ecx, [esp + 0x98]
call fcn.004089c0
mov eax, dword [esp + 0x94]
mov esi, 8
cmp dword [esp + 0xa8], esi
jae 0x40f7eb
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f8b1
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], esi
jae 0x40f811
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
push str.Adobe_Application_Manager_executable_does_not_exist_at_the_location:__s
mov ebx, 0x576f68
call fcn.00416120
add esp, 8
cmp dword [esp + 0xc4], esi
jb 0x40f844
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.004166f8
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], edi
mov word [esp + 0xb0], dx
cmp dword [esp + 0x8c], esi
jb 0x40f879
mov eax, dword [esp + 0x78]
push eax
call fcn.004166f8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
mov word [esp + 0x78], cx
cmp dword [esp + 0xa8], esi
jb 0x40f8a7
mov edx, dword [esp + 0x94]
push edx
call fcn.004166f8
add esp, 4
mov eax, 0xfffffff7
jmp 0x40fd9d
xor eax, eax
mov word [esp + 0x104], ax
mov esi, 7
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0x108]
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
call fcn.00403230
mov byte [esp + 0x1d0], 3
xor ecx, ecx
mov word [esp + 0xe8], cx
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0xec]
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
call fcn.00403230
lea eax, [esp + 0x94]
lea edx, [esp + 0xe8]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1d0], 4
call fcn.00413040
mov ecx, eax
lea eax, [esp + 0x104]
lea edx, [esp + 0x120]
mov byte [esp + 0x1d0], 5
call fcn.00413080
mov edi, eax
lea esi, [esp + 0x78]
mov byte [esp + 0x1d0], 6
call fcn.00404200
mov esi, 8
cmp dword [esp + 0x134], esi
jb 0x40f984
mov edx, dword [esp + 0x120]
push edx
call fcn.004166f8
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], ax
cmp dword [esp + 0xe0], esi
jb 0x40f9ba
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.004166f8
add esp, 4
xor edx, edx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], dx
cmp dword [esp + 0xfc], esi
jb 0x40f9eb
mov eax, dword [esp + 0xe8]
push eax
call fcn.004166f8
add esp, 4
xor ecx, ecx
mov byte [esp + 0x1d0], 2
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], cx
cmp dword [esp + 0x118], esi
jb 0x40fa24
mov edx, dword [esp + 0x104]
push edx
call fcn.004166f8
add esp, 4
push 9
mov eax, str.___media
lea ecx, [esp + 0x7c]
call fcn.004089c0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40fa82
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0x7c]
call fcn.004089c0
mov eax, dword [esi + 0x2c]
mov ecx, eax
lea edi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40fa60
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [esp + 0x7c]
call fcn.004089c0
push 1
mov eax, 0x57b3ac
jmp 0x40faa0
mov eax, dword [esi + 0x2c]
mov ecx, eax
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40fa90
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [esp + 0x7c]
call fcn.004089c0
push 0x2a
mov eax, str.___appletID_DWA_UI____appletVersion_2.0_
lea ecx, [esp + 0x7c]
call fcn.004089c0
mov eax, dword [esi + 0x68]
add esi, 0x58
push 0x576984
xor edi, edi
mov ecx, esi
call fcn.00412760
test eax, eax
je 0x40fb94
push 0x11
mov eax, str.___overrideFile_
lea ecx, [esp + 0x7c]
call fcn.004089c0
mov edi, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
cmp dword [esi + 0x14], edi
jb 0x40fafa
mov esi, dword [esi]
sub esp, 0x1c
mov eax, esi
mov esi, esp
mov dword [esp + 0x38], esp
call fcn.00402e40
lea ecx, [esp + 0xec]
call fcn.0040e8d0
mov byte [esp + 0x1d0], 7
mov eax, dword [esp + 0xcc]
cmp dword [esp + 0xe0], edi
jae 0x40fb35
lea eax, [esp + 0xcc]
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40fb40
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x7c]
call fcn.004089c0
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0x7c]
call fcn.004089c0
cmp dword [esp + 0x14], ebx
je 0x40fb7e
lea edx, [esp + 0x78]
push edx
mov eax, str.___deleteOverrideFile_true_
call fcn.00408950
lea esi, [esp + 0xcc]
mov byte [esp + 0x1d0], 2
call fcn.004015b0
jmp 0x40fb99
mov edi, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xb4]
mov edx, dword [eax + 0xb0]
push ecx
push edx
lea eax, [esp + 0x144]
push str._llu
push eax
call fcn.00516945
add esp, 0x10
push 0x10
mov eax, str.___requiredSize
lea ecx, [esp + 0x7c]
call fcn.004089c0
lea eax, [esp + 0x13c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40fbe0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x140]
lea ecx, [esp + 0x7c]
call fcn.004089c0
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], 0x101
mov dword [esp + 0x5c], 1
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
cmp dword [esp + 0xc4], edi
jae 0x40fc4b
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x40fc62
lea eax, [esp + 0x94]
mov esi, dword [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 0x50]
push str.PDApp_Launch_Path_set_to__s._nCurrent_directory_set_to__s
mov ebx, 0x576f68
call fcn.00416060
mov eax, dword [esp + 0x84]
mov edi, 8
add esp, 0xc
cmp dword [esp + 0x8c], edi
jae 0x40fc96
lea eax, [esp + 0x78]
push eax
mov eax, dword [esi + 0x50]
push str.TimeLog:_PDApp_launched_with_command__s._Waiting_for_PDApp_window_to_come
mov ebx, 0x576f68
call fcn.00416090
mov ecx, dword [esp + 0xb8]
add esp, 8
cmp dword [esp + 0xc4], edi
jae 0x40fcc3
lea ecx, [esp + 0xb0]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x40fcd4
lea eax, [esp + 0x78]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
push ecx
push 0
push 0x10
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x40fd0f
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
movzx esi, bl
cmp dword [esp + 0xc4], edi
jb 0x40fd2b
mov edx, dword [esp + 0xb0]
push edx
call fcn.004166f8
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
cmp dword [esp + 0x8c], edi
jb 0x40fd62
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004166f8
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], 0
mov word [esp + 0x78], dx
cmp dword [esp + 0xa8], edi
jb 0x40fd94
mov eax, dword [esp + 0x94]
push eax
call fcn.004166f8
add esp, 4
mov eax, esi
jmp 0x40fd9d
mov eax, 1
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00515d64
mov esp, ebp
pop ebp
ret