Function at 0x1002aa00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x88
push ebp
push esi
mov esi, dword [esp + 0x94]
push edi
push 0
lea ecx, [esp + 0x10]
mov al, byte [esi]
mov byte [esp + 0x10], al
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0xc]
push edx
push 0
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_]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x30], 0x44
mov ecx, dword [eax + 8]
test ecx, ecx
jbe 0x1002aa9f
mov eax, dword [eax + 4]
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]
test eax, eax
mov dword [esp + 0x3c], ecx
je 0x1002aa93
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x38], ecx
je 0x1002aa9f
mov dword [esp + 0x38], eax
lea edx, [esp + 0xc]
mov word [esp + 0x60], 5
push edx
mov dword [esp + 0x60], 1
call fcn.1002c280
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x74]
push 0x100526ac
push eax
push 0x100526b0
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
lea edx, [esp + 0x88]
push eax
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 0xc
mov edx, dword [ecx]
lea ecx, [esp + 0xc]
push edx
push 0
push eax
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_]
push 1
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x78]
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 edi, 0x100526b4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x1002ab41
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1002ab88
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1002ab88
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, esi
mov esi, 0x100526b4
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [esp + 0x9c]
mov edx, dword [ecx]
lea ecx, [esp + 0xc]
push edx
push 0
push eax
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
jne 0x1002abb5
mov eax, 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 str._comm__create_process_indesk__s_
push 0x100526b8
lea ecx, [esp + 0x1c]
call fcn.10030b00
push eax
call fcn.10030b10
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x1002abdf
mov eax, 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]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
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
jne 0x1002ac62
mov eax, dword [esp + 4]
test eax, eax
jne 0x1002ac0f
mov eax, 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 str._comm__create_process_indesk__s__failed
push 0x100526e4
lea ecx, [esp + 0x1c]
call fcn.10030b00
push eax
call fcn.10030b10
mov ecx, dword [esp + 0x10]
add esp, 0xc
test ecx, ecx
je 0x1002ac58
mov al, byte [ecx - 1]
test al, al
je 0x1002ac4e
cmp al, 0xff
je 0x1002ac4e
dec al
mov byte [ecx - 1], al
or eax, 0xffffffff
add esp, 0x88
ret
dec ecx
push ecx
call fcn.10047cb0
add esp, 4
or eax, 0xffffffff
add esp, 0x88
ret
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x1002ac70
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]
mov eax, dword [esp + 0x1c]
push eax
push eax
push ecx
push str._comm__create_process_indesk__s__successed:_pid_d_0x_08x_
push 0x10052718
lea ecx, [esp + 0x24]
call fcn.10030b00
push eax
call fcn.10030b10
mov eax, dword [esp + 0xb0]
add esp, 0x14
test eax, eax
je 0x1002aca4
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1002accf
mov al, byte [ecx - 1]
test al, al
je 0x1002acc5
cmp al, 0xff
je 0x1002acc5
dec al
mov byte [ecx - 1], al
xor eax, eax
add esp, 0x88
ret
dec ecx
push ecx
call fcn.10047cb0
add esp, 4
xor eax, eax
add esp, 0x88
ret