Function at 0x40e9a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b35f
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test al, 2
je 0x40eb8e
push 0x44
lea eax, [ebp - 0x26c]
push edi
push eax
call fcn.005557a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3a0]
add esp, 0xc
mov word [ebp - 0x23c], ax
cmp dword [ebp + 0x30], 8
lea eax, [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x26c], 0x44
cmovae eax, dword [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x240], 1
push ecx
push edi
push edi
push dword [ebp + 0x10]
movdqu xmmword [ebp - 0x3a0], xmm0
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40eb49
push dword [ebp - 0x394]
mov dword [ebp - 0x3bc], 0x5eab18
push dword [ebp - 0x398]
mov dword [ebp - 0x3b8], edi
push ecx
lea ecx, [ebp + 0x1c]
call fcn.004024f0
movq xmm0, qword [ebp - 0x3bc]
push eax
push str._tasp::library_CreateProcess__command:_s__pid_lu_tid_lu._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404820
mov ecx, dword [ebp - 0x220]
add esp, 0x1c
mov edi, 1
test ecx, ecx
je 0x40eabb
mov eax, dword [ebp - 0x398]
mov dword [ecx], eax
test byte [ebp + 0xc], 4
je 0x40eb2e
push 0xffffffffffffffff
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x220]
test esi, esi
je 0x40eaf8
mov dword [esi], eax
push eax
push str._tasp::library_GetExitCodeProcess_ExitCode_lu._n
sub esp, 0xc
mov dword [ebp - 0x3bc], 0x5eab70
mov eax, esp
mov dword [ebp - 0x3b8], 0
movq xmm0, qword [ebp - 0x3bc]
movq qword [eax], xmm0
mov dword [eax + 8], edi
call fcn.00404820
add esp, 0x14
push dword [ebp - 0x3a0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x39c]
call esi
jmp 0x40ef13
mov dword [ebp - 0x3bc], 0x5eabf0
mov dword [ebp - 0x3b8], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x3bc]
push eax
push str._tasp::library_CreateProcess_err:_lu
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404820
add esp, 0x14
jmp 0x40ef13
test al, 1
je 0x40ef13
cmp dword [0x627980], edi
je 0x40ef11
cmp dword [0x62798c], edi
je 0x40ef11
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x38c]
call fcn.00402340
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.004020c0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 2
call fcn.004020c0
push 0
push 0x5e94ec
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 3
call fcn.004146b0
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x40ecbb
inc eax
lea ecx, [ebp - 0x38c]
push eax
push 0x5e94ec
mov dword [ebp - 0x224], eax
call fcn.004146b0
mov dword [ebp - 0x390], eax
cmp eax, 0xffffffff
je 0x40ecbb
sub eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x38c]
dec eax
push eax
push dword [ebp - 0x224]
lea eax, [ebp - 0x3a8]
push eax
call fcn.00414700
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x40ec5f
push 0xffffffffffffffff
push 0
push eax
call fcn.0041ee90
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 4], 3
call fcn.0041f360
mov eax, dword [ebp - 0x37c]
mov ecx, dword [ebp - 0x390]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x38c]
call fcn.00414700
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x40ecac
push 0xffffffffffffffff
push 0
push eax
call fcn.0041ee90
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 4], 3
call fcn.0041f360
push 0x38
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.005557a0
add esp, 0xc
mov dword [ebp - 0x264], 0x3c
and dword [ebp + 0xc], 4
mov ecx, 0x40
mov eax, 0x400
mov dword [ebp - 0x25c], 0
cmovne eax, ecx
mov dword [ebp - 0x258], str.Open
cmp dword [ebp - 0x318], 8
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x32c]
cmovae eax, dword [ebp - 0x32c]
cmp dword [ebp - 0x2b8], 8
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x2cc]
cmovae eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40eeae
push dword [ebp - 0x22c]
mov dword [ebp - 0x3bc], 0x5eac50
mov dword [ebp - 0x3b8], 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push dword [ebp - 0x248]
push dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x2cc]
call fcn.004024f0
push eax
push ecx
lea ecx, [ebp - 0x32c]
call fcn.004024f0
movq xmm0, qword [ebp - 0x3bc]
push eax
push str._tasp::library_ShellExecuteEx__lpFile:_s___lpParameters:_s___fMask:_lu___nShow:_d__pid_lu._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404820
add esp, 0x24
cmp dword [ebp + 0xc], 0
je 0x40eea7
lea eax, [ebp - 0x224]
push eax
push 4
lea eax, [ebp - 0x390]
push eax
push dword [ebp - 0x22c]
call dword [0x627980]
test eax, eax
je 0x40ee25
mov eax, dword [0x62798c]
test eax, eax
je 0x40ee25
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x390]
push dword [ebp - 0x22c]
call eax
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x40ee5c
mov eax, dword [ebp - 0x220]
mov dword [esi], eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x220]
mov dword [ebp - 0x3bc], 0x5eace8
push str._tasp::library_ShellExecuteEx:GetExitCodeProcess_ExitCode_lu._n
sub esp, 0xc
mov dword [ebp - 0x3b8], 0
movq xmm0, qword [ebp - 0x3bc]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.00404820
add esp, 0x14
mov edi, 1
jmp 0x40eeee
mov dword [ebp - 0x3bc], 0x5ead68
mov dword [ebp - 0x3b8], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x3bc]
push eax
push str._tasp::library_ShellExecuteEx_err:_lu_n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404820
add esp, 0x14
lea ecx, [ebp - 0x2cc]
call fcn.00402150
lea ecx, [ebp - 0x32c]
call fcn.00402150
lea ecx, [ebp - 0x38c]
call fcn.00402150
jmp 0x40ef13
xor edi, edi
lea ecx, [ebp + 0x1c]
call fcn.00402150
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret 0x74