84 lines
2.4 KiB
C
84 lines
2.4 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x14019d730 FUN_14019d730
|
|
* Pseudocode, not original source. */
|
|
|
|
undefined4 FUN_14019d730(longlong param_1,undefined8 *param_2,uint param_3)
|
|
|
|
{
|
|
undefined1 uVar1;
|
|
undefined4 uVar2;
|
|
int iVar3;
|
|
int iVar4;
|
|
undefined8 uVar5;
|
|
undefined8 *_Dst;
|
|
ulonglong uVar6;
|
|
ulonglong uVar7;
|
|
undefined8 *puVar8;
|
|
undefined *local_res8;
|
|
undefined4 local_res18 [4];
|
|
uint local_28 [2];
|
|
undefined8 local_20;
|
|
|
|
uVar7 = (ulonglong)(int)param_3;
|
|
if (*(char *)(param_1 + 0x280) != '\0') {
|
|
FUN_14016d8c0();
|
|
local_res8 = PTR_DAT_1403440a0;
|
|
uVar2 = FUN_14016d740(L"WARNING: IssueSend is duplicated!");
|
|
uVar5 = FUN_14004e940(&local_res8,uVar2);
|
|
FUN_14016d770(uVar5,L"WARNING: IssueSend is duplicated!",uVar2);
|
|
FUN_14004e560(&local_res8);
|
|
(**(code **)(**(longlong **)(param_1 + 0x18) + 8))
|
|
(*(longlong **)(param_1 + 0x18),param_1,&local_res8);
|
|
}
|
|
if ((int)param_3 < 1) {
|
|
return 0x2726;
|
|
}
|
|
FUN_14004f0e0(param_1 + 0x2c0,param_3);
|
|
if (*(int *)(param_1 + 0x2d8) == 0) {
|
|
_Dst = (undefined8 *)0x0;
|
|
}
|
|
else {
|
|
_Dst = *(undefined8 **)(param_1 + 0x2d0);
|
|
}
|
|
if (uVar7 < 0x21) {
|
|
uVar6 = (ulonglong)(param_3 & 7);
|
|
for (uVar7 = uVar7 >> 3; uVar7 != 0; uVar7 = uVar7 - 1) {
|
|
uVar5 = *param_2;
|
|
param_2 = param_2 + 1;
|
|
*_Dst = uVar5;
|
|
_Dst = _Dst + 1;
|
|
}
|
|
if (uVar6 != 0) {
|
|
puVar8 = param_2;
|
|
do {
|
|
uVar1 = *(undefined1 *)puVar8;
|
|
puVar8 = (undefined8 *)((longlong)puVar8 + 1);
|
|
uVar6 = uVar6 - 1;
|
|
*(undefined1 *)((longlong)_Dst + (-1 - (longlong)param_2) + (longlong)puVar8) = uVar1;
|
|
} while (uVar6 != 0);
|
|
}
|
|
}
|
|
else {
|
|
memcpy(_Dst,param_2,uVar7);
|
|
}
|
|
if (*(int *)(param_1 + 0x2d8) == 0) {
|
|
local_20 = 0;
|
|
}
|
|
else {
|
|
local_20 = *(undefined8 *)(param_1 + 0x2d0);
|
|
}
|
|
local_res18[0] = 0;
|
|
*(undefined1 *)(param_1 + 0x280) = 0;
|
|
*(undefined1 *)(param_1 + 0x280) = 1;
|
|
local_28[0] = param_3;
|
|
iVar3 = WSASend(*(undefined8 *)(param_1 + 0x3d0),local_28,1,local_res18,0,param_1 + 0x240,0);
|
|
if ((iVar3 < 0) && (iVar4 = Ordinal_111(), iVar4 != 0x3e5)) {
|
|
*(undefined1 *)(param_1 + 0x280) = 0;
|
|
uVar2 = Ordinal_111();
|
|
FUN_14019ce80(param_1,uVar2,L"Proud::CFastSocket::IssueSend");
|
|
return uVar2;
|
|
}
|
|
*(bool *)(param_1 + 0x3c2) = iVar3 == 0;
|
|
return 0;
|
|
}
|
|
|