Function at 0x40e490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov eax, 0x200bc
mov ebp, esp
push edi
push esi
push ebx
call fcn.00432100
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 0x40e4c0
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 0x40e4b2
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 0x40e681
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40e744
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20024], eax
cmp byte [ebx + 0x22], 0
je 0x40e6a0
mov ecx, dword [ebx + 0x18]
or dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40e857
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20020], eax
cmp byte [ebx + 0x23], 0
je 0x40e6c0
mov ecx, dword [ebx + 0x1c]
or dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40e956
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x2001c], eax
cmp byte [ebx + 0x20], 0
je 0x40e5f3
mov eax, dword [ebx + 0x10]
or dword [ebp - 0x20030], 1
test eax, eax
je 0x40e670
cmp eax, 1
je 0x40ea59
cmp eax, 2
je 0x40ea67
cmp eax, 3
jne 0x40e670
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 0x40e60a
mov edx, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x40]
test ebx, ebx
je 0x40e6e0
mov dword [ebp - 0x20054], 0
xor ebx, ebx
mov eax, dword [ebp - 0x20080]
test eax, eax
je 0x40e637
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x2007c]
test eax, eax
je 0x40e64d
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 0x40e4b2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x40e4b2
mov eax, 1
mov word [ebp - 0x2002c], ax
jmp 0x40e5f3
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x20024], eax
jmp 0x40e562
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x20020], eax
jmp 0x40e58b
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x2001c], eax
jmp 0x40e5b4
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 0x40e621
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x457d6c
call fcn.00407ca0
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.004146a0
mov ecx, edi
sub esp, 0x10
call fcn.00405e80
mov ecx, dword [ebp - 0x2008c]
call fcn.00414090
test al, al
mov edi, eax
je 0x40e847
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.00414060
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 0x40e82b
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.00414d50
mov eax, dword [ebp - 0x20080]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20024], eax
call fcn.00414860
jmp 0x40e562
mov ecx, dword [ebp - 0x2008c]
call fcn.00414860
jmp 0x40e4b2
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x457d6c
call fcn.00407ca0
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.004146a0
mov ecx, edi
sub esp, 0x10
call fcn.00405e80
mov ecx, dword [ebp - 0x2008c]
call fcn.00414090
test al, al
mov edi, eax
je 0x40e847
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.00414060
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 0x40e93a
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.00414d50
mov eax, dword [ebp - 0x2007c]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20020], eax
call fcn.00414860
jmp 0x40e58b
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x457d6c
call fcn.00407ca0
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.004146a0
mov ecx, edi
sub esp, 0x10
call fcn.00405e80
mov ecx, dword [ebp - 0x2008c]
call fcn.00414090
test al, al
mov edi, eax
je 0x40e847
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.00414060
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 0x40ea3d
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.00414d50
mov eax, dword [ebp - 0x20078]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x2001c], eax
call fcn.00414860
jmp 0x40e5b4
xor eax, eax
mov word [ebp - 0x2002c], ax
jmp 0x40e5f3
mov eax, 2
mov word [ebp - 0x2002c], ax
jmp 0x40e5f3