Function at 0x4024a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x404ea4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x20]
xor esi, esi
push 1
push eax
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], esi
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [eax]
push 0x40821c
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, esi
lea ecx, [esp + 0x20]
setne bl
call fcn.00404554
test bl, bl
je 0x402511
push 0x40821c
lea ecx, [esp + 0x134]
call sub.MFC42u.DLL_CString::operator
lea edx, [esp + 0x130]
push str.backup.ini
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x130]
mov byte [esp + 0x128], 1
call sub.MFC42u.DLL_CString::LockBuffer
push eax
push 0x402190
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::LockBuffer
push eax
push str.Files
mov ecx, edi
call fcn.00401a00
test eax, eax
je 0x40273c
push 0xffffffffffffffff
lea ecx, [esp + 0x134]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x128], 2
push ecx
push 0x32
push 0x32
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x40820c
push str.SizeInBytes
push str.Summary
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [edi + 0xc4], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x67
lea ecx, [esp + 0x2c]
call fcn.00403b30
mov bl, 3
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], bl
call fcn.00403cc0
mov ebp, dword [0x408518]
mov dword [esp + 0x18], esi
test ebp, ebp
mov dword [esp + 0x1c], ebp
jle 0x4026a7
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fild dword [esp + 0x18]
fdiv dword [esp + 0x1c]
fmul dword [0x4064b0]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x2c]
call fcn.00403de0
mov eax, dword [0x408514]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x28]
push eax
call fcn.00403d70
push esi
mov ecx, 0x408510
call fcn.00403240
mov edx, dword [eax]
push ecx
add edx, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42u.DLL_CString::CString_1
push esi
mov ecx, 0x408510
mov byte [esp + 0x130], 4
call fcn.00403240
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42u.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x130], bl
call fcn.00403110
test eax, eax
je 0x40271a
inc esi
cmp esi, ebp
mov dword [esp + 0x18], esi
jl 0x402613
lea ecx, [esp + 0x28]
call fcn.00403c70
lea ecx, [esp + 0x28]
mov byte [esp + 0x128], 2
call fcn.00403bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.00404554
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0
call fcn.00404554
lea ecx, [esp + 0x130]
mov dword [esp + 0x128], 0xffffffff
call fcn.00404554
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11c
ret 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x128], 2
call fcn.00403bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 1
call fcn.00404554
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0
call fcn.00404554
lea ecx, [esp + 0x130]
mov dword [esp + 0x128], 0xffffffff
call fcn.00404554
xor eax, eax
jmp 0x4026ff