Function at 0x403740
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
mov dword [esp + 0x48], esi
mov byte [0x4195ec], 1
call sub.K8UIRender.dll_void___cdecl_GameMgr::SetResourceInstance_struct_HINSTANCE____
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 4
lea eax, [esp + 0x40]
push eax
xor edi, edi
call ebx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call ebx
push eax
lea ecx, [esp + 0x94]
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__]
mov dword [esp + 0x348], edi
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x4037de
lea eax, [esp + 0x94]
push 0
push eax
lea ecx, [esp + 0x108]
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::constructor_wchar_t_const___bool_
push str._bubble
lea ecx, [esp + 0x70]
mov byte [esp + 0x34c], 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__::constructor_wchar_t_const__]
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0x34c], 2
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x348], 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_]
push str._query_action
lea ecx, [esp + 0x54]
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 + 0x50]
push ecx
lea ecx, [esp + 0x104]
mov byte [esp + 0x34c], 3
call sub.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
lea ecx, [esp + 0x50]
mov bl, al
mov byte [esp + 0x348], 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_]
test bl, bl
je 0x40388e
call fcn.00402440
mov ecx, esi
call fcn.004014f0
cmp dword [esi + 0x5c], 0x63
je 0x404066
cmp byte [esi + 0x118], 0
jne 0x40388e
mov ecx, esi
call fcn.004049a0
push str.K8GM.exe
lea ecx, [esp + 0xe8]
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__]
push 0x104
lea edx, [esp + 0x130]
push edx
xor esi, esi
push esi
mov byte [esp + 0x354], 4
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x70]
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 + 0x6c]
push ecx
lea edx, [esp + 0xcc]
push edx
mov byte [esp + 0x350], 5
call sub.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
lea ecx, [esp + 0x6c]
mov byte [esp + 0x348], 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, [esp + 0xc8]
push eax
lea ecx, [esp + 0xb0]
push ecx
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetParentDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
lea edx, [esp + 0xac]
push edx
mov ecx, 0x41960c
mov byte [esp + 0x34c], 8
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [esp + 0xe4]
push eax
mov ecx, 0x4195f0
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
call fcn.00403690
mov ebx, eax
cmp ebx, esi
jne 0x4039ed
push 1
call fcn.00404170
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edi
push 1
mov dword [eax + 8], edi
push ecx
mov dword [eax + 0xc], edi
call fcn.00404760
mov esi, eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x348], 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 ecx, [esp + 0xc8]
mov byte [esp + 0x348], 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_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x348], 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, [esp + 0x100]
mov byte [esp + 0x348], 0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_
lea ecx, [esp + 0x90]
mov dword [esp + 0x348], 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, esi
jmp 0x40413e
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x348], 9
call fcn.004028f0
test eax, eax
mov ecx, ebx
je 0x403a18
lea edx, [esp + 0x30]
push edx
call fcn.00402970
jmp 0x403a22
lea eax, [esp + 0x30]
push eax
call fcn.00403010
add esp, 4
test al, al
je 0x404099
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x348], 0xa
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp ebx, eax
mov byte [esp + 0x27], 0
jbe 0x403a5c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x30]
mov dword [esp + 0x48], esi
cmp dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
jbe 0x403a74
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
je 0x403a80
lea ecx, [esp + 0x30]
cmp esi, ecx
je 0x403a86
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x28]
je 0x403b67
test esi, esi
jne 0x403a9a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 8]
jb 0x403aa5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x50]
push ebx
push edx
call sub.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__
push 0x41960c
push eax
mov byte [esp + 0x358], 0xb
call sub.K8Common.dll_public:_static_int___cdecl_GameMgr::GMStringUtils::CompareNoCase_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, 0x10
test eax, eax
lea ecx, [esp + 0x50]
sete byte [esp + 0x13]
mov byte [esp + 0x348], 0xa
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 [esp + 0x13], 0
je 0x403b50
cmp ebx, dword [esi + 8]
mov byte [esp + 0x27], 1
jb 0x403af6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x50]
push ebx
push eax
call sub.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFilePathUtils::FileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
push 0x4195f0
push eax
mov byte [esp + 0x358], 0xc
call sub.K8Common.dll_public:_static_int___cdecl_GameMgr::GMStringUtils::CompareNoCase_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, 0x10
test eax, eax
lea ecx, [esp + 0x50]
sete byte [esp + 0x13]
mov byte [esp + 0x348], 0xa
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 [esp + 0x13], 0
je 0x403b50
cmp ebx, dword [esi + 8]
jb 0x403b42
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
lea esi, [esp + 0x18]
call fcn.004056a0
mov esi, dword [esp + 0x48]
cmp ebx, dword [esi + 8]
jb 0x403b5b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
add ebx, 0x50
jmp 0x403a64
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x403b8e
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, ebx
mov eax, 0x66666667
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x403c3b
xor ecx, ecx
cmp byte [esp + 0x27], cl
setne cl
add ecx, 3
push ecx
call fcn.00404170
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edi
push 1
mov dword [eax + 8], edi
push edx
mov dword [eax + 0xc], edi
call fcn.00404760
mov esi, eax
mov byte [esp + 0x348], 9
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x403bf0
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
push ecx
push eax
call fcn.00406570
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor ecx, ecx
mov byte [esp + 0x348], 8
mov eax, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
je 0x403c2a
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
push ecx
push eax
call fcn.00406570
mov edx, dword [esp + 0x3c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
jmp 0x40397b
cmp ebx, ecx
mov esi, ecx
jbe 0x403c4f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp ebx, ecx
mov edi, ebx
jbe 0x403c63
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp edi, esi
lea eax, [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x28], edi
je 0x403cae
mov edi, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
mov eax, dword [esp + 0x28]
add eax, 0x34
push 0x41154c
push eax
call edi
add esp, 8
test al, al
jne 0x403ca2
mov eax, dword [esp + 0x28]
add eax, 0x50
cmp eax, esi
mov dword [esp + 0x28], eax
jne 0x403c7d
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
cmp ebx, ecx
mov esi, dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x2c], ecx
jbe 0x403cce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x403cda
lea edx, [esp + 0x14]
cmp eax, edx
je 0x403ce8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
jne 0x403e13
cmp ebx, ecx
mov edi, ecx
jbe 0x403d0a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp ebx, ecx
lea esi, [esp + 0x14]
jbe 0x403d18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ebx, 0x4012a0
call fcn.00406230
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [eax]
mov esi, dword [eax + 4]
add esp, 0x14
cmp ebx, ecx
mov dword [esp + 0x2c], ecx
jbe 0x403d55
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x403d61
lea edx, [esp + 0x14]
cmp edi, edx
je 0x403d6f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp esi, dword [esp + 0x2c]
jne 0x403e13
cmp ebx, ecx
mov edi, ecx
jbe 0x403d8d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp ebx, ecx
lea esi, [esp + 0x14]
jbe 0x403d9b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x98]
push eax
mov ebx, 0x4012d0
call fcn.00406230
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [eax]
mov esi, dword [eax + 4]
add esp, 0x14
cmp ebx, ecx
mov dword [esp + 0x2c], ecx
jbe 0x403ddb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x403de7
lea edx, [esp + 0x14]
cmp edi, edx
je 0x403df5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp esi, dword [esp + 0x2c]
jne 0x403e13
cmp ebx, ecx
mov esi, ebx
jbe 0x403e0f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea edi, [esp + 0x14]
cmp ebx, ecx
mov dword [esp + 0x2c], ecx
jbe 0x403e21
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
je 0x403e2d
lea eax, [esp + 0x14]
cmp edi, eax
je 0x403e33
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x2c]
je 0x403faa
test edi, edi
jne 0x403e47
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 8]
jb 0x403e52
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 8]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x50], ecx
jb 0x403e6f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 8]
jb 0x403e6f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 0x30]
sub ebx, dword [esi + 0x28]
cmp esi, dword [edi + 8]
mov dword [esp + 0x28], ebx
jb 0x403e8f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 8]
jb 0x403e8f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x2c]
sub edx, dword [esi + 0x24]
cmp ebx, edx
jle 0x403eb9
cmp esi, dword [edi + 8]
jb 0x403eaf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 8]
jb 0x403eaf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x24]
mov dword [esp + 0x28], ebx
cmp esi, dword [edi + 8]
jb 0x403ec4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1c]
add eax, ebx
cmp esi, dword [edi + 8]
mov dword [esp + 0x58], eax
jb 0x403ed8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 8]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x54], eax
jb 0x403eea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 0x20]
add ebx, dword [esp + 0x28]
cmp esi, dword [edi + 8]
jb 0x403efc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esi + 0x3c]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
xor edi, edi
mov dword [eax + 4], edx
push edi
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], ebx
call fcn.00404760
mov esi, eax
mov byte [esp + 0x348], 9
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x403f5f
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
push edx
push eax
call fcn.00406570
mov eax, dword [esp + 0x20]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor edi, edi
mov byte [esp + 0x348], 8
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x403f99
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
push ecx
push eax
call fcn.00406570
mov edx, dword [esp + 0x3c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
jmp 0x40397b
push 5
call fcn.00404170
mov byte [esp + 0x348], 9
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x403fe1
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
push ecx
push eax
call fcn.00406570
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor ecx, ecx
mov byte [esp + 0x348], 8
mov eax, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
je 0x40401b
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
push ecx
push eax
call fcn.00406570
mov edx, dword [esp + 0x3c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x348], 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 ecx, [esp + 0xc8]
mov byte [esp + 0x348], 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_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x348], 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, [esp + 0x100]
mov byte [esp + 0x348], 0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_
lea ecx, [esp + 0x90]
mov dword [esp + 0x348], 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 0x40413e
push 2
call fcn.00404170
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x54]
push 1
push eax
call fcn.00404760
lea esi, [esp + 0x30]
mov edi, eax
mov byte [esp + 0x348], 8
call fcn.00405660
lea ecx, [esp + 0xac]
mov byte [esp + 0x348], 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 ecx, [esp + 0xc8]
mov byte [esp + 0x348], 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_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x348], 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, [esp + 0x100]
mov byte [esp + 0x348], 0
call sub.K8Common.dll_public:_void___thiscall_GameMgr::GMCmdLineParser::destructor_void_
lea ecx, [esp + 0x90]
mov dword [esp + 0x348], 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, edi
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0040e0e6
mov esp, ebp
pop ebp
ret 4