Function at 0x10024780
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 0x1002481f
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 0x10024813
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x38], ecx
je 0x1002481f
mov dword [esp + 0x38], eax
lea edx, [esp + 0xc]
mov word [esp + 0x60], 5
push edx
mov dword [esp + 0x60], 1
call fcn.10025f70
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x74]
push 0x10047f30
push eax
push 0x10047f34
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, 0x10047f38
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 0x100248c1
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x10024908
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 0x10024908
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, esi
mov esi, 0x10047f38
lea edi, [edx + eax]
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 0x10024935
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 0x10047f3c
lea ecx, [esp + 0x1c]
call fcn.1002ce00
push eax
call fcn.1002ce10
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x1002495f
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 0x100249e2
mov eax, dword [esp + 4]
test eax, eax
jne 0x1002498f
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 0x10047f68
lea ecx, [esp + 0x1c]
call fcn.1002ce00
push eax
call fcn.1002ce10
mov ecx, dword [esp + 0x10]
add esp, 0xc
test ecx, ecx
je 0x100249d8
mov al, byte [ecx - 1]
test al, al
je 0x100249ce
cmp al, 0xff
je 0x100249ce
dec al
mov byte [ecx - 1], al
or eax, 0xffffffff
add esp, 0x88
ret
dec ecx
push ecx
call fcn.1003ed30
add esp, 4
or eax, 0xffffffff
add esp, 0x88
ret
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x100249f0
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 0x10047f9c
lea ecx, [esp + 0x24]
call fcn.1002ce00
push eax
call fcn.1002ce10
mov eax, dword [esp + 0xb0]
add esp, 0x14
test eax, eax
je 0x10024a24
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x10024a4f
mov al, byte [ecx - 1]
test al, al
je 0x10024a45
cmp al, 0xff
je 0x10024a45
dec al
mov byte [ecx - 1], al
xor eax, eax
add esp, 0x88
ret
dec ecx
push ecx
call fcn.1003ed30
add esp, 4
xor eax, eax
add esp, 0x88
ret