Function at 0x40a240
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41f340
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43701c]
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 0x40a443
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [eax + 0x2c8]
lea ebx, [eax + 0x2f0]
add eax, 0x30c
mov dword [esp + 0x24], str.name
mov dword [esp + 0x28], 0x423bcc
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 0x40a300
mov eax, dword [ebp + 4]
jmp 0x40a303
lea eax, [ebp + 4]
mov ecx, dword [esp + esi + 0x24]
push eax
push 0x104
lea eax, [esp + 0xa8]
push eax
push 0x423134
push ecx
push str.main
call edi
test eax, eax
je 0x40a338
mov ecx, dword [esp + esi + 0x18]
lea edx, [esp + 0xa0]
push edx
call dword [0x422ae0]
add esi, 4
cmp esi, 0xc
jb 0x40a2d4
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 0x40a3b5
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 + 0x320], 0
je 0x40a43a
add ebx, 0x30c
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 0x40a43a
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.004073c0
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.0041cf41
add esp, 0x2a4
ret 8