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 0x457ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4749e0]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov eax, 7
mov dword [esp + 0x18], esi
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
mov dword [esp + 0x1e0], ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], bx
mov byte [esp + 0x1e0], 2
cmp byte [esi + 0x4c], bl
jne 0x40fd42
mov eax, dword [esi + 0xac]
cmp eax, 2
je 0x40fd42
cmp eax, 1
je 0x40fd42
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00410ca0
mov edi, esi
mov edx, dword [edi + 0x20]
cmp edx, ebx
jne 0x40f72e
mov edx, 0x460c30
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f733
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x100]
call fcn.00408f70
mov ecx, dword [edi + 0x34]
mov eax, ecx
lea esi, [eax + 2]
jmp 0x40f760
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40f760
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x100]
call fcn.00408f70
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x100]
lea ecx, [esp + 0x11c]
call fcn.004016d0
push 1
push 0x461284
lea ecx, [esp + 0x100]
call fcn.00408f70
mov ecx, dword [edi + 0x38]
mov eax, ecx
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40f7b0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x100]
call fcn.00408f70
push 4
push str..exe
lea ecx, [esp + 0x100]
call fcn.00408f70
mov eax, dword [esp + 0xfc]
mov edi, 8
cmp dword [esp + 0x110], edi
jae 0x40f7fc
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f8c4
cmp dword [esp + 0x110], edi
mov eax, dword [esp + 0xfc]
jae 0x40f822
lea eax, [esp + 0xfc]
push eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x50]
push str.Adobe_Application_Manager_executable_does_not_exist_at_the_location:__s
mov ebx, 0x461120
call fcn.00415ed0
add esp, 8
cmp dword [esp + 0x12c], edi
jb 0x40f855
mov ecx, dword [esp + 0x118]
push ecx
call fcn.00416414
add esp, 4
xor esi, esi
cmp dword [esp + 0xf4], edi
mov ebx, 7
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], esi
mov word [esp + 0x118], si
jb 0x40f88b
mov edx, dword [esp + 0xe0]
push edx
call fcn.00416414
add esp, 4
cmp dword [esp + 0x110], edi
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], si
jb 0x40f8ba
mov eax, dword [esp + 0xfc]
push eax
call fcn.00416414
add esp, 4
mov eax, 0xfffffff7
jmp 0x40fd47
mov edx, 0x4650ec
lea eax, [esp + 0xc0]
call fcn.00403070
mov esi, eax
mov edx, 0x4650ec
lea eax, [esp + 0x130]
mov byte [esp + 0x1e0], 3
call fcn.00403070
lea ecx, [esp + 0xf8]
push ecx
push eax
lea edi, [esp + 0x34]
mov byte [esp + 0x1e8], 4
call fcn.004133f0
push esi
push eax
lea edi, [esp + 0x58]
mov byte [esp + 0x1f0], 5
call fcn.004133f0
add esp, 0x10
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1e8], 6
call fcn.004016d0
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x40f94f
mov edx, dword [esp + 0x4c]
push edx
call fcn.00416414
add esp, 4
cmp dword [esp + 0x44], esi
mov edi, 7
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x40f974
mov eax, dword [esp + 0x30]
push eax
call fcn.00416414
add esp, 4
cmp dword [esp + 0x148], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40f99a
mov ecx, dword [esp + 0x134]
push ecx
call fcn.00416414
add esp, 4
mov byte [esp + 0x1e0], 2
cmp dword [esp + 0xd8], esi
mov dword [esp + 0x148], edi
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], bx
jb 0x40f9d1
mov edx, dword [esp + 0xc4]
push edx
call fcn.00416414
add esp, 4
push 9
push str.___media
lea ecx, [esp + 0xe4]
call fcn.00408f70
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40fa2e
push 1
push 0x4650ec
lea ecx, [esp + 0xe4]
call fcn.00408f70
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0xdc]
push ecx
call fcn.00408e80
push 1
push 0x4650ec
lea ecx, [esp + 0xe4]
call fcn.00408f70
jmp 0x40fa3e
lea edx, [esp + 0xdc]
push edx
mov edx, dword [esi + 0x2c]
call fcn.00408e80
push 0x2a
push str.___appletID_DWA_UI____appletVersion_1.0_
lea ecx, [esp + 0xe4]
call fcn.00408f70
mov eax, dword [esi + 0x6c]
add esi, 0x58
push 0x460c30
xor edi, edi
mov ecx, esi
call fcn.00412960
test eax, eax
je 0x40fb25
push 0x11
push str.___overrideFile_
lea ecx, [esp + 0xe4]
call fcn.00408f70
mov edi, 8
cmp dword [esi + 0x18], edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
jb 0x40fa98
mov esi, dword [esi + 4]
jmp 0x40fa9b
add esi, 4
sub esp, 0x1c
mov edx, esi
mov eax, esp
mov dword [esp + 0x48], esp
call fcn.00403070
lea ebx, [esp + 0x150]
call fcn.0040e950
mov byte [esp + 0x1e0], 7
cmp dword [esp + 0x148], edi
mov edx, dword [esp + 0x134]
jae 0x40fad6
lea edx, [esp + 0x134]
lea ecx, [esp + 0xdc]
push ecx
call fcn.00408e80
push 1
push 0x4650ec
lea ecx, [esp + 0xe4]
call fcn.00408f70
cmp dword [esp + 0x14], 0
je 0x40fb0f
lea edx, [esp + 0xdc]
push edx
mov edx, str.___deleteOverrideFile_true_
call fcn.00408e80
lea esi, [esp + 0x130]
mov byte [esp + 0x1e0], 2
call fcn.004016a0
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x154]
push str._llu
push edx
call fcn.00433195
add esp, 0x10
push 0x10
push str.___requiredSize
lea ecx, [esp + 0xe4]
call fcn.00408f70
lea eax, [esp + 0x14c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40fb61
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0xe4]
call fcn.00408f70
mov ecx, dword [esp + 0x118]
mov edi, 8
cmp dword [esp + 0x12c], edi
mov dword [esp + 0x74], 0x44
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov word [esp + 0xa6], bx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], 0x101
mov word [esp + 0xa4], 1
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb0], ebx
jae 0x40fbf1
lea ecx, [esp + 0x118]
cmp dword [esp + 0x110], edi
mov eax, dword [esp + 0xfc]
jae 0x40fc08
lea eax, [esp + 0xfc]
mov esi, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [esi + 0x50]
push str.PDApp_Launch_Path_set_to__s._nCurrent_directory_set_to__s
mov ebx, 0x461120
call fcn.00415e10
mov eax, dword [esp + 0xec]
add esp, 0xc
cmp dword [esp + 0xf4], edi
jae 0x40fc3a
lea eax, [esp + 0xe0]
push eax
mov eax, dword [esi + 0x50]
push str.TimeLog:_PDApp_launched_with_command__s._Waiting_for_PDApp_window_to_come
mov ebx, 0x461120
call fcn.00415e40
mov ecx, dword [esp + 0x120]
add esp, 8
cmp dword [esp + 0x12c], edi
jae 0x40fc67
lea ecx, [esp + 0x118]
cmp dword [esp + 0xf4], edi
mov eax, dword [esp + 0xe0]
jae 0x40fc7e
lea eax, [esp + 0xe0]
lea edx, [esp + 0x64]
push edx
lea edx, [esp + 0x78]
push edx
push ecx
xor esi, esi
push esi
push 0x10
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x40fcb9
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x12c], edi
movzx edx, bl
mov dword [esp + 0x14], edx
jb 0x40fcd9
mov eax, dword [esp + 0x118]
push eax
call fcn.00416414
add esp, 4
cmp dword [esp + 0xf4], edi
mov ebx, 7
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x128], esi
mov word [esp + 0x118], si
jb 0x40fd0d
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00416414
add esp, 4
cmp dword [esp + 0x110], edi
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], si
jb 0x40fd3c
mov edx, dword [esp + 0xfc]
push edx
call fcn.00416414
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x40fd47
mov eax, 1
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.004321fe
mov esp, ebp
pop ebp
ret