decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,53 @@
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x1400041b0 FUN_1400041b0
* Pseudocode, not original source. */
void FUN_1400041b0(undefined8 *param_1,ulonglong param_2,size_t param_3)
{
ulonglong uVar1;
undefined8 *_Dst;
ulonglong uVar2;
undefined8 *_Src;
ulonglong uVar3;
char *local_res20;
undefined **local_40 [4];
uVar3 = param_2 | 0xf;
if (uVar3 != 0xffffffffffffffff) {
uVar1 = param_1[3];
uVar2 = uVar1 >> 1;
param_2 = uVar3;
if ((uVar3 / 3 < uVar2) && (param_2 = 0xfffffffffffffffe, uVar1 <= -uVar2 - 2)) {
param_2 = uVar2 + uVar1;
}
}
_Dst = (undefined8 *)0x0;
if ((param_2 + 1 != 0) && (_Dst = operator_new(param_2 + 1), _Dst == (undefined8 *)0x0)) {
local_res20 = (char *)0x0;
std::exception::exception((exception *)local_40,&local_res20);
local_40[0] = std::bad_alloc::vftable;
/* WARNING: Subroutine does not return */
_CxxThrowException(local_40,(ThrowInfo *)&DAT_1401a9330);
}
if (param_3 != 0) {
_Src = param_1;
if (0xf < (ulonglong)param_1[3]) {
_Src = (undefined8 *)*param_1;
}
memcpy(_Dst,_Src,param_3);
}
if (0xf < (ulonglong)param_1[3]) {
operator_delete((void *)*param_1);
}
*(undefined1 *)param_1 = 0;
*param_1 = _Dst;
param_1[3] = param_2;
param_1[2] = param_3;
if (0xf < param_2) {
param_1 = _Dst;
}
*(undefined1 *)((longlong)param_1 + param_3) = 0;
return;
}