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
50
decomp/DBCServer_Release_x64/full/functions/0x14016f5c0.c
Normal file
50
decomp/DBCServer_Release_x64/full/functions/0x14016f5c0.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14016f5c0 FUN_14016f5c0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14016f5c0(longlong *param_1,void *param_2,int param_3)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
longlong lVar2;
|
||||
void *_Dst;
|
||||
rsize_t _DstSize;
|
||||
rsize_t _MaxCount;
|
||||
ulonglong uVar3;
|
||||
|
||||
if (param_3 == 0) {
|
||||
FUN_14016f100();
|
||||
return;
|
||||
}
|
||||
if (param_2 == (void *)0x0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
lVar2 = *param_1;
|
||||
uVar1 = *(uint *)(lVar2 + -0x10);
|
||||
uVar3 = (longlong)param_2 - lVar2 >> 1;
|
||||
if (param_3 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
if ((int)(1U - *(int *)(lVar2 + -8) | *(int *)(lVar2 + -0xc) - param_3) < 0) {
|
||||
FUN_14016f480(param_1,param_3);
|
||||
}
|
||||
_Dst = (void *)*param_1;
|
||||
_DstSize = (longlong)*(int *)((longlong)_Dst + -0xc) * 2;
|
||||
_MaxCount = (longlong)param_3 * 2;
|
||||
if (uVar1 < uVar3) {
|
||||
memcpy_s(_Dst,_DstSize,param_2,_MaxCount);
|
||||
}
|
||||
else {
|
||||
memmove_s(_Dst,_DstSize,(void *)((longlong)_Dst + uVar3 * 2),_MaxCount);
|
||||
}
|
||||
if (param_3 <= *(int *)(*param_1 + -0xc)) {
|
||||
*(int *)(*param_1 + -0x10) = param_3;
|
||||
*(undefined2 *)(_MaxCount + *param_1) = 0;
|
||||
return;
|
||||
}
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue