Function at 0x410b1f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x412966
call fcn.004111a0
sub esp, 0x464
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], 1
mov eax, dword [esi + 0xe8]
test eax, eax
jne 0x410b8e
mov eax, dword [esi + 0x98]
mov edx, 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
jne 0x410b57
mov eax, edx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x410b60
mov ecx, edx
push eax
push 0x419db0
push ecx
lea eax, [ebp - 0x470]
push 0x419d98
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esi + 0xf0]
add esp, 0x14
lea edx, [ebp - 0x470]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
cmp dword [esi + 0xac], 0xa
jbe 0x410c64
mov ebx, dword [esi + 0xe4]
mov edi, dword [ebx]
cmp edi, ebx
je 0x410bc6
lea eax, [esi + 0xa4]
push eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.MSVCP60.dll_bool___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__]
pop ecx
test al, al
pop ecx
jne 0x410bc2
mov edi, dword [edi]
jmp 0x410ba3
cmp edi, ebx
jne 0x410c08
mov eax, dword [esi + 0xa8]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
jne 0x410be7
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 dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x410c0f
mov edi, 0x419d90
jmp 0x410c14
mov edi, 0x419d88
mov eax, dword [esi + 0x98]
mov edx, 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
jne 0x410c26
mov eax, edx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x410c2f
mov ecx, edx
push edi
push eax
push ecx
lea eax, [ebp - 0x470]
push 0x419d70
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esi + 0xf0]
add esp, 0x14
lea edx, [ebp - 0x470]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
neg eax
sbb eax, eax
neg eax
jmp 0x410d80
cmp dword [esi + 0x7c], 0
je 0x410d7d
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x60], 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 edi, 0x419de8
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x60]
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_char_const___unsigned_int_]
and dword [ebp - 4], 0
mov edi, 0x419d6c
push edi
lea ebx, [esi + 0x74]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push 0
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
cmp edi, 0xffffffff
jle 0x410cff
push dword [esi + 0x7c]
lea eax, [edi + 1]
mov ecx, ebx
push eax
lea eax, [ebp - 0x70]
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__::substr_unsigned_int__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 byte [ebp - 4], 1
push dword [ecx]
lea ecx, [ebp - 0x60]
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_]
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x70]
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 edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
mov ebx, dword [ebx + 4]
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]
xor edi, edi
mov dword [ebp - 0x50], 0x3c
cmp ebx, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
je 0x410d23
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
cmp ecx, edi
je 0x410d30
mov dword [ebp - 0x3c], ecx
push 1
lea eax, [ebp - 0x50]
pop ebx
mov dword [ebp - 0x38], edi
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, dword [esi + 0xc8]
mov dword [ebp - 0x14], eax
cmp esi, edi
jne 0x410d59
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 esi
push 0x419de8
push str.rerun
push 0x419ab8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x60]
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, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret