Function at 0x10007a02
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x4fc
mov eax, 0x1001329e
call fcn.10012a51
xor esi, esi
mov edi, 0x206
push edi
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x46c], esi
mov word [ebp - 0x218], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x41e]
push esi
push eax
mov word [ebp - 0x420], si
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x10015af4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
push str.QMHMPG.ini
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007dc7
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, esi
je 0x10007dc7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
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 [ebp - 4], esi
jmp 0x10007af0
xor esi, esi
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x470], esi
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x424], 8
mov ecx, 0x82
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x438]
jae 0x10007b2a
lea eax, [ebp - 0x438]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x10015824
push str.offset
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10007d67
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x458]
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 byte [ebp - 4], 2
call fcn.1000848c
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], esi
lea esi, [ebp - 0x468]
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.1000aaef
test al, al
je 0x10007c3b
mov eax, dword [ebp - 0x464]
mov ebx, dword [eax]
cmp ebx, dword [ebp - 0x464]
je 0x10007c3b
cmp dword [ebx + 0x20], 8
jb 0x10007bb5
mov eax, dword [ebx + 0xc]
jmp 0x10007bb8
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
mov edi, dword [ebp - 0x478]
test edi, edi
mov esi, dword [ebp - 0x474]
pop ecx
mov dword [ebp - 0x480], eax
je 0x10007bfb
mov ecx, dword [ebp - 0x470]
mov edx, esi
sub edx, edi
sub ecx, edi
sar edx, 2
sar ecx, 2
cmp edx, ecx
jae 0x10007bfb
mov ecx, esi
add ecx, 4
mov dword [esi], eax
mov dword [ebp - 0x474], ecx
jmp 0x10007c26
cmp edi, esi
jbe 0x10007c05
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x47c]
call fcn.100083c1
cmp ebx, dword [ebp - 0x464]
jne 0x10007c34
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
jmp 0x10007b9e
push dword [ebp - 0x45c]
lea ecx, [ebp - 0x4fc]
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 eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 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__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ebx, [ebp - 0x47c]
lea eax, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.10008341
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 6
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ebx, [ebp - 0x490]
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 7
call fcn.10008341
lea eax, [ebp - 0x4e0]
push eax
lea edi, [ebp - 0x508]
mov byte [ebp - 4], 8
call fcn.100080cc
lea esi, [ebp - 0x4c4]
mov byte [ebp - 4], 6
call fcn.1000b330
lea ecx, [ebp - 0x4e0]
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 esi, ebx
mov byte [ebp - 4], 4
call fcn.1000b330
lea ecx, [ebp - 0x4ac]
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, [ebp - 0x4fc]
mov byte [ebp - 4], 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_]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x464]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x464]
mov dword [eax + 4], eax
and dword [ebp - 0x460], 0
cmp esi, dword [ebp - 0x464]
je 0x10007d3f
mov edi, dword [esi]
lea ecx, [esi + 8]
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 esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
cmp edi, dword [ebp - 0x464]
pop ecx
mov esi, edi
jne 0x10007d23
push dword [ebp - 0x464]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
and dword [ebp - 0x464], 0
pop ecx
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 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_]
mov ebx, 0x104
push dword [ebp - 0x45c]
mov esi, dword [sym.imp.MSVCR80.dll_wcslen]
call esi
pop ecx
mov ecx, dword [ebp - 0x45c]
lea edi, [ecx + eax*2 + 2]
push edi
mov dword [ebp - 0x45c], edi
call esi
pop ecx
mov ecx, dword [ebp - 0x46c]
lea eax, [ecx + eax + 1]
lea esi, [ebp - 0x47c]
mov dword [ebp - 0x46c], eax
call fcn.1000b330
cmp dword [ebp - 0x46c], ebx
jae 0x10007db7
cmp word [edi], 0
jne 0x10007aee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
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_]
call fcn.10012a9b
ret