Function at 0x40e500
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e041
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x280], eax
push ebp
push esi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2bc]
mov esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x2a0]
push edx
mov dword [esp + 0x29c], 0
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 4
test al, al
je 0x40e680
lea ecx, [esp + 0x4c]
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_void_]
lea ecx, [esp + 0x68]
mov byte [esp + 0x298], 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_void_]
mov byte [esp + 0x298], 2
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x68]
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], str.name
mov dword [esp + 0x18], 0x423bcc
mov dword [esp + 0x1c], str.help
mov dword [esp + 0x20], str.width
mov dword [esp + 0x24], str.height
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
xor esi, esi
mov edi, edi
push 0x206
lea edx, [esp + 0x8a]
push 0
push edx
mov word [esp + 0x90], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x2b0]
add esp, 0xc
cmp dword [esp + 0x2b8], 8
jae 0x40e619
lea eax, [esp + 0x2a4]
mov ecx, dword [esp + esi + 0x14]
push eax
push 0x104
lea eax, [esp + 0x8c]
push eax
push 0x423134
push ecx
push str.main
call ebp
test eax, eax
je 0x40e64e
mov ecx, dword [esp + esi + 0x30]
lea edx, [esp + 0x84]
push edx
call dword [0x422ae0]
add esi, 4
cmp esi, 0x14
jb 0x40e5e0
cmp dword [edi + 0x14], 0
jne 0x40e69f
lea ecx, [esp + 0x68]
mov byte [esp + 0x298], 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 + 0x4c]
mov byte [esp + 0x298], 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_]
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x298], 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 al, al
jmp 0x40e826
push edi
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFileName::IsCompletedPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov esi, 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__]
mov ebp, 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, 4
test al, al
jne 0x40e715
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x34]
push ecx
call esi
push edi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2ac], 3
call ebp
add esp, 0x14
push eax
mov ecx, edi
mov byte [esp + 0x29c], 4
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 + 0x14]
mov byte [esp + 0x298], 3
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 + 0x30]
mov byte [esp + 0x298], 2
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 edi
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 4
test al, al
je 0x40e65c
cmp dword [ebx + 0x14], 0
je 0x40e797
push ebx
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFileName::IsCompletedPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 4
test al, al
jne 0x40e797
lea ecx, [esp + 0x2a0]
push ecx
lea edx, [esp + 0x34]
push edx
call esi
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x2ac], 5
call ebp
add esp, 0x14
push eax
mov ecx, ebx
mov byte [esp + 0x29c], 6
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 + 0x14]
mov byte [esp + 0x298], 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 ecx, [esp + 0x30]
mov byte [esp + 0x298], 2
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 + 0x60], 0
mov esi, dword [sym.imp.K8Common.dll_public:_static_long_long___int64____cdecl_GameMgr::GMStringUtils::ConvertStringToInt64_wchar_t_const___wchar_t_const___]
je 0x40e7c1
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x40e7b3
lea eax, [esp + 0x50]
push 0
push eax
call esi
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [edx], eax
cmp dword [esp + 0x7c], 0
je 0x40e7e8
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x40e7da
lea eax, [esp + 0x6c]
push 0
push eax
call esi
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [ecx], eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x298], 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 + 0x4c]
mov byte [esp + 0x298], 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_]
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x298], 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 al, 1
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0041cf41
add esp, 0x290
ret