Neither MiscExp nor Withdraw transactions have any effect at all on cost basis, nor should they. Nor should management fees affect cost basis. (I do not believe you are talking about management fees applicable within mutual funds, but even those fees affect performance and contribute to lower NAVs. Those MF mgt fees do not affect cost basis either.)