Function at 0x4095d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44116c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
mov ecx, 0x446d24
call fcn.00430290
xor ebp, ebp
push ebp
mov ebx, str.CheckRunSchedule
mov edi, str.DiskDefragRunShedule
mov dword [esp + 0x9c], ebp
call fcn.004082d0
mov ecx, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x409a3e
cmp ecx, ebp
je 0x409a49
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x38]
cmp ecx, ebp
je 0x409a49
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, ebp
jne 0x409a49
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x9c], 1
call fcn.00408100
add esp, 4
test eax, eax
je 0x40968d
push 0x446df8
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.MSVCR90.dll__time64]
add esp, 4
push 0x30
mov dword [esp + 0x34], edx
lea edx, [esp + 0x64]
push ebp
push edx
mov dword [esp + 0x38], eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.MSVCR90.dll__localtime64_s]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
mov eax, 0x30
push edx
mov word [esp + 0x68], ax
call esi
add esp, 8
cmp eax, ebp
jne 0x4096e5
mov eax, dword [esp + 0x50]
add eax, 0x76c
jmp 0x4096e7
xor eax, eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
call esi
add esp, 8
cmp eax, ebp
jne 0x409706
mov eax, dword [esp + 0x4c]
inc eax
jmp 0x409708
xor eax, eax
lea edx, [esp + 0x2c]
mov word [esp + 0x66], ax
push edx
lea eax, [esp + 0x40]
push eax
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x50]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
mov word [esp + 0x78], ax
call esi
add esp, 0x10
cmp eax, ebp
jne 0x409746
mov eax, dword [esp + 0x50]
add eax, 0x76c
jmp 0x409748
xor eax, eax
add eax, 5
mov word [esp + 0x6a], ax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
call esi
add esp, 8
cmp eax, ebp
jne 0x40976a
mov eax, dword [esp + 0x4c]
inc eax
jmp 0x40976c
xor eax, eax
lea edx, [esp + 0x2c]
mov word [esp + 0x6c], ax
push edx
lea eax, [esp + 0x40]
push eax
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x50]
push ebp
push 0x17
push ebp
mov edi, str.DayHour
mov esi, str.DiskDefragRunShedule
mov word [esp + 0x82], ax
call fcn.004081e0
add esp, 0x14
push ebp
mov ebx, 2
xor ecx, ecx
push ebx
push ebp
mov edi, str.Frequency
mov word [esp + 0x7c], ax
mov word [esp + 0x7e], cx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
call fcn.004081e0
add esp, 0xc
sub eax, ebp
je 0x40999e
sub eax, 1
je 0x40989f
sub eax, 1
jne 0x4099b6
fld dword [0x44c3d4]
push ecx
fstp dword [esp]
mov dword [esp + 0x84], 3
call fcn.0040b5c0
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x28], eax
add esp, 4
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov dx, word [esp + 0x24]
dec dx
mov word [esp + 0x88], dx
fldcw word [esp + 0x1a]
call fcn.00409250
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x409856
fadd dword [0x44c3d0]
fstp dword [esp + 0x24]
fld qword [0x44c3c8]
fld dword [esp + 0x24]
call sub.MSVCR90.dll__CIpow
fnstcw word [esp + 0x1a]
movzx eax, word [esp + 0x1a]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x84], eax
fldcw word [esp + 0x1a]
jmp 0x4099b6
mov dword [esp + 0x80], ebx
call fcn.00409250
cmp eax, 6
ja case.default.0x4098b4
jmp dword [eax*4 + 0x409a80]
mov ecx, ebx
mov eax, 1
mov word [esp + 0x86], cx
mov word [esp + 0x84], ax
jmp 0x4099b6
mov edx, 4
mov eax, 1
mov word [esp + 0x86], dx
mov word [esp + 0x84], ax
jmp 0x4099b6
mov eax, 8
mov word [esp + 0x86], ax
mov eax, 1
mov word [esp + 0x84], ax
jmp 0x4099b6
mov ecx, 0x10
mov eax, 1
mov word [esp + 0x86], cx
mov word [esp + 0x84], ax
jmp 0x4099b6
mov edx, 0x20
mov eax, 1
mov word [esp + 0x86], dx
mov word [esp + 0x84], ax
jmp 0x4099b6
mov eax, 0x40
mov word [esp + 0x86], ax
mov eax, 1
mov word [esp + 0x84], ax
jmp 0x4099b6
mov ecx, 1
mov eax, ecx
mov word [esp + 0x86], cx
mov word [esp + 0x84], ax
jmp 0x4099b6
mov edx, ebx
mov eax, 1
mov word [esp + 0x86], dx
mov word [esp + 0x84], ax
jmp 0x4099b6
mov ecx, 1
mov dword [esp + 0x80], 1
mov word [esp + 0x84], cx
xor edx, edx
xor eax, eax
lea ecx, [esp + 0x20]
mov word [esp + 0x8e], dx
mov word [esp + 0x8c], ax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push 0x445468
push 0x445468
push 0x445468
push str.3400002
mov byte [esp + 0xa8], bl
call sub.Languages.dll_Ordinal_4_1
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov ecx, dword [esp + 0x38]
cmp ecx, ebp
je 0x409a28
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push ebp
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x28]
push 0x2000
push eax
mov eax, dword [esp + 0x2c]
push str.ScheduleStart
push eax
call edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x409a49
cmp ecx, ebp
je 0x409a49
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x9c], 0xffffffff
call fcn.00430300
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret