53 lines
1.9 KiB
C
53 lines
1.9 KiB
C
/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
|
|
* Ghidra 12.1.2 decompiler output for 0x14008a8e0 FUN_14008a8e0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14008a8e0(longlong param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
|
|
|
|
{
|
|
int *piVar1;
|
|
short *psVar2;
|
|
int *piVar3;
|
|
longlong *plVar4;
|
|
longlong lVar5;
|
|
undefined8 uVar6;
|
|
short *psVar7;
|
|
double dVar8;
|
|
short *local_res8;
|
|
|
|
if (*(longlong *)(param_1 + 0xc0) == 0) {
|
|
*(undefined8 *)(param_1 + 0xc0) = param_2;
|
|
plVar4 = (longlong *)(*(longlong *)(param_1 + 0x198) + 0x118);
|
|
uVar6 = param_2;
|
|
dVar8 = (double)(**(code **)(*plVar4 + 8))(plVar4,param_2,param_3,param_4,0xfffffffffffffffe);
|
|
if ((dVar8 - *(double *)(param_1 + 0x5f0) < 0.3) &&
|
|
(*(longlong *)(*(longlong *)(param_1 + 0x198) + 0x17f0) != 0)) {
|
|
FUN_14003e7c0(plVar4,uVar6,param_3,param_4);
|
|
local_res8 = (short *)PTR_DAT_14016f010;
|
|
FUN_140029b80((longlong *)&local_res8,
|
|
L"**경고** 클라가 들어오자마자 바로 추방되었습니다. 의도입니까, 버그입니까?: %s"
|
|
,param_2,param_4);
|
|
psVar2 = local_res8;
|
|
psVar7 = local_res8;
|
|
if (local_res8 == (short *)0x0) {
|
|
psVar7 = (short *)PTR_DAT_14016f010;
|
|
}
|
|
uVar6 = 0;
|
|
lVar5 = *(longlong *)(*(longlong *)(param_1 + 0x198) + 0x17f0);
|
|
FUN_1400843d0(lVar5,0,psVar7,param_4);
|
|
if (((psVar2 != (short *)0x0) && (psVar2 != (short *)PTR_DAT_14016f010)) &&
|
|
(psVar2 + -4 != (short *)0x0)) {
|
|
piVar3 = (int *)FUN_14003e7c0(lVar5,uVar6,psVar7,param_4);
|
|
FUN_14003d040(piVar3);
|
|
piVar1 = (int *)(psVar2 + -2);
|
|
*piVar1 = *piVar1 + -1;
|
|
if (*piVar1 == 0) {
|
|
FUN_14003e8b0(psVar2 + -4);
|
|
}
|
|
FUN_14003d0d0((longlong)piVar3);
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|