decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
115
decomp/DBCServer_Release_x64/full/functions/0x14019e410.c
Normal file
115
decomp/DBCServer_Release_x64/full/functions/0x14019e410.c
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14019e410 FUN_14019e410
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
int FUN_14019e410(longlong param_1,undefined8 *param_2,uint param_3,longlong param_4)
|
||||
|
||||
{
|
||||
undefined1 uVar1;
|
||||
char cVar2;
|
||||
undefined4 uVar3;
|
||||
int iVar4;
|
||||
undefined8 uVar5;
|
||||
undefined8 *_Dst;
|
||||
ulonglong uVar6;
|
||||
ulonglong uVar7;
|
||||
undefined8 *puVar8;
|
||||
undefined1 auStack_c8 [32];
|
||||
undefined4 local_a8;
|
||||
undefined1 *local_a0;
|
||||
undefined4 local_98;
|
||||
longlong local_90;
|
||||
undefined8 local_88;
|
||||
undefined4 local_78 [2];
|
||||
undefined *local_70;
|
||||
undefined **local_68;
|
||||
undefined4 local_60;
|
||||
undefined2 local_5c;
|
||||
uint local_58 [2];
|
||||
undefined8 local_50;
|
||||
undefined1 local_48 [16];
|
||||
ulonglong local_38;
|
||||
|
||||
local_38 = DAT_1403463c0 ^ (ulonglong)auStack_c8;
|
||||
uVar7 = (ulonglong)(int)param_3;
|
||||
if (*(char *)(param_1 + 0x280) != '\0') {
|
||||
FUN_14016d8c0();
|
||||
local_70 = PTR_DAT_1403440a0;
|
||||
uVar3 = FUN_14016d740(L"WARNING: IssueSendTo is duplicated!");
|
||||
uVar5 = FUN_14004e940(&local_70,uVar3);
|
||||
FUN_14016d770(uVar5,L"WARNING: IssueSendTo is duplicated!",uVar3);
|
||||
FUN_14004e560(&local_70);
|
||||
(**(code **)(**(longlong **)(param_1 + 0x18) + 8))
|
||||
(*(longlong **)(param_1 + 0x18),param_1,&local_70);
|
||||
}
|
||||
if ((int)param_3 < 1) {
|
||||
iVar4 = 0x2726;
|
||||
}
|
||||
else {
|
||||
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_50 = 0;
|
||||
}
|
||||
else {
|
||||
local_50 = *(undefined8 *)(param_1 + 0x2d0);
|
||||
}
|
||||
local_58[0] = param_3;
|
||||
FUN_14016f800(param_4,local_48);
|
||||
local_68 = Proud::AddrPort::vftable;
|
||||
local_60 = *(undefined4 *)(param_4 + 8);
|
||||
local_5c = *(undefined2 *)(param_4 + 0xc);
|
||||
local_78[0] = 0;
|
||||
cVar2 = FUN_14019ded0(param_1,&local_68);
|
||||
if (cVar2 == '\0') {
|
||||
iVar4 = 0x271d;
|
||||
}
|
||||
else {
|
||||
local_88 = 0;
|
||||
*(undefined1 *)(param_1 + 0x280) = 0;
|
||||
local_90 = param_1 + 0x240;
|
||||
local_a0 = local_48;
|
||||
local_98 = 0x10;
|
||||
*(undefined1 *)(param_1 + 0x280) = 1;
|
||||
local_a8 = 0;
|
||||
iVar4 = WSASendTo(*(undefined8 *)(param_1 + 0x3d0),local_58,1,local_78);
|
||||
if ((iVar4 == 0) || (iVar4 = Ordinal_111(), iVar4 == 0x3e5)) {
|
||||
iVar4 = 0;
|
||||
}
|
||||
else {
|
||||
*(undefined1 *)(param_1 + 0x280) = 0;
|
||||
FUN_14019ce80(param_1,iVar4,L"Proud::CFastSocket::IssueSendTo");
|
||||
}
|
||||
}
|
||||
}
|
||||
return iVar4;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue