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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4051d3
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0xd8]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0x44
push 0xb0
push 0
push eax
movlpd qword [ebp - 0x118], xmm0
movlpd qword [ebp - 0x110], xmm0
movlpd qword [ebp - 0x108], xmm0
movlpd qword [ebp - 0x100], xmm0
movlpd qword [ebp - 0xf8], xmm0
movlpd qword [ebp - 0xf0], xmm0
movlpd qword [ebp - 0xe8], xmm0
movlpd qword [ebp - 0xe0], xmm0
movups xmmword [ebp - 0x12c], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xd8], 0x40669c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xc8], 0x4066f8
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x130], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xc0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov edx, 0x406384
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.00403590
cmp dword [esi + 0x14], 7
mov edx, esi
jbe 0x40151e
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00403e20
add esp, 4
mov edx, 0x406380
mov ecx, eax
call fcn.00403590
mov byte [ebp - 4], 3
xor eax, eax
mov edx, dword [ebp - 0x84]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x130], 5
movq qword [ebp - 0x140], xmm0
cmp al, 2
je 0x40159b
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax]
test ecx, ecx
je 0x40159b
mov eax, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0x88]
cmovb ecx, dword [ebp - 0x88]
mov edx, dword [eax]
sub ecx, edx
jmp 0x4015c2
test dl, 4
jne 0x401603
mov eax, dword [ebp - 0xa4]
mov esi, dword [eax]
test esi, esi
je 0x401603
mov eax, dword [ebp - 0xb4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
add ecx, ecx
sub ecx, edx
add ecx, esi
mov eax, edx
sar ecx, 1
test eax, eax
je 0x401603
cmp ecx, 7
ja 0x4015ec
lea esi, [ecx + ecx]
mov dword [ebp - 0x18], ecx
push esi
push edx
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x401603
push edx
mov byte [ebp - 0x134], 0
push dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403c80
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 4
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401670
push 0x4037c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, 0x406398
push eax
call fcn.00403590
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0xffffffffffffffff
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x12c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x128]
call esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4016d0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404306
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x14], 7
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call fcn.00402ec0
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004042c8
mov esp, ebp
pop ebp
ret