Function at 0x40ed80
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x465370
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x18c], eax
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x1ac]
test ecx, ecx
je 0x40f1b1
cmp byte [ecx], 0
je 0x40f1b1
mov eax, ecx
mov dword [esp + 0x194], 0xf
mov dword [esp + 0x190], 0
mov byte [esp + 0x180], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40edf4
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x184]
call fcn.00408130
push 4
push 0
push str.__t_r_n
lea ecx, [esp + 0x188]
mov dword [esp + 0x1b0], 2
call fcn.0040bb70
push eax
push 0
lea ecx, [esp + 0x184]
call fcn.004082e0
cmp dword [esp + 0x190], 0
jne 0x40ee64
cmp dword [esp + 0x194], 0x10
jb 0x40f26f
mov eax, dword [esp + 0x180]
push eax
call fcn.0041f6a2
jmp 0x40f26c
push 0x40
lea ecx, [esp + 0x140]
push 0
push ecx
or edi, 0xffffffff
call fcn.0043cea0
mov dx, word [esp + 0x1bc]
xor eax, eax
mov esi, 0x10
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x180]
mov dword [esp + 0xc], 0
mov dword [esp + 0x138], 0x44
mov dword [esp + 0x164], 1
mov word [esp + 0x168], dx
cmp dword [esp + 0x194], esi
jae 0x40eed3
lea eax, [esp + 0x180]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c0]
lea edx, [esp + 0x13c]
push edx
push 0
push 0
push ecx
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 1
lea ecx, [esp + 0x3c]
push 2
test eax, eax
je 0x40f0cc
call fcn.00407d10
push 0x46abe4
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 0x40]
push 0x46ab18
push eax
mov byte [esp + 0x1b4], 3
call fcn.004052a0
add esp, 8
push eax
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004048a0
mov byte [esp + 0x1a4], 4
cmp dword [eax + 0x18], esi
jb 0x40ef69
mov eax, dword [eax + 4]
jmp 0x40ef6c
add eax, 4
push eax
push str.BaseLib::CCreateProcess::CreateProcessA
push 0x5a
push str..common_function.cpp
push 0x802
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
lea ecx, [esp + 0x1c]
call fcn.00408840
lea ecx, [esp + 0x84]
mov byte [esp + 0x1a4], 2
call fcn.00405530
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
xor edi, edi
cmp dword [esp + 0x1b4], 1
jne 0x40f0ae
mov eax, dword [esp + 0x1b8]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f0ae
cmp dword [esp + 0x1c0], 0
mov edi, 1
je 0x40f0ae
push edi
push 2
lea ecx, [esp + 0xc0]
call fcn.00407d10
lea edx, [esp + 0x17c]
push edx
lea eax, [esp + 0xbc]
push 0x46abac
push eax
mov byte [esp + 0x1b0], 5
call fcn.004052a0
add esp, 8
push eax
call fcn.00404390
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xbc]
call fcn.004048a0
mov byte [esp + 0x1a4], 6
cmp dword [eax + 0x18], esi
jb 0x40f063
mov eax, dword [eax + 4]
jmp 0x40f066
add eax, 4
push eax
push str.BaseLib::CCreateProcess::CreateProcessA
push 0x64
push str..common_function.cpp
push 0x802
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
lea ecx, [esp + 0x1c]
call fcn.00408840
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1a4], 2
call fcn.004055a0
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov esi, 0x10
jmp 0x40f191
call fcn.00407d10
mov byte [esp + 0x1a4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46aba4
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x44]
push 0x46ab18
push eax
call fcn.004052a0
add esp, 8
push eax
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
mov ecx, eax
call fcn.004011c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004048a0
mov byte [esp + 0x1a4], 8
cmp dword [eax + 0x18], esi
jb 0x40f138
mov eax, dword [eax + 4]
jmp 0x40f13b
add eax, 4
push eax
push str.BaseLib::CCreateProcess::CreateProcessA
push 0x6f
push str..common_function.cpp
push 0x802
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
lea ecx, [esp + 0x1c]
call fcn.00408840
lea ecx, [esp + 0x84]
mov byte [esp + 0x1a4], 2
call fcn.00405530
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
cmp dword [esp + 0x194], esi
jb 0x40f1aa
mov eax, dword [esp + 0x180]
push eax
call fcn.0041f6a2
add esp, 4
mov eax, edi
jmp 0x40f272
push 1
push 2
lea ecx, [esp + 0xc0]
call fcn.00407d10
lea ecx, [esp + 0xb8]
push 0x46ab98
push ecx
mov dword [esp + 0x1ac], 0
call fcn.004052a0
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xbc]
call fcn.004048a0
mov esi, 0x10
mov byte [esp + 0x1a4], 1
cmp dword [eax + 0x18], esi
jb 0x40f209
mov eax, dword [eax + 4]
jmp 0x40f20c
add eax, 4
push eax
push str.BaseLib::CCreateProcess::CreateProcessA
push 0x42
push str..common_function.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
cmp dword [esp + 0x34], esi
jb 0x40f23d
mov eax, dword [esp + 0x20]
push eax
call fcn.0041f6a2
add esp, 4
lea ecx, [esp + 0x104]
mov dword [esp + 0x1a4], 0xffffffff
call fcn.00405530
lea ecx, [esp + 0x104]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x19c
ret 0x18