Simulation study of the link between molecular association and reentrant miscibility for a mixture of molecules with directional interactions