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

33 lines
984 B
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x1400bebd0 FUN_1400bebd0
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
ulonglong FUN_1400bebd0(longlong param_1)
{
ulonglong uVar1;
int iVar2;
undefined1 auStack_58 [32];
undefined1 local_38 [32];
ulonglong local_18;
local_18 = DAT_1401555a0 ^ (ulonglong)auStack_58;
if (param_1 == 0) {
return 0x10;
}
EnterCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x1030));
iVar2 = 0;
do {
uVar1 = FUN_1400cb7d0((longlong *)((longlong)iVar2 * 0x70 + param_1),local_38);
if ((int)uVar1 != 0) {
LeaveCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x1030));
return uVar1 & 0xffffffff;
}
iVar2 = iVar2 + 1;
} while (iVar2 < 0x20);
LeaveCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x1030));
return 0;
}