Function at 0x40a4c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x422fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x43e01c]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e01c]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c0]
cmp dword [ebp + 0x14], 0
mov eax, dword [esp + 0x2bc]
mov dword [esp + 0x14], eax
je 0x40a6c3
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [eax + 0x2f4]
lea ebx, [eax + 0x31c]
add eax, 0x338
mov dword [esp + 0x24], str.name
mov dword [esp + 0x28], 0x429274
mov dword [esp + 0x2c], str.help
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
xor esi, esi
push 0x206
lea edx, [esp + 0xa6]
push 0
push edx
mov word [esp + 0xac], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp + 0x18], 8
jb 0x40a580
mov eax, dword [ebp + 4]
jmp 0x40a583
lea eax, [ebp + 4]
mov ecx, dword [esp + esi + 0x24]
push eax
push 0x104
lea eax, [esp + 0xa8]
push eax
push 0x428214
push ecx
push str.main
call edi
test eax, eax
je 0x40a5b8
mov ecx, dword [esp + esi + 0x18]
lea edx, [esp + 0xa0]
push edx
call dword [0x427bec]
add esi, 4
cmp esi, 0xc
jb 0x40a554
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__]
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 edi, 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 0x40a635
lea eax, [esp + 0x68]
push ebp
push eax
call esi
push ebx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x2c8], 0
call edi
add esp, 0x14
push eax
mov ecx, ebx
mov byte [esp + 0x2b8], 1
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 + 0x4c]
mov byte [esp + 0x2b4], 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 + 0x68]
mov dword [esp + 0x2b4], 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 ebx, dword [esp + 0x14]
cmp dword [ebx + 0x34c], 0
je 0x40a6ba
add ebx, 0x338
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 0x40a6ba
lea eax, [esp + 0x84]
push ebp
push eax
call esi
push ebx
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x2c8], 2
call edi
add esp, 0x14
push eax
mov ecx, ebx
mov byte [esp + 0x2b8], 3
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 + 0x30]
mov byte [esp + 0x2b4], 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_]
lea ecx, [esp + 0x84]
mov dword [esp + 0x2b4], 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 edi, dword [esp + 0x14]
call fcn.00407500
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004212c2
add esp, 0x2a4
ret 8