Function at 0x4069f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4168a0
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x42601c]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42601c]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2b8]
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x406be2
lea eax, [ebp + 0x268]
mov dword [esp + 0x14], eax
lea ebx, [ebp + 0x288]
lea eax, [ebp + 0x2a4]
mov dword [esp + 0x20], str.name
mov dword [esp + 0x24], 0x419a40
mov dword [esp + 0x28], str.help
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
xor esi, esi
push 0x206
lea ecx, [esp + 0xa2]
push 0
push ecx
mov word [esp + 0xa8], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x406aa2
mov eax, dword [edi + 4]
jmp 0x406aa5
lea eax, [edi + 4]
push eax
mov eax, dword [esp + esi + 0x24]
push 0x104
lea edx, [esp + 0xa4]
push edx
push 0x419948
push eax
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406ade
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + esi + 0x18]
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__]
add esi, 4
cmp esi, 0xc
jb 0x406a76
push ebx
call sub.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
or esi, 0xffffffff
test al, al
jne 0x406b5c
lea edx, [esp + 0x80]
push edi
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 ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x2c4], 0
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::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, 0x14
push eax
mov ecx, ebx
mov byte [esp + 0x2b4], 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 + 0x48]
mov byte [esp + 0x2b0], 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 + 0x80]
mov dword [esp + 0x2b0], esi
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 [ebp + 0x2b8], 0
je 0x406bdb
lea eax, [ebp + 0x2a4]
push eax
call sub.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 0x406bdb
lea edx, [esp + 0x64]
push edi
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__
lea edi, [ebp + 0x2a4]
push edi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
mov ebx, 2
push ecx
mov dword [esp + 0x2c4], ebx
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::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, 0x14
push eax
mov ecx, edi
mov byte [esp + 0x2b4], 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 + 0x2c]
mov byte [esp + 0x2b0], bl
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 + 0x64]
mov dword [esp + 0x2b0], esi
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, ebp
call fcn.00404850
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004149a0
add esp, 0x2a0
ret 4