Skip to content

Instantly share code, notes, and snippets.

@MrSapps
Created January 2, 2017 00:12
Show Gist options
  • Save MrSapps/709547a8bc4ea125fec61008ab7bae53 to your computer and use it in GitHub Desktop.
Save MrSapps/709547a8bc4ea125fec61008ab7bae53 to your computer and use it in GitHub Desktop.
malloc
unsigned int __stdcall MallocExtra_4059F0(int requestSize, _DWORD *pAllocated)
{
void *pAllocatedWithExtra; // eax@1
pAllocatedWithExtra = malloc(requestSize + 65536);
*pAllocated = pAllocatedWithExtra;
if ( !pAllocatedWithExtra )
TraceLog_450530(1029, "Memory.cpp", 76);
return (*pAllocated + 65535) & 0xFFFF0000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment