Function at 0x40cd90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x454e05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0x1c]
mov ebp, 0xe
lea edx, [esp + 0x20]
mov ecx, dword [esi]
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebp
mov edi, dword [ecx + 4]
push edx
mov dword [esp + 0xa8], ebx
call fcn.0040d3c0
cmp dword [eax], edi
jne 0x40ce04
push 1
lea ecx, [esp + 0xb0]
mov dword [esp + 0xa4], 0xffffffff
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 eax, 1
jmp 0x40d119
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], 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_]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esi]
push edx
mov byte [esp + 0xa8], 1
mov dword [esp + 0x24], ebp
call fcn.0040d3c0
mov esi, dword [eax]
lea eax, [esp + 0x14]
add esi, 0x10
push eax
mov ecx, dword [esi]
call fcn.00410ae0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x40cfc4
mov ebp, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
test ebx, ebx
jne 0x40d0a7
lea ecx, [esp + 0x34]
push 3
push ecx
lea ecx, [eax + 0x10]
call fcn.0040a150
lea edx, [esp + 0x34]
lea ecx, [esp + 0x68]
push edx
mov byte [esp + 0xa4], 2
call fcn.00414e60
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 3
push ecx
mov ecx, eax
call fcn.00414f80
push str.index
push eax
mov byte [esp + 0xa8], 4
call ebp
add esp, 8
lea ecx, [esp + 0x58]
mov bl, al
mov byte [esp + 0xa0], 3
push 1
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 + 0x8c]
mov byte [esp + 0xa4], 2
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 + 0x7c]
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 + 0x6c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
je 0x40cf18
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 + 0x34]
mov eax, dword [edx]
push eax
push 0
push ecx
lea ecx, [esp + 0x30]
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 edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 5
mov ecx, dword [edx + 0x14]
lea edi, [edx + 0x14]
lea edx, [esp + 0x24]
push edx
call fcn.0040d410
mov edi, dword [edi]
mov eax, dword [esp + 0x20]
mov edi, dword [edi + 4]
cmp eax, edi
je 0x40d0c3
mov edi, dword [eax + 0x18]
mov ebx, dword [eax + 0x10]
lea eax, [esp + 0x34]
lea ecx, [esp + 0xac]
push eax
lea edx, [esp + 0x4c]
push ecx
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___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push edi
push ebx
push eax
mov byte [esp + 0xb8], 5
call fcn.0041aee0
add esp, 0x18
lea ecx, [esp + 0x48]
mov ebx, eax
mov byte [esp + 0xa0], 2
push 1
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 + 0x38]
mov byte [esp + 0xa4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x18]
call fcn.00404040
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
jne 0x40ce61
test ebx, ebx
jne 0x40d0a7
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40d05b
mov eax, dword [esp + 0xb4]
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 esi, dword [ecx]
lea edi, [eax - 1]
cmp eax, edi
jae 0x40cfec
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov eax, dword [esp + 0xb4]
mov ecx, eax
sub ecx, edi
cmp ecx, esi
jae 0x40d00a
mov esi, ecx
test esi, esi
jbe 0x40d05b
mov ecx, dword [esp + 0xb0]
sub eax, esi
sub eax, edi
lea edx, [ecx + esi]
push eax
add edx, edi
add ecx, edi
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov edi, dword [esp + 0xc0]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0xac]
push 0
push edi
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 0x40d05b
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb4], edi
mov byte [eax + edi], 0
lea ecx, [esp + 0x24]
lea edx, [esp + 0xac]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
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___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x40d081
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]
mov ecx, dword [esp + 0xbc]
push 5
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
lea ecx, [esp + 0x4c]
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 [esp + 0x28]
xor esi, esi
cmp ecx, esi
je 0x40d0e4
mov al, byte [ecx - 1]
test al, al
je 0x40d0da
cmp al, 0xff
je 0x40d0da
dec al
mov byte [ecx - 1], al
jmp 0x40d0e4
mov dl, byte [esp + 0x13]
lea eax, [esp + 0x13]
push 0x45c3a8
push eax
mov byte [esp + 0x1b], dl
call sub.MSVCRT.dll__CxxThrowException
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x28], esi
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
je 0x40d117
mov al, byte [ecx - 1]
test al, al
je 0x40d10d
cmp al, 0xff
je 0x40d10d
dec al
mov byte [ecx - 1], al
jmp 0x40d117
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret