Function at 0x40f270
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x497d77
mov eax, dword fs:[0]
push eax
sub esp, 0x288
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040d840
cmp byte [eax + 0x96a], 0
je 0x40f2b5
cmp byte [0x4cad31], 0
je 0x40f2c7
mov eax, dword [esp + 0x2a8]
mov dword [eax], 0
jmp 0x40f5ee
mov ecx, esi
call fcn.0040e540
test al, al
jne 0x40f356
mov eax, esi
call fcn.0040e500
test al, al
jne 0x40f356
cmp byte [esi + 0x11c], al
je 0x40f2ee
add esi, 0xc
jmp 0x40f2f1
mov esi, dword [esi + 8]
lea ecx, [esp + 0x50]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0x50]
call fcn.00410960
push 0x4b9228
mov eax, ebx
mov dword [esp + 0x2a4], 1
call fcn.0040f780
mov esi, eax
lea eax, [esp + 0x54]
call fcn.00410580
cmp byte [esp + 0x16c], 0
mov dword [esp + 0x50], vtable.t_str.0
jne case.0x40f4be.1
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je case.0x40f4be.1
push eax
call fcn.00475125
add esp, 4
xor al, al
jmp 0x40f5f0
xor edi, edi
cmp byte [esi + 0x11c], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x4440
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], str.open
lea eax, [esi + 0xc]
jne 0x40f383
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x2ac]
add eax, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x34]
cmp eax, 0x20
mov ebp, eax
jg 0x40f5b0
cmp byte [esi + 0x11c], 0
je 0x40f3c9
add esi, 0xc
jmp 0x40f3cc
mov esi, dword [esi + 8]
lea ecx, [esp + 0x50]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0x50]
call fcn.00410960
push 0x4b9248
lea edi, [esp + 0x178]
mov dword [esp + 0x2a4], 3
call fcn.004108a0
mov esi, eax
push ebp
push 0x4b9a7c
mov edx, esi
mov byte [esp + 0x2a8], 4
call fcn.00410f90
push 0x4b77f8
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x10
cmp byte [esi + 0x11c], 0
je 0x40f436
add esi, 0xc
jmp 0x40f439
mov esi, dword [esi + 8]
add esi, 4
push esi
mov eax, ebx
call fcn.0040f780
mov esi, eax
lea eax, [esp + 0x54]
call fcn.00410580
cmp byte [esp + 0x290], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x174], esi
jne 0x40f480
mov eax, dword [esp + 0x17c]
lea ecx, [esp + 0x180]
cmp eax, ecx
je 0x40f480
push eax
call fcn.00475125
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
cmp byte [esp + 0x16c], 0
mov dword [esp + 0x50], esi
jne 0x40f4ae
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x5c]
cmp eax, edx
je 0x40f4ae
push eax
call fcn.00475125
add esp, 4
cmp ebp, 0x20
ja case.0x40f4be.1
movzx eax, byte [ebp + 0x40f644]
jmp dword [eax*4 + 0x40f60c]
push 0x4b9258
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_specified_file_was_not_found.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_specified_path_was_not_found.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_.exe_file_is_invalid__non_Microsoft_Win32_.exe_or_error_in_.exe_image_.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_operating_system_denied_access_to_the_specified_file.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_file_name_association_is_incomplete_or_invalid.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_Dynamic_Data_Exchange__DDE__transaction_could_not_be_completed_because_other_DDE_transactions_were_being_processed.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_DDE_transaction_failed.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_DDE_transaction_could_not_be_completed_because_the_request_timed_out.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.The_specified_dynamic_link_library__DLL__was_not_found.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.There_is_no_application_associated_with_the_given_file_name_extension.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.There_was_not_enough_memory_to_complete_the_operation.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
push str.A_sharing_violation_occurred.
mov eax, ebx
call fcn.00407b00
xor al, al
jmp 0x40f5f0
mov eax, dword [esp + 0x4c]
cmp eax, edi
jne 0x40f5c7
mov ecx, dword [esp + 0x2a8]
mov dword [ecx], 0xffffffff
jmp 0x40f5ee
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x2a8]
mov eax, dword [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x294
ret 8