51 lines
1.5 KiB
C
51 lines
1.5 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1401f2cc0 FUN_1401f2cc0
|
|
* Pseudocode, not original source. */
|
|
|
|
undefined8 FUN_1401f2cc0(longlong param_1,undefined8 *param_2)
|
|
|
|
{
|
|
bool bVar1;
|
|
undefined4 uVar2;
|
|
undefined *puVar3;
|
|
undefined8 uVar4;
|
|
undefined *local_res18;
|
|
|
|
puVar3 = (undefined *)
|
|
__RTDynamicCast(*param_2,0,&Proud::ICompletionContext::RTTI_Type_Descriptor,
|
|
&Proud::CTcpLayer_C::RTTI_Type_Descriptor,0);
|
|
if (puVar3 == (undefined *)0x0) {
|
|
uVar4 = 0;
|
|
}
|
|
else {
|
|
param_1 = param_1 + 0x10;
|
|
local_res18 = puVar3;
|
|
FUN_14016db50(param_1);
|
|
bVar1 = true;
|
|
if (*(int *)(param_2 + 2) == 1) {
|
|
uVar4 = (**(code **)(**(longlong **)(puVar3 + 0x120) + 0x38))();
|
|
FUN_1401ec760(uVar4,param_2);
|
|
}
|
|
else if (*(int *)(param_2 + 2) == 2) {
|
|
uVar4 = (**(code **)(**(longlong **)(puVar3 + 0x120) + 0x38))();
|
|
FUN_1401f25b0(uVar4,param_2);
|
|
}
|
|
else {
|
|
FUN_14016dbe0(param_1);
|
|
bVar1 = false;
|
|
FUN_14016d8c0();
|
|
local_res18 = PTR_DAT_1403440a0;
|
|
uVar2 = FUN_14016d740(L"Unexpected at Client IOCP TCP completion!");
|
|
uVar4 = FUN_14004e940(&local_res18,uVar2);
|
|
FUN_14016d770(uVar4,L"Unexpected at Client IOCP TCP completion!",uVar2);
|
|
FUN_14004e560(&local_res18);
|
|
FUN_1401be230(&local_res18);
|
|
}
|
|
if (bVar1) {
|
|
FUN_14016dbe0(param_1);
|
|
}
|
|
uVar4 = 1;
|
|
}
|
|
return uVar4;
|
|
}
|
|
|