Function at 0x40e6a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov eax, 0x200bc
mov ebp, esp
push edi
push esi
push ebx
call fcn.00432310
xor edi, edi
sub esp, eax
mov eax, dword [ecx + 4]
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40e6d0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 0xc]
cmp eax, 0xfffe
jg 0x40e6c2
lea edx, [eax + eax + 2]
mov eax, 0x1fffe
cmp edx, 0x1fffd
cmovbe eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20080], 0
mov dword [ebp - 0x2007c], 0
mov dword [ebp - 0x20078], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x20018]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [ebp - 0x2005c]
mov dword [ebp - 0x2005c], 0x44
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x20030], 0
sub esp, 4
cmp byte [ebx + 0x21], 0
je 0x40e891
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40e954
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20024], eax
cmp byte [ebx + 0x22], 0
je 0x40e8b0
mov ecx, dword [ebx + 0x18]
or dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40ea67
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20020], eax
cmp byte [ebx + 0x23], 0
je 0x40e8d0
mov ecx, dword [ebx + 0x1c]
or dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40eb66
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x2001c], eax
cmp byte [ebx + 0x20], 0
je 0x40e803
mov eax, dword [ebx + 0x10]
or dword [ebp - 0x20030], 1
test eax, eax
je 0x40e880
cmp eax, 1
je 0x40ec69
cmp eax, 2
je 0x40ec77
cmp eax, 3
jne 0x40e880
mov eax, 3
mov word [ebp - 0x2002c], ax
cmp byte [ebx + 0x64], 1
mov edi, dword [ebx + 0x30]
sbb eax, eax
xor edx, edx
not eax
and eax, 0x10
test edi, edi
je 0x40e81a
mov edx, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x40]
test ebx, ebx
je 0x40e8f0
mov dword [ebp - 0x20054], 0
xor ebx, ebx
mov eax, dword [ebp - 0x20080]
test eax, eax
je 0x40e847
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x2007c]
test eax, eax
je 0x40e85d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x20078]
mov edi, ebx
test eax, eax
je 0x40e6c2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x40e6c2
mov eax, 1
mov word [ebp - 0x2002c], ax
jmp 0x40e803
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x20024], eax
jmp 0x40e772
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x20020], eax
jmp 0x40e79b
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x2001c], eax
jmp 0x40e7c4
mov ecx, dword [esi + 4]
lea esi, [ebp - 0x2005c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20030]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
and eax, 0x100
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20018]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
setne bl
jmp 0x40e831
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x458db8
call fcn.00407eb0
lea eax, [ebp - 0x20074]
mov ecx, eax
mov dword [ebp - 0x2008c], eax
sub esp, 4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.004148b0
mov ecx, edi
sub esp, 0x10
call fcn.00406090
mov ecx, dword [ebp - 0x2008c]
call fcn.004142a0
test al, al
mov edi, eax
je 0x40ea57
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.00414270
mov dword [ebp - 0x20094], eax
call edi
lea edx, [ebp - 0x20080]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20090]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20094]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x40ea3b
mov dword [esp + 8], 0x72
mov dword [esp + 4], str.langProcess.cpp
mov dword [esp], str.DuplicateHandle_GetCurrentProcess____file.handle____GetCurrentProcess____input__0__TRUE__DUPLICATE_SAME_ACCESS_
call fcn.00414f60
mov eax, dword [ebp - 0x20080]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20024], eax
call fcn.00414a70
jmp 0x40e772
mov ecx, dword [ebp - 0x2008c]
call fcn.00414a70
jmp 0x40e6c2
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x458db8
call fcn.00407eb0
lea eax, [ebp - 0x20074]
mov ecx, eax
mov dword [ebp - 0x2008c], eax
sub esp, 4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.004148b0
mov ecx, edi
sub esp, 0x10
call fcn.00406090
mov ecx, dword [ebp - 0x2008c]
call fcn.004142a0
test al, al
mov edi, eax
je 0x40ea57
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.00414270
mov dword [ebp - 0x20094], eax
call edi
lea edx, [ebp - 0x2007c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20090]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20094]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x40eb4a
mov dword [esp + 8], 0x85
mov dword [esp + 4], str.langProcess.cpp
mov dword [esp], str.DuplicateHandle_GetCurrentProcess____file.handle____GetCurrentProcess____output__0__TRUE__DUPLICATE_SAME_ACCESS_
call fcn.00414f60
mov eax, dword [ebp - 0x2007c]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20020], eax
call fcn.00414a70
jmp 0x40e79b
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x458db8
call fcn.00407eb0
lea eax, [ebp - 0x20074]
mov ecx, eax
mov dword [ebp - 0x2008c], eax
sub esp, 4
mov dword [esp + 0xc], 3
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.004148b0
mov ecx, edi
sub esp, 0x10
call fcn.00406090
mov ecx, dword [ebp - 0x2008c]
call fcn.004142a0
test al, al
mov edi, eax
je 0x40ea57
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.00414270
mov dword [ebp - 0x20094], eax
call edi
lea edx, [ebp - 0x20078]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20090]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20094]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x40ec4d
mov dword [esp + 8], 0x9a
mov dword [esp + 4], str.langProcess.cpp
mov dword [esp], str.DuplicateHandle_GetCurrentProcess____file.handle____GetCurrentProcess____error__0__TRUE__DUPLICATE_SAME_ACCESS_
call fcn.00414f60
mov eax, dword [ebp - 0x20078]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x2001c], eax
call fcn.00414a70
jmp 0x40e7c4
xor eax, eax
mov word [ebp - 0x2002c], ax
jmp 0x40e803
mov eax, 2
mov word [ebp - 0x2002c], ax
jmp 0x40e803