Function at 0x40bbd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov eax, 0x200bc
mov ebp, esp
push edi
push esi
push ebx
call fcn.00423e10
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 0x40bc00
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 0x40bbf2
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 0x40bdc1
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40be84
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20024], eax
cmp byte [ebx + 0x22], 0
je 0x40bde0
mov ecx, dword [ebx + 0x18]
or dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40bf97
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x20020], eax
cmp byte [ebx + 0x23], 0
je 0x40be00
mov ecx, dword [ebx + 0x1c]
or dword [ebp - 0x20030], 0x100
test ecx, ecx
je 0x40c096
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 0x2001c], eax
cmp byte [ebx + 0x20], 0
je 0x40bd33
mov eax, dword [ebx + 0x10]
or dword [ebp - 0x20030], 1
test eax, eax
je 0x40bdb0
cmp eax, 1
je 0x40c199
cmp eax, 2
je 0x40c1a7
cmp eax, 3
jne 0x40bdb0
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 0x40bd4a
mov edx, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x40]
test ebx, ebx
je 0x40be20
mov dword [ebp - 0x20054], 0
xor ebx, ebx
mov eax, dword [ebp - 0x20080]
test eax, eax
je 0x40bd77
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x2007c]
test eax, eax
je 0x40bd8d
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 0x40bbf2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x40bbf2
mov eax, 1
mov word [ebp - 0x2002c], ax
jmp 0x40bd33
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x20024], eax
jmp 0x40bca2
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x20020], eax
jmp 0x40bccb
mov dword [esp], 0xfffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [ebp - 0x2001c], eax
jmp 0x40bcf4
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 0x40bd61
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x449b5c
call fcn.00405450
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.00411710
mov ecx, edi
sub esp, 0x10
call fcn.00403630
mov ecx, dword [ebp - 0x2008c]
call fcn.00411100
test al, al
mov edi, eax
je 0x40bf87
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.004110d0
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 0x40bf6b
mov dword [esp + 8], 0x6e
mov dword [esp + 4], str.langProcess.cpp
mov dword [esp], str.DuplicateHandle_GetCurrentProcess____file.handle____GetCurrentProcess____input__0__TRUE__DUPLICATE_SAME_ACCESS_
call fcn.00411dc0
mov eax, dword [ebp - 0x20080]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20024], eax
call fcn.004118d0
jmp 0x40bca2
mov ecx, dword [ebp - 0x2008c]
call fcn.004118d0
jmp 0x40bbf2
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x449b5c
call fcn.00405450
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.00411710
mov ecx, edi
sub esp, 0x10
call fcn.00403630
mov ecx, dword [ebp - 0x2008c]
call fcn.00411100
test al, al
mov edi, eax
je 0x40bf87
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.004110d0
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 0x40c07a
mov dword [esp + 8], 0x81
mov dword [esp + 4], str.langProcess.cpp
mov dword [esp], str.DuplicateHandle_GetCurrentProcess____file.handle____GetCurrentProcess____output__0__TRUE__DUPLICATE_SAME_ACCESS_
call fcn.00411dc0
mov eax, dword [ebp - 0x2007c]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20020], eax
call fcn.004118d0
jmp 0x40bccb
lea edi, [ebp - 0x2006c]
mov ecx, edi
mov dword [esp], 0x449b5c
call fcn.00405450
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.00411710
mov ecx, edi
sub esp, 0x10
call fcn.00403630
mov ecx, dword [ebp - 0x2008c]
call fcn.00411100
test al, al
mov edi, eax
je 0x40bf87
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x20090], eax
call fcn.004110d0
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 0x40c17d
mov dword [esp + 8], 0x96
mov dword [esp + 4], str.langProcess.cpp
mov dword [esp], str.DuplicateHandle_GetCurrentProcess____file.handle____GetCurrentProcess____error__0__TRUE__DUPLICATE_SAME_ACCESS_
call fcn.00411dc0
mov eax, dword [ebp - 0x20078]
mov ecx, dword [ebp - 0x2008c]
mov dword [ebp - 0x2001c], eax
call fcn.004118d0
jmp 0x40bcf4
xor eax, eax
mov word [ebp - 0x2002c], ax
jmp 0x40bd33
mov eax, 2
mov word [ebp - 0x2002c], ax
jmp 0x40bd33