A dad accused of murdering his eight-year-old daughter was well aware of the consequences before withdrawing her insulin in the days before her death, a court has heard.