Function at 0x10021330
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
xor ebp, ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov cl, byte [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x1c], cl
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x1c]
mov eax, dword [edx]
push eax
push ebp
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x1c]
push ecx
call fcn.10022840
add esp, 4
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x44
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 8]
test ecx, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jbe 0x100213c6
mov eax, dword [eax + 4]
mov dword [esp + 0x34], ecx
test eax, eax
je 0x100213c6
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x7c]
test al, al
je 0x100213dd
mov word [esp + 0x5c], 5
mov dword [esp + 0x58], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100213e7
mov eax, ecx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10021481
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
test ecx, ecx
je 0x10021422
mov edx, dword [esp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
mov ebp, eax
test ecx, ecx
jne 0x10021432
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push ecx
push str._comm__createProcess__s__successed__pid_d
push 0x10036380
lea ecx, [esp + 0x8c]
call fcn.100132b0
push eax
call fcn.100132c0
mov al, byte [esp + 0x88]
add esp, 0x10
test al, al
je 0x1002146b
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
jmp 0x100214b7
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x1002148f
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
call fcn.10013550
add esp, 4
lea ecx, [esp + 0x7c]
push eax
push esi
push str._comm__createProcess__s__failed:__s
push 0x100363b8
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100214e2
mov al, byte [ecx - 1]
test al, al
je 0x100214d8
cmp al, 0xff
je 0x100214d8
dec al
pop edi
mov byte [ecx - 1], al
mov eax, ebp
pop esi
pop ebp
add esp, 0x64
ret
dec ecx
push ecx
call fcn.1002eb22
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x64
ret