Function at 0x405200
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40d1aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esi + 0x6c]
push str.HLMonitor.ini
lea ecx, [esp + 0x28]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x140], ebp
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 1
call fcn.0040b67e
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
lea eax, [esp + 0x2c]
push 0x104
push eax
push 0x411c28
push 0x4114b4
push str.Common
call ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x94]
call fcn.0040b68a
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push 0x104
push eax
push 0x411c28
push 0x4114a8
push str.Common
call ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x98]
call fcn.0040b68a
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push 0x104
push eax
push 0x411c28
push 0x4114a4
push str.Common
call ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + 0x9c]
call fcn.0040b68a
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 0x3c
push str.Interval
push str.Common
call edi
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x14]
push eax
push ebp
push str.TaskCount
push str.Common
call edi
cmp eax, ebp
mov dword [esi + 0x74], eax
je 0x40577a
cmp eax, 0x3e8
ja 0x40577a
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x405367
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00404d80
push ecx
push 0x48
push eax
call fcn.0040b770
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esi + 0x74]
lea edx, [edi + edi*8]
lea eax, [edx*8 + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x134], 2
je 0x4053a5
push fcn.00404d80
push 0x4057c0
lea ebp, [eax + 4]
push edi
push 0x48
push ebp
mov dword [eax], edi
call fcn.0040b86a
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
mov dword [esi + 0x78], ebp
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x74]
xor ebp, ebp
test eax, eax
mov byte [esp + 0x134], 4
mov dword [esp + 0x1c], ebp
jbe 0x40573a
xor edi, edi
push ebp
lea ecx, [esp + 0x14]
push str.Task_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x28]
push edx
push 0x104
push eax
push 0x411c28
push ecx
push str.Tasks
call ebx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
push edx
call fcn.0040b68a
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40544c
inc dword [esp + 0x1c]
jmp 0x40572b
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x78]
add ecx, edi
call fcn.0040b67e
push ebp
lea edx, [esp + 0x14]
push str.RestartCount_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0xffffffffffffffff
push ecx
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esi + 0x78]
push ebp
push str.SkipError_d
mov dword [edx + edi + 0x14], eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 0
push edx
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 0x78]
push ebp
lea edx, [esp + 0x14]
push str.MailTimeSpan_d
push edx
mov dword [ecx + edi + 0x20], eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0x3c
push ecx
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esi + 0x78]
push ebp
push str.LastMailTime_d
mov dword [edx + edi + 0x40], eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 0
push edx
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 0x78]
push ebp
lea edx, [esp + 0x14]
push str.ErrWndText_d
push edx
mov dword [ecx + edi + 0x44], eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x28]
push eax
push 0x104
push ecx
push 0x411c28
push edx
push str.Tasks
call ebx
mov ecx, dword [esi + 0x78]
lea eax, [esp + 0x28]
push eax
lea ecx, [ecx + edi + 0x24]
call fcn.0040b68a
push ebp
lea edx, [esp + 0x14]
push str.WarningWndText_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x28]
push eax
push 0x104
push ecx
push 0x411c28
push edx
push str.Tasks
call ebx
mov ecx, dword [esi + 0x78]
lea eax, [esp + 0x28]
push eax
lea ecx, [ecx + edi + 0x28]
call fcn.0040b68a
push ebp
lea edx, [esp + 0x14]
push str.ShowWindow_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0
push ecx
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esi + 0x78]
push ebp
push str.Param_d
mov dword [edx + edi + 0x2c], eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x28]
push ecx
push 0x104
push edx
push 0x411c28
push eax
push str.Tasks
call ebx
mov edx, dword [esi + 0x78]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [edx + edi + 4]
call fcn.0040b68a
push ebp
lea eax, [esp + 0x14]
push str.MailTo_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x28]
push ecx
push 0x104
push edx
push 0x411c28
push eax
push str.Tasks
call ebx
lea ecx, [esp + 0x28]
mov edx, dword [esi + 0x78]
push ecx
lea ecx, [edx + edi + 0x30]
call fcn.0040b68a
push ebp
lea eax, [esp + 0x14]
push str.TYPE_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x28]
push ecx
push 0x104
push edx
push str.Normal
push eax
push str.Tasks
call ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040b68a
mov edx, dword [esp + 0x18]
push str.DiskSpace
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40572b
mov eax, dword [esi + 0x78]
push ebp
lea ecx, [esp + 0x14]
push str.WarningSize_d
push ecx
mov dword [eax + edi + 0x10], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edx
push 0
push eax
push str.Tasks
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jle 0x40572b
mov ecx, dword [esi + 0x78]
cdq
mov dword [ecx + edi + 0x38], eax
mov dword [ecx + edi + 0x3c], edx
mov edx, dword [esi + 0x78]
mov ecx, 0x14
mov eax, dword [edx + edi + 0x38]
lea edx, [edx + edi + 0x38]
mov dword [esp + 0x20], edx
mov edx, dword [edx + 4]
call fcn.0040b8f0
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [esi + 0x74]
inc ebp
add edi, 0x48
cmp ebp, eax
jb 0x4053e5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x74]
sub ecx, eax
mov dword [esi + 0x74], ecx
jne 0x405756
push 0x4113a8
push 1
mov ecx, esi
call fcn.00406bd0
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
jmp 0x40578b
push 0x411384
push 1
mov ecx, esi
call fcn.00406bd0
mov dword [esi + 0x74], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret