52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
|
|
* Ghidra 12.1.2 decompiler output for 0x1400be890 FUN_1400be890
|
|
* Pseudocode, not original source. */
|
|
|
|
ulonglong FUN_1400be890(void *param_1,uint param_2,longlong param_3)
|
|
|
|
{
|
|
int iVar1;
|
|
ulonglong uVar2;
|
|
ulonglong uVar3;
|
|
undefined1 local_res8;
|
|
undefined1 local_res9;
|
|
|
|
if ((param_1 != (void *)0x0) && (param_3 != 0)) {
|
|
EnterCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
if (0x20 < param_2) {
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
return 0x10;
|
|
}
|
|
local_res8 = 0;
|
|
local_res9 = (undefined1)param_2;
|
|
uVar2 = FUN_1400cb6f0((longlong *)((ulonglong)*(uint *)(param_3 + 0x1018) * 0x70 + param_3),
|
|
&local_res8,2);
|
|
uVar3 = uVar2 & 0xffffffff;
|
|
if ((int)uVar2 == 0) {
|
|
uVar2 = FUN_1400cb6f0((longlong *)((ulonglong)*(uint *)(param_3 + 0x1018) * 0x70 + param_3),
|
|
param_1,param_2);
|
|
uVar3 = uVar2 & 0xffffffff;
|
|
if ((int)uVar2 == 0) {
|
|
if (*(int *)(param_3 + 0x1018) == 0) {
|
|
*(int *)(param_3 + 0x101c) = *(int *)(param_3 + 0x101c) + param_2;
|
|
}
|
|
iVar1 = *(int *)(param_3 + 0x1018) + 1;
|
|
if (iVar1 == 0x20) {
|
|
iVar1 = 0;
|
|
}
|
|
*(int *)(param_3 + 0x1018) = iVar1;
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
uVar3 = 0;
|
|
}
|
|
else {
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
}
|
|
}
|
|
else {
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
}
|
|
return uVar3;
|
|
}
|
|
return 0x10;
|
|
}
|
|
|