Function at 0x4807b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4807cd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov ebx, eax
jmp 0x4807cf
xor ebx, ebx
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push eax
push str.Scheme_d
push ecx
add ebx, 0x138
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, str.General
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call fcn.0043aaa0
mov edx, dword [eax]
lea eax, [ebp + 0x48]
push edx
push 0x40
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x18]
push str.MatchItemCount
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0043aaa0
mov eax, dword [eax]
lea edx, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], esi
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x30]
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x4808f8
push esi
lea ecx, [esp + 0x1c]
push str.MatchItem_d
push ecx
call edi
push 0x16
call sub.MFC42.DLL_operatornew
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x10], eax
push edx
call fcn.0043aaa0
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
push 0x16
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, eax
jl 0x48089b
lea eax, [esp + 0x18]
push str.TmSectionDiscountCount
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0043aaa0
mov eax, dword [eax]
lea edx, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], esi
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x1c]
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x4809a9
push esi
lea ecx, [esp + 0x1c]
push str.TmSectionDiscount_d
push ecx
call edi
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x10], eax
push edx
call fcn.0043aaa0
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
push 0xc
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, eax
jl 0x48094c
lea eax, [esp + 0x18]
push str.TmSumDiscountCount
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0043aaa0
mov eax, dword [eax]
lea edx, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], esi
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x480a5a
push esi
lea ecx, [esp + 0x1c]
push str.TmSumDiscount_d
push ecx
call edi
push 6
call sub.MFC42.DLL_operatornew
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x10], eax
push edx
call fcn.0043aaa0
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
push 6
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, eax
jl 0x4809fd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4