33 lines
991 B
C
33 lines
991 B
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400b9220 FUN_1400b9220
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
|
|
|
ulonglong FUN_1400b9220(longlong param_1)
|
|
|
|
{
|
|
ulonglong uVar1;
|
|
int iVar2;
|
|
undefined1 auStack_58 [32];
|
|
undefined1 local_38 [32];
|
|
ulonglong local_18;
|
|
|
|
local_18 = DAT_14016f5a0 ^ (ulonglong)auStack_58;
|
|
if (param_1 == 0) {
|
|
return 0x10;
|
|
}
|
|
EnterCriticalSection((LPCRITICAL_SECTION)(param_1 + 0x1030));
|
|
iVar2 = 0;
|
|
do {
|
|
uVar1 = FUN_1400da600((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;
|
|
}
|
|
|