121 lines
3.5 KiB
C
121 lines
3.5 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1401bb7f0 FUN_1401bb7f0
|
|
* Pseudocode, not original source. */
|
|
|
|
undefined8 *
|
|
FUN_1401bb7f0(undefined8 *param_1,longlong param_2,undefined8 param_3,undefined8 param_4)
|
|
|
|
{
|
|
longlong *plVar1;
|
|
longlong lVar2;
|
|
longlong *plVar3;
|
|
undefined4 uVar4;
|
|
undefined8 *puVar5;
|
|
undefined8 *puVar6;
|
|
undefined8 *puVar7;
|
|
longlong *local_res10;
|
|
undefined8 uVar8;
|
|
undefined8 local_50;
|
|
undefined4 local_44;
|
|
undefined8 *local_40;
|
|
|
|
uVar8 = 0xfffffffffffffffe;
|
|
*param_1 = Proud::ICompletionContext::vftable;
|
|
puVar7 = (undefined8 *)0x0;
|
|
param_1[0x12] = 0;
|
|
param_1[0x13] = 0;
|
|
param_1[0x14] = 0;
|
|
param_1[1] = Proud::IUdpPacketFragBoardDg::vftable;
|
|
param_1[2] = Proud::IUdpPacketDefragBoardDg::vftable;
|
|
FUN_1401ba9d0(param_1 + 8);
|
|
*param_1 = Proud::CUdpSocket_S::vftable;
|
|
param_1[1] = Proud::CUdpSocket_S::vftable;
|
|
param_1[2] = Proud::CUdpSocket_S::vftable;
|
|
param_1[8] = Proud::CUdpSocket_S::vftable;
|
|
param_1[0x11] = Proud::CUdpSocket_S::vftable;
|
|
uVar4 = FUN_140171510();
|
|
FUN_14016da70(param_1 + 0x15,uVar4,1,param_4,uVar8);
|
|
param_1[0x1c] = 0;
|
|
param_1[0x2a] = 0;
|
|
param_1[0x2b] = Proud::AddrPort::vftable;
|
|
*(undefined4 *)(param_1 + 0x2c) = 0;
|
|
*(undefined2 *)((longlong)param_1 + 0x164) = 0;
|
|
param_1[0x2d] = 0;
|
|
param_1[0x2e] = 0;
|
|
param_1[0x2f] = 0;
|
|
FUN_1401b3aa0(&local_50);
|
|
local_50 = 0;
|
|
local_44 = 1;
|
|
local_40 = param_1 + 0x15;
|
|
uVar8 = FUN_14016da10(0x800,&local_50);
|
|
param_1[0x1c] = uVar8;
|
|
local_res10 = operator_new(0x90);
|
|
puVar5 = puVar7;
|
|
if (local_res10 != (longlong *)0x0) {
|
|
puVar5 = (undefined8 *)FUN_1401ba190(local_res10,param_1[0x1c],param_1 + 1);
|
|
}
|
|
param_1[0x2d] = puVar5;
|
|
*(undefined1 *)(puVar5 + 0x11) = 0;
|
|
puVar6 = operator_new(0x6b8);
|
|
puVar5 = puVar7;
|
|
if (puVar6 != (undefined8 *)0x0) {
|
|
*puVar6 = 0;
|
|
puVar6[3] = 0;
|
|
puVar6[1] = 0;
|
|
puVar6[2] = 100;
|
|
puVar6[0xcf] = Proud::CFastArray<Proud::UdpPacketCtx*___ptr64,1>::vftable;
|
|
puVar6[0xd0] = 0;
|
|
puVar6[0xd1] = 0;
|
|
puVar6[0xd2] = 0;
|
|
puVar6[0xd3] = 0;
|
|
puVar6[0xd4] = Proud::AddrPort::vftable;
|
|
*(undefined4 *)(puVar6 + 0xd5) = 0;
|
|
*(undefined2 *)((longlong)puVar6 + 0x6ac) = 0;
|
|
puVar5 = puVar6;
|
|
}
|
|
param_1[0x2e] = puVar5;
|
|
*(undefined1 *)(param_1 + 0x20) = 0;
|
|
*(undefined1 *)(param_1 + 0x28) = 0;
|
|
local_res10 = (longlong *)FUN_14016d940(0x400);
|
|
puVar5 = puVar7;
|
|
if (local_res10 != (longlong *)0x0) {
|
|
puVar5 = (undefined8 *)(param_2 + 0x60);
|
|
if (param_2 == 0) {
|
|
puVar5 = puVar7;
|
|
}
|
|
puVar5 = (undefined8 *)FUN_14019cad0(local_res10,1,puVar5);
|
|
}
|
|
if (puVar5 == (undefined8 *)0x0) {
|
|
local_res10 = (longlong *)0x0;
|
|
}
|
|
else {
|
|
local_res10 = (longlong *)FUN_14016d940(0x10);
|
|
local_res10[1] = 1;
|
|
*local_res10 = (longlong)puVar5;
|
|
}
|
|
plVar1 = local_res10;
|
|
FUN_1401786c0(param_1 + 0x2a,&local_res10);
|
|
plVar3 = local_res10;
|
|
if (plVar1 != (longlong *)0x0) {
|
|
plVar1 = plVar1 + 1;
|
|
*plVar1 = *plVar1 + -1;
|
|
if (*plVar1 == 0) {
|
|
lVar2 = *local_res10;
|
|
if (lVar2 != 0) {
|
|
FUN_14019c9e0(lVar2);
|
|
FUN_14016d970(lVar2);
|
|
}
|
|
FUN_14016d970(plVar3);
|
|
}
|
|
}
|
|
param_1[0x29] = param_2;
|
|
*(undefined4 *)(param_1 + 0x2c) = DAT_140344450;
|
|
*(undefined2 *)((longlong)param_1 + 0x164) = DAT_140344454;
|
|
local_res10 = operator_new(0x60);
|
|
if (local_res10 != (longlong *)0x0) {
|
|
puVar7 = (undefined8 *)FUN_1401ba2f0(local_res10,param_1 + 2);
|
|
}
|
|
param_1[0x2f] = puVar7;
|
|
return param_1;
|
|
}
|
|
|