50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x1400b72d0 FUN_1400b72d0
|
|
* Pseudocode, not original source. */
|
|
|
|
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
|
|
|
undefined8 FUN_1400b72d0(uint param_1,uint param_2,longlong param_3,undefined *param_4)
|
|
|
|
{
|
|
DWORD DVar1;
|
|
DWORD DVar2;
|
|
undefined8 uVar3;
|
|
longlong lVar4;
|
|
undefined1 auStack_168 [32];
|
|
byte local_148 [256];
|
|
ulonglong local_48;
|
|
|
|
local_48 = DAT_14016f5a0 ^ (ulonglong)auStack_168;
|
|
lVar4 = (longlong)(int)param_2;
|
|
if (param_3 == 0) {
|
|
uVar3 = 0x10;
|
|
}
|
|
else {
|
|
uVar3 = FUN_1400d58f0(param_2);
|
|
if ((int)uVar3 == 0) {
|
|
if (param_1 - 0x40 < 0x3c1) {
|
|
uVar3 = (**(code **)(lVar4 * 0x50 + 0x140179550))(param_3);
|
|
if ((int)uVar3 == 0) {
|
|
DVar1 = ((int)CONCAT71((int7)((ulonglong)uVar3 >> 8),(param_1 & 7) != 0) +
|
|
((int)(param_1 + ((int)param_1 >> 0x1f & 7U)) >> 3)) * 2;
|
|
DVar2 = FUN_1400d5890(local_148,DVar1,param_4);
|
|
if (DVar2 == DVar1) {
|
|
uVar3 = (**(code **)(lVar4 * 0x50 + 0x140179558))(local_148,DVar1,param_3);
|
|
if ((int)uVar3 == 0) {
|
|
uVar3 = (**(code **)(lVar4 * 0x50 + 0x140179560))(param_3);
|
|
}
|
|
}
|
|
else {
|
|
uVar3 = 9;
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
uVar3 = 8;
|
|
}
|
|
}
|
|
}
|
|
return uVar3;
|
|
}
|
|
|