store allocator & remove global assembly

We now store the original allocator that was used to allocate the
memory required for the thread. This allocator can then be used
in any cleanup functionality to ensure the memory is freed correctly.

Secondly, we now use a function to set the stack pointer instead of
generating a function using global assembly. This is a lot cleaner
and more readable.
10bf58b2dbLuuk de Gram committed on 6/26/2023, 6:00:57 PMparenta97dbdf
1 file changedLine totals unavailable