server-re/decomp/Agent_Release_x64/full/functions/0x14003b100.c
2026-10-14 16:45:19 -04:00

32 lines
831 B
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x14003b100 __chkstk
* Pseudocode, not original source. */
/* WARNING: This is an inlined function */
/* Library Function - Single Match
__chkstk
Libraries: Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio 2012 */
void __chkstk(void)
{
undefined1 *in_RAX;
undefined1 *puVar1;
undefined1 *puVar2;
undefined1 local_res8 [32];
puVar1 = local_res8 + -(longlong)in_RAX;
if (local_res8 < in_RAX) {
puVar1 = (undefined1 *)0x0;
}
if (puVar1 < StackLimit) {
puVar2 = StackLimit;
do {
puVar2 = puVar2 + -0x1000;
*puVar2 = 0;
} while ((undefined1 *)((ulonglong)puVar1 & 0xfffffffffffff000) != puVar2);
}
return;
}