Function at 0x401f60
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x402a8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
push 0x4046bc
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x64]
lea ecx, [esp + 0x10]
push eax
push str._sANNOUNCE.INI
push ecx
mov dword [esp + 0x68], ebx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40232a
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 4
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 4]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
push esi
push eax
lea edx, [esp + 0x2c]
push str._02d:_02d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
push ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x20]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
lea eax, [esp + 0x20]
push str._4d__02d__02d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x34]
push ecx
push 0x20
push edx
push str.2023_01_31
push str.AnnounceDate
push str.Announce
call esi
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push edx
call edi
add esp, 8
test eax, eax
jg 0x402267
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x20
push ecx
push str.15:30
push str.AnnounceTime
push str.Announce
call esi
lea edx, [esp + 0x34]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call edi
add esp, 8
test eax, eax
jl 0x4022f2
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push 0x20
push eax
push ecx
push str.TodayDate
push str.Announce
call esi
lea edx, [esp + 0x34]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call edi
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
setg bl
call fcn.00402478
test bl, bl
je 0x4022f2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.TodayDate
push str.Announce
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
push eax
push 0
push str.Showtimestr
push str.Announce
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x28]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov ebx, 5
test esi, esi
mov byte [esp + 0x5c], bl
je 0x4021e9
lea ecx, [esp + 0x30]
push ebx
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
mov edx, dword [eax]
lea eax, [esp + 0x28]
push edx
push 0x404574
push eax
mov byte [esp + 0x68], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], bl
call fcn.00402478
mov ecx, ebp
call fcn.00402350
test al, al
mov edi, 0x404518
jne 0x4021fe
mov edi, 0x4046bc
cmp esi, 1
jne 0x402209
mov eax, dword [esp + 0x28]
jmp 0x402226
push 0x4046bc
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x2c], 1
mov eax, dword [eax]
mov byte [esp + 0x5c], 7
push edi
push eax
lea ecx, [ebp + 0x60]
push 0x404454
push ecx
call sub.MFC42.DLL_CString::Format
mov al, byte [esp + 0x3c]
add esp, 0x10
test al, 1
mov dword [esp + 0x5c], ebx
je 0x40224e
lea ecx, [esp + 0x30]
call fcn.00402478
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xc0]
mov byte [esp + 0x5c], 4
lea ecx, [esp + 0x28]
jmp 0x4022ed
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x30]
mov bl, 8
push 5
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], bl
call sub.MFC42.DLL_CString::Right
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push ecx
push 0x404574
push edx
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], bl
call fcn.00402478
mov ecx, ebp
call fcn.00402350
test al, al
mov eax, 0x404518
jne 0x4022c2
mov eax, 0x4046bc
push eax
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [ebp + 0x60]
push 0x4043a0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp]
add esp, 0x10
mov ecx, ebp
call dword [edx + 0xc0]
mov byte [esp + 0x5c], 4
lea ecx, [esp + 0x28]
call fcn.00402478
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 3
call fcn.00402478
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 2
call fcn.00402478
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 1
call fcn.00402478
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 0
call fcn.00402478
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00402478
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret