Function at 0x40e9c6
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041ced0
mov byte [ebp - 4], 2
push 0x5c
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
call fcn.00401590
sub eax, dword [ebp - 0x24]
sub eax, 1
push eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
add edx, 0x348
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x428f68
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x50]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0x54]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x58]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 9
push 0x428f6c
push 0x42aac8
push 0x428f7c
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp dword [0x42acf4], 0
jne 0x40ebaa
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::CFileFind
mov byte [ebp - 4], 0xa
push 0
lea ecx, [ebp - 0x18]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x40eb94
lea ecx, [ebp - 0x18]
call fcn.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x42acf4], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40]
call fcn.0041cebe
lea ecx, [ebp - 0x18]
call fcn.00401ec0
push eax
push 0
push 0x428f84
push 0x428f8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x20]
push ecx
push 0x428f94
lea edx, [ebp - 0x10]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x14]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ec0
push eax
push 0x428f98
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x18]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ec0
push eax
push 0x428fa0
push 0x428fa8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp + 8]
call fcn.00401ea0
test eax, eax
je 0x40ec85
push 0
push 0x428fb0
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ec0
push eax
push 0x428fb4
push 0x428fbc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [0x42acf4], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8