Stochastic differential equation of Black-Scholes model is defines as
\begin{eqnarray}\label{ref9}
dS_t = (r-d)S_tdt+ \sigma S_t dW_t
\end{eqnarray}
where the interest rate $r$, the dividend yield $d$, and volatility $\sigma$ are assumed to be constant. Additionally, $S_0 \in (0, +\infty)$, $t \in [0, T]$, and $W_t$ is Brownian Motion stochastic process with following properties:
1- starts at zero
2-independent distributed increments
3-stationary distributed increments
4-normally distributed increments : $W_{t+s}-W_{t}\sim Normal(0,s)$
5-continuous sample paths
Another representation of Black-Scholes model is Geometric form which defined as \begin{eqnarray}\label{ref1} S_t = S_0 \exp\left\{(r-d-\frac{\sigma^2}{2})t+\sigma W_t\right\} \end{eqnarray}
My question here is: What is the distribution of \begin{eqnarray} M = max\{S(t),\, 0\leqslant t \leqslant T\} \end{eqnarray}
The distribution of the maximum of a 1-dimensional diffusion process is known, and for a Brownian motion with drift (the exponent of the geometric BM), the formula is fairly explicit. See "On the joint distribution of the maximum and its location for a linear diffusion" by E. Csáki, A. Földes, Antónia, and P. Salminen: http://www.numdam.org/item/?id=AIHPB_1987__23_2_179_0.