Function at 0x40f8a0
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x42edd2
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x44901c]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44901c]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1b4]
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::constructor_wchar_t_const___bool_]
push str._handle
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1b0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x38]
mov byte [esp + 0x1ac], 1
mov edi, dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMCmdLineParser::HasValue_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__const]
push eax
lea ecx, [esp + 0x58]
call edi
lea ecx, [esp + 0x38]
mov bl, al
mov byte [esp + 0x1ac], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x40f9b1
push str._handle
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1b4], 2
call dword [sym.imp.K8Common.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_GameMgr::GMCmdLineParser::GetValue_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1ac], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40f98e
lea eax, [esp + 0x3c]
push 0
push eax
call dword [sym.imp.K8Common.dll_public:_static_long_long___int64____cdecl_GameMgr::GMStringUtils::ConvertStringToInt64_wchar_t_const___wchar_t_const___]
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esi + 0x20], eax
mov byte [esp + 0x1ac], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x40f9b8
mov dword [esi + 0x20], 0
push 0
push str.K8KTLFix
push 0
push 0
mov ecx, esi
call dword [sym.imp.K8Common.dll_public:_unsigned_long_int___thiscall_GameMgr::GMBaseEvent::Create_bool__bool__wchar_t_const___struct__SECURITY_ATTRIBUTES__]
test eax, eax
jne 0x40f9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f9f8
lea ecx, [esp + 0x54]
mov dword [esp + 0x1ac], 0xffffffff
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
xor eax, eax
jmp 0x40fb72
push str._ids
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x1b0], 5
call edi
lea ecx, [esp + 0x1c]
mov bl, al
mov byte [esp + 0x1ac], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x40faae
push str._ids
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1b4], 6
call dword [sym.imp.K8Common.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_GameMgr::GMCmdLineParser::GetValue_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1ac], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [sym.imp.MSVCR80.dll__wtoi]
push 0x2c
push eax
sub esp, 0x1c
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
lea edi, [esi + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, edi
call fcn.0040fcd0
add esp, 0x24
lea ecx, [esp + 0x38]
mov byte [esi + 0x24], 1
mov byte [esp + 0x1ac], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebp
call dword [sym.imp.K8UIRender.dll_public:_static_class_GameMgr::GMLoadResource____cdecl_GameMgr::GMResourceSingleton::Instance_void_]
mov ecx, eax
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMLoadResource::SetResourceInstance_struct_HINSTANCE____]
push 0x11c
lea eax, [esp + 0x84]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x84], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40fb0b
cmp dword [esp + 0x84], 5
jbe 0x40fb0b
push 1
push 0x9dc
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMShellUtils::AllowMeesageForNT6_unsigned_int__bool_]
add esp, 8
push 0x7f0
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x1ac], 9
je 0x40fb32
push eax
call fcn.00404e10
mov esi, eax
jmp 0x40fb34
xor esi, esi
mov byte [esp + 0x1ac], 0
mov edi, dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
mov ecx, esi
call edi
test eax, eax
je 0x40fb58
mov ecx, esi
call edi
push eax
call dword [sym.imp.K8Common.dll_public:_static_void___cdecl_GameMgr::GMWindowUtils::ShowWindowEx_struct_HWND____]
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x1ac], 0xffffffff
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.00429602
add esp, 0x19c
ret 4