55 lines
2 KiB
C
55 lines
2 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x140072f60 FUN_140072f60
|
|
* Pseudocode, not original source. */
|
|
|
|
uint FUN_140072f60(longlong param_1,undefined8 param_2,undefined **param_3,undefined8 param_4)
|
|
|
|
{
|
|
int iVar1;
|
|
uint uVar2;
|
|
undefined *puVar3;
|
|
undefined4 *puVar4;
|
|
undefined *local_res8;
|
|
undefined4 local_res10 [2];
|
|
int local_38 [2];
|
|
undefined8 local_30;
|
|
|
|
if (*(char *)(param_1 + 0x1c0) != '\0') {
|
|
FUN_14006cb70(param_1,param_2,param_3,param_4);
|
|
local_res8 = PTR_DAT_1401ac010;
|
|
iVar1 = FUN_14006c9f0(L"WARNING: IssueRecvFrom is duplicated!");
|
|
puVar3 = FUN_140002f30((longlong *)&local_res8,iVar1);
|
|
FUN_14006ca20(puVar3,L"WARNING: IssueRecvFrom is duplicated!",iVar1);
|
|
FUN_140003010((longlong *)&local_res8);
|
|
param_3 = &local_res8;
|
|
(**(code **)(**(longlong **)(param_1 + 0x18) + 8))(*(longlong **)(param_1 + 0x18),param_1);
|
|
}
|
|
iVar1 = (int)param_2;
|
|
if (0 < iVar1) {
|
|
FUN_1400146f0(param_1 + 0x200,iVar1,(SIZE_T)param_3);
|
|
local_30 = 0;
|
|
if (*(int *)(param_1 + 0x218) != 0) {
|
|
local_30 = *(undefined8 *)(param_1 + 0x210);
|
|
}
|
|
local_res10[0] = 0;
|
|
*(undefined4 *)(param_1 + 0x304) = 0;
|
|
local_38[0] = iVar1;
|
|
do {
|
|
*(undefined4 *)(param_1 + 0x300) = 0x10;
|
|
*(undefined1 *)(param_1 + 0x1c0) = *(undefined1 *)(param_1 + 0x1c0);
|
|
puVar4 = local_res10;
|
|
*(undefined1 *)(param_1 + 0x1c0) = 1;
|
|
iVar1 = WSARecvFrom(*(undefined8 *)(param_1 + 0x3d0),local_38,1,puVar4,
|
|
(undefined4 *)(param_1 + 0x304),param_1 + 0x2f0,
|
|
(undefined4 *)(param_1 + 0x300),param_1 + 0x180,0);
|
|
if ((iVar1 == 0) || (uVar2 = Ordinal_111(), uVar2 == 0x3e5)) {
|
|
return 0;
|
|
}
|
|
} while (((uVar2 == 0x2738) || (uVar2 == 0x2744)) || (uVar2 == 0x2746));
|
|
*(undefined1 *)(param_1 + 0x1c0) = 0;
|
|
FUN_140072870(param_1,(ulonglong)uVar2,L"Proud::CFastSocket::IssueRecvFrom",puVar4);
|
|
return uVar2;
|
|
}
|
|
return 0x2726;
|
|
}
|
|
|