Function at 0x402ec0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a74
call fcn.00416d20
mov eax, dword [0x435db4]
xor eax, esp
mov dword [esp + 0x1a6c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1a84]
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x76]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebp
mov word [esp + 0x7c], bx
call fcn.004151b0
add esp, 0xc
push esi
lea ecx, [esp + 0x74]
push 0x104
push ecx
mov dword [esp + 0x1c], ebx
call fcn.00413404
add esp, 0xc
cmp word [esi], 0x22
lea edi, [esp + 0x70]
jne 0x402f64
lea eax, [esp + 0x70]
lea edi, [esp + 0x72]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402f30
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x6e], 0x22
jne 0x402f64
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402f50
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x6e], bx
push 0x44
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.004151b0
add esp, 0xc
push 0xffe
lea eax, [esp + 0xa7e]
push ebx
push eax
mov dword [esp + 0x34], 0x44
mov word [esp + 0xa84], bx
call fcn.004151b0
add esp, 0xc
push ebp
push edi
push str._s__s
lea ecx, [esp + 0xa84]
push 0x800
push ecx
call fcn.00413072
add esp, 0x14
push 0x7fe
lea edx, [esp + 0x27e]
push ebx
push edx
mov word [esp + 0x284], bx
call fcn.004151b0
add esp, 0xc
push esi
push str.__s_
lea eax, [esp + 0x280]
push 0x400
push eax
call fcn.00413072
add esp, 0x10
cmp dword [esp + 0x1a88], ebx
mov ebp, 1
je 0x402fff
xor ebp, ebp
lea ecx, [esp + 0xa78]
push ecx
push str.CreateProcess__s
call fcn.00403590
mov edi, eax
call fcn.00403a70
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 8
push ebx
push ebx
push ebx
lea ecx, [esp + 0xa98]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4030d1
push str.CreateProcess_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00403590
mov ecx, eax
call fcn.00403be0
add esp, 4
push str.Attempt_spawn_before_giving_up...
call fcn.00403590
mov edi, eax
call fcn.00403a70
mov ebx, dword [esp + 0x18]
add esp, 4
push ebx
lea edx, [esp + 0x27c]
push edx
push str._tspawnl__s__s
call fcn.00403590
mov edi, eax
call fcn.00403a70
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x280]
push eax
push esi
push ebp
call fcn.0041360b
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40312d
call fcn.00413695
push str.tspawn_failed
mov esi, eax
call fcn.00403590
mov ebx, dword [esi]
mov ecx, eax
call fcn.00403be0
add esp, 4
jmp 0x403129
cmp dword [esp + 0x1a88], ebx
je 0x40310d
push str.Waiting_for_CreateProcess_to_complete
call fcn.00403590
mov edi, eax
call fcn.00403a70
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x403115
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1a7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412bb4
add esp, 0x1a74
ret