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
53
decomp/DBCServer_Release_x64/full/functions/0x14004c4c0.c
Normal file
53
decomp/DBCServer_Release_x64/full/functions/0x14004c4c0.c
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004c4c0 FUN_14004c4c0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14004c4c0(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_140341858);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue