Function at 0x40b990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a063
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x55609c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
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__]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40b9e4
lea eax, [ebp - 0x2c]
push edi
push eax
lea ecx, [ebp - 0x78]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::constructor_wchar_t_const___bool_]
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll_srand]
add esp, 4
push str._runtime
lea ecx, [ebp - 0x1fc]
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, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMCmdLineParser::HasKey_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__const]
test al, al
lea ecx, [ebp - 0x1fc]
sete byte [ebp - 0x1d1]
mov byte [ebp - 4], 1
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 byte [ebp - 0x1d1], 0
je 0x40ba75
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
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, 0x64
jmp 0x40bf57
push str._runtime
lea ecx, [ebp - 0x1fc]
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, [ebp - 0x1fc]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
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, [ebp - 0x1fc]
mov byte [ebp - 4], 5
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_]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0040cbf0
lea edx, [ebp - 0x130]
push edx
mov byte [ebp - 4], 6
call fcn.0040b3d0
lea eax, [ebp - 0x218]
push edi
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMSharedLibrary::GetModuleFullName_struct_HINSTANCE____]
add esp, 8
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 8
call dword [0x52e3ec]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 7
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 str.Apr_22_2015
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, ebx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edi
call fcn.0040c000
test al, al
jne 0x40bb8d
lea ecx, [ebp - 0x130]
push ecx
mov byte [ebp - 4], 6
call fcn.0040bf80
lea edx, [ebp - 0x1d0]
push edx
mov byte [ebp - 4], 5
call fcn.0040cc50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
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, 0x67
jmp 0x40bf57
mov esi, dword [sym.imp.K8Common.dll_public:_wchar_t_const____thiscall_GameMgr::GMBaseEvent::Name_void_]
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x1e0], ecx
call esi
push eax
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, ebx
call fcn.0040c100
test al, al
jne 0x40bbcf
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 6
call fcn.0040bf80
lea ecx, [ebp - 0x1d0]
push ecx
jmp 0x40bb50
lea ecx, [ebx + 0x2c]
call esi
push eax
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edx, [ebp - 0x1d0]
push edx
lea ecx, [ebp - 0x130]
call fcn.0040ccb0
test al, al
je 0x40be01
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
push str.seeds.pb
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 9
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, [ebp - 0x234]
push ecx
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xc
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 0x78
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
cmp esi, edi
mov byte [ebp - 4], 0xd
je 0x40bc9b
sub esp, 0x1c
mov ecx, esp
lea edx, [ebp - 0x94]
mov dword [ebp - 0x1dc], esp
push edx
push ecx
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_GameMgr::GMStringConvert::GMStringToGMStringA_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
call fcn.0040d290
mov esi, eax
mov dword [ebp - 0x1d8], esi
jmp 0x40bca3
mov dword [ebp - 0x1d8], edi
mov esi, edi
cmp esi, edi
mov byte [ebp - 4], 0xc
jne 0x40bce7
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
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_]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
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_]
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 6
call fcn.0040bf80
lea ecx, [ebp - 0x1d0]
push ecx
jmp 0x40bf1f
push 0x40
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1dc], eax
cmp eax, edi
mov byte [ebp - 4], 0xe
je 0x40bd09
push eax
mov edi, esi
call fcn.00408d70
jmp 0x40bd0b
xor eax, eax
lea edi, [ebx + 8]
mov ecx, eax
mov eax, edi
mov byte [ebp - 4], 0xc
call fcn.0040c300
push 0x40
mov byte [ebp - 4], 0xf
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [ebp - 0x1dc], esi
test esi, esi
mov byte [ebp - 4], 0x10
je 0x40bd50
mov edi, dword [edi]
mov ecx, esi
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMIocpServer::constructor_void_]
mov dword [esi], vtable.GameMgr::GMIpcServer_class_GameMgr::GMDLService_.0
mov dword [esi + 0x3c], edi
mov eax, esi
jmp 0x40bd52
xor eax, eax
mov edi, ebx
mov byte [ebp - 4], 0xf
call fcn.0040cae0
mov ecx, dword [ebx]
push 1
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMIocpServer::Init_unsigned_long_int_]
push 0x52fd5c
lea ecx, [ebp - 0x218]
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 edx, [ebp - 0x218]
mov byte [ebp - 4], 0x11
mov ecx, dword [ebx]
push edx
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMIocpServer::SetListenIp_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xf
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 ecx, dword [ebx]
push 0xffff
push 0x1388
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMIocpServer::Start_unsigned_short_int__unsigned_short_int_]
test al, al
je 0x40bcab
mov dword [ebp - 4], 0xc
mov ecx, dword [ebx]
call dword [sym.imp.K8Common.dll_public:_unsigned_short_int___thiscall_GameMgr::GMIocpServer::GetPort_void_]
lea edx, [ebp - 0x1d0]
push edx
lea ecx, [ebp - 0x130]
mov word [ebp - 0x130], ax
call fcn.0040ccb0
test al, al
jne 0x40be55
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
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_]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
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_]
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 6
call fcn.0040bf80
lea ecx, [ebp - 0x1d0]
push ecx
mov byte [ebp - 4], 5
call fcn.0040cc50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
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, 0x66
jmp 0x40bf57
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.0040d460
mov ecx, dword [ebp - 0x1e0]
call dword [sym.imp.K8Common.dll_public:_unsigned_long_int___thiscall_GameMgr::GMBaseEvent::Set_void_]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
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_]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
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_]
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 6
call fcn.0040bf80
lea ecx, [ebp - 0x1d0]
push ecx
mov byte [ebp - 4], 5
call fcn.0040cc50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
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_]
xor eax, eax
jmp 0x40bf57
mov byte [ebp - 4], 5
call fcn.0040cc50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
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, 0x65
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00515015
mov esp, ebp
pop ebp
ret