Since $A$ and $A^\ast$ commute, we have
$$
\frac 1 4(A+A^\ast)^2-\frac 14(A-A^\ast)^2=A^\ast A.
$$
Since $A+A^\ast$ and $i(A-A^\ast)$ are self-adjoint operators, it follows that
\begin{align*}
\|A x\|^2&=\langle A^\ast Ax,x\rangle\\
&=\frac 1 4\langle (A+A^\ast)^2x,x\rangle-\frac 1 4\langle (A-A^\ast)^2x,x\rangle\\
&=\frac 1 4\|(A+A^\ast)x\|^2+\frac 1 4 \|i(A-A^\ast)x\|^2.
\end{align*}
By the open mapping theorem (or the bounded inverse theorem if youlike), there exists a constant $c>0$ such that $\|(A+A^\ast)x\|\geq c\|x\|$. Thus
$$
\|Ax\|\geq \frac{c}{2}\|x\|.
$$
Thus $A$ is a bijective operator from $H$ to $\operatorname{im}A$ with bounded inverse. In particular, $\operatorname{im}A$ is closed. Finally, if $y\perp\operatorname{im}A$, then
$$
0=\langle y,AA^\ast y\rangle=\|A^\ast y\|^2,
$$
hence $y\in \ker A^\ast=\{0\}$. Therefore, $\operatorname{im}A$ is also dense in $H$.
Here is a shorter answer that requires a little more technology: By the spectral theorem, the unital $C^\ast$-algebra generated by $A$ is $\ast$-isomorphic to $C(K)$ for some compact $K$, so this question boils down to the invertibility of $f\in C(K)$ under the assumption that $\operatorname{Re}f$ is invertible. Of course, an element of $C(K)$ is invertible if and only if it has no zero. Furthermore, the zeros of $f$ coincide with the zeros of $|f|$. Now all we have to do is to notice that
$$
|f|^2=(\operatorname{Re}f)^2+(\operatorname{Im}f)^2\geq (\operatorname{Re}f)^2>0.
$$