Function at 0x406f80
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40d4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov ax, word [0x41171c]
push ebx
mov word [esp + 4], ax
mov eax, dword [esp + 0x60]
push ebp
push esi
mov ebx, ecx
lea esi, [eax + eax*8]
mov cl, byte [0x41171e]
push edi
shl esi, 3
mov byte [esp + 0x12], cl
mov ecx, dword [ebx + 0x78]
mov eax, esi
push 0x411718
add eax, ecx
mov dword [esp + 0x2c], esi
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x406fe4
mov eax, 0x18
jmp 0x406ff5
mov edx, dword [ebx + 0x78]
mov eax, dword [esi + edx]
mov al, byte [eax]
mov byte [esp + 0x10], al
mov eax, 1
test eax, eax
jle 0x40727a
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x407261
lea edx, [esp + 0x4c]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x407261
fild qword [esp + 0x4c]
lea ecx, [esp + 0x14]
fmul qword [0x40e3d8]
fstp qword [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x411700
push eax
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
push 3
mov ecx, ebx
call fcn.00406bd0
mov edx, dword [ebx + 0x78]
mov ecx, dword [esi + edx + 0x38]
mov eax, dword [esi + edx + 0x3c]
lea ebp, [esi + edx]
mov edx, ecx
or edx, eax
je 0x407250
mov edx, dword [esp + 0x48]
cmp edx, eax
jg 0x407250
jl 0x4070b7
mov eax, dword [esp + 0x44]
cmp eax, ecx
ja 0x407250
mov ecx, dword [ebp + 0x40]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov edi, ecx
sar edx, 5
mov eax, edx
mov ebp, dword [ebp + 0x44]
shr eax, 0x1f
add edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
mov dword [esp + 0x30], ebp
shr eax, 0x1f
add edx, eax
mov esi, edx
lea eax, [esi + esi*4]
lea edx, [eax + eax*8]
mov eax, 0x88888889
shl edx, 5
sub edi, edx
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov edi, edx
mov ecx, 0x3c
cdq
idiv ecx
lea eax, [esi + esi*2]
lea eax, [edi + eax*8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
lea edx, [esp + 0x24]
mov esi, eax
push edx
shl esi, 4
sub esi, eax
shl esi, 2
call sub.MFC42.DLL_CTime::GetTickCount
push ecx
mov eax, esp
mov dword [esp + 0x3c], esp
push ecx
mov dword [eax], esi
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00406750
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x30]
call fcn.00406760
mov ecx, eax
call fcn.00406740
test eax, eax
je 0x40724c
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
push edx
push 0x4116ec
push esi
mov ecx, ebx
call fcn.00406d00
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebx + 0x6c]
push str.HLMonitor.ini
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 2
call fcn.0040b67e
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
push 0x41155c
push eax
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [esp + 0x1c]
push str.LastMailTime_d
push ecx
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push edx
push eax
push ecx
push str.Tasks
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov cl, byte [esp + 0x10]
mov eax, dword [esp + 0x2c]
inc cl
dec eax
mov byte [esp + 0x10], cl
mov dword [esp + 0x2c], eax
jne 0x407001
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 4