Here is another article exploring the role of insulin resistance – common in overweight and/or diabetic men. They authors of this paper reviewed the literature and concluded that problems with insulin can affect nitric oxide (NO) production and blood vessel health, which are important factors in erection health. Here is the LINK.