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

25 lines
859 B
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x14003af10 __GSHandlerCheckCommon
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
/* Library Function - Single Match
__GSHandlerCheckCommon
Libraries: Visual Studio 2008 Release, Visual Studio 2010 Release, Visual Studio 2012 Release,
Visual Studio 2019 Release */
longlong __GSHandlerCheckCommon(undefined8 param_1,longlong param_2)
{
longlong lVar1;
longlong lVar2;
lVar1 = *(longlong *)(param_2 + 0x10);
lVar2 = (ulonglong)*(uint *)(lVar1 + 8) + *(longlong *)(param_2 + 8);
if ((*(byte *)(lVar2 + 3) & 0xf) != 0) {
lVar1 = (longlong)(int)(*(byte *)(lVar2 + 3) & 0xfffffff0);
}
return lVar1;
}