Function at 0x401100
Capabilities:
Check mutex on windows
Check os version
Set current directory

Disassembly:
mov eax, 0x248c
call fcn.0040a9e0
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00402610
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00402910
add esp, 0xc
lea ecx, [esp + 0x24]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [esp + 0xc]
mov esi, 8
cmp dword [esp + 0x20], esi
jae 0x401140
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
lea edx, [esp + 0xf0]
push edx
push 0xffffffffffffffff
push 0
call dword [sym.imp.user32.dll_EnumDisplaySettingsA]
cmp dword [esp + 0x158], esi
jae 0x40118d
push 0x10
push str.Error
push str.Current_display_settings_are_not_supported._nPlease_setup_desktop_to_at_minimum_256_color_mode_and_try_again.
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
lea ecx, [esp + 8]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
or eax, 0xffffffff
pop esi
add esp, 0x248c
ret 0x10
push 0x1000
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
je 0x4011c7
push 0x10
push str.FATAL_ERROR
push str.You_cannot_launch_this_program_in_a_remote_session_
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
lea ecx, [esp + 8]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
or eax, 0xffffffff
pop esi
add esp, 0x248c
ret 0x10
push 0x90
lea eax, [esp + 0x64]
push 0
push eax
call sub.msvcr80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x4014b9
mov eax, dword [esp + 0x60]
cmp eax, 5
jb 0x4014b9
cmp dword [esp + 0x6c], 2
jne 0x4014b9
cmp eax, 5
push ebx
jbe 0x401284
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0xf], 1
call fcn.00402610
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x401230
mov eax, dword [eax + 4]
jmp 0x401233
add eax, 4
lea ecx, [esp + 0xb]
push ecx
push eax
call fcn.004016d0
add esp, 8
lea ecx, [esp + 0x28]
mov bl, al
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
test bl, bl
je 0x401284
cmp byte [esp + 0xb], 0
jne 0x401284
push 0x10
push str.FATAL_ERROR
push str.You_are_not_allowed_to_launch_this_game_
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0x248c
ret 0x10
lea ecx, [esp + 0x28]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea edx, [esp + 0x28]
push edx
call fcn.004027d0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push str.Majesty_2_mutex_F29BB1EA_3EB5_4e36_9C7D_D150E71AAF3A
push ecx
call dword [sym.imp.msvcp80.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___unsigned_short_int_const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov eax, dword [esp + 0x58]
add esp, 0x10
cmp dword [esp + 0x5c], esi
jae 0x4012be
lea eax, [esp + 0x48]
push eax
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [0x4121b8], eax
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401326
mov edx, dword [str.Another_copy_of_this_application_is_already_running._nYou_cannot_run_multiple_instances_of_this_application_simultaneously.]
push 0x10
push 0x40c6d0
push edx
push 0
mov dword [0x4121b8], 0
call dword [sym.imp.user32.dll_MessageBoxW]
lea ecx, [esp + 0x44]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0x28]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0xc]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop ebx
xor eax, eax
pop esi
add esp, 0x248c
ret 0x10
push ebp
lea ecx, [esp + 0x48]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0x2c]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [str.Game_pf_ps_mss_features]
xor ebx, ebx
lea ebp, [esp + 0x398]
push edi
lea ebx, [ebx]
mov cl, byte [eax]
test cl, cl
mov esi, eax
je 0x401367
cmp cl, 0x20
je 0x401367
mov cl, byte [esi + 1]
add esi, 1
test cl, cl
jne 0x401358
mov ecx, esi
sub ecx, eax
push ecx
push eax
lea edi, [ebp + 4]
push 0x104
push edi
call dword [sym.imp.msvcr80.dll_strncpy_s]
push str..dll
push 0x104
push edi
call dword [sym.imp.msvcr80.dll_strcat_s]
push edi
call fcn.00401050
add esp, 0x20
test eax, eax
mov dword [ebp], eax
je 0x4013ed
mov cl, byte [esi]
add ebx, 1
add ebp, 0x108
test cl, cl
mov eax, esi
je 0x4013c1
mov edi, edi
cmp cl, 0x20
jne 0x4013c1
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4013b0
jmp 0x4013d5
mov cl, byte [eax]
test cl, cl
je 0x4013d5
cmp cl, 0x2d
je 0x4013d5
cmp ebx, 0x20
jl 0x401350
test ebx, ebx
jne 0x401407
push 0x10
push str.Error
push str.No_dlls_specified
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0x248c
ret 0x10
mov edx, dword [esp + 0x39c]
push str.App_Run
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
jne 0x40146d
mov esi, dword [sym.imp.msvcr80.dll_strcat_s]
push str.Invalid_module__
mov byte [esp + 0x19c], al
lea eax, [esp + 0x19c]
push 0x204
push eax
call esi
lea ecx, [esp + 0x3ac]
push ecx
lea edx, [esp + 0x1a8]
push 0x204
push edx
call esi
add esp, 0x18
push 0x10
push str.Error
lea eax, [esp + 0x1a0]
push eax
jmp 0x4013e5
mov ecx, dword [esp + 0x39c]
push ecx
call eax
add esp, 4
test ebx, ebx
jle 0x4014a0
mov edi, ebx
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
lea esi, [esp + 0x39c]
lea ecx, [ecx]
mov edx, dword [esi]
push edx
call ebx
add esi, 0x108
sub edi, 1
jne 0x401490
lea ecx, [esp + 0x14]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x248c
ret 0x10
push 0x10
push str.FATAL_ERROR
push str.This_OS_version_is_not_supported_
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
lea ecx, [esp + 8]
call dword [sym.imp.msvcp80.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
or eax, 0xffffffff
pop esi
add esp, 0x248c
ret 0x10