87 lines
2.6 KiB
C
87 lines
2.6 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x14019b5b0 FUN_14019b5b0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_14019b5b0(longlong param_1,longlong param_2)
|
|
|
|
{
|
|
undefined1 uVar1;
|
|
int iVar2;
|
|
uint uVar3;
|
|
longlong lVar4;
|
|
undefined8 uVar5;
|
|
undefined4 uVar6;
|
|
undefined8 *_Dst;
|
|
undefined8 *_Src;
|
|
undefined8 *puVar7;
|
|
ulonglong uVar8;
|
|
ulonglong uVar9;
|
|
ulonglong uVar10;
|
|
ulonglong uVar11;
|
|
ulonglong uVar12;
|
|
ulonglong uVar13;
|
|
ulonglong uVar14;
|
|
undefined1 local_78 [80];
|
|
|
|
uVar6 = FUN_14019b440();
|
|
FUN_14004f0e0(param_2,uVar6);
|
|
uVar8 = 0;
|
|
if (*(longlong *)(param_1 + 0xc80) == 0) {
|
|
FUN_14016d300(local_78,PTR_u_ArrayWithExternalBuffer_is_unini_1403440d0);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_78,(ThrowInfo *)&DAT_1403417f8);
|
|
}
|
|
uVar14 = uVar8;
|
|
if (*(int *)(param_2 + 0x18) != 0) {
|
|
uVar14 = *(ulonglong *)(param_2 + 0x10);
|
|
}
|
|
iVar2 = *(int *)(param_1 + 0xc88);
|
|
uVar9 = uVar8;
|
|
uVar10 = uVar8;
|
|
uVar11 = uVar8;
|
|
if (0 < (longlong)iVar2) {
|
|
do {
|
|
lVar4 = *(longlong *)(param_1 + 0xc80);
|
|
if (lVar4 == 0) {
|
|
FUN_14016d300(local_78,PTR_u_ArrayWithExternalBuffer_is_unini_1403440d0);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_78,(ThrowInfo *)&DAT_1403417f8);
|
|
}
|
|
if (((longlong)uVar8 < 0) || (*(int *)(param_1 + 0xc88) <= (int)uVar10)) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14016d6b0();
|
|
}
|
|
uVar3 = *(uint *)(lVar4 + 8 + uVar9);
|
|
uVar13 = (ulonglong)(int)uVar3;
|
|
_Src = *(undefined8 **)(lVar4 + uVar9);
|
|
_Dst = (undefined8 *)((longlong)(int)uVar11 + uVar14);
|
|
if (uVar13 < 0x21) {
|
|
uVar12 = (ulonglong)(uVar3 & 7);
|
|
for (uVar13 = uVar13 >> 3; uVar13 != 0; uVar13 = uVar13 - 1) {
|
|
uVar5 = *_Src;
|
|
_Src = _Src + 1;
|
|
*_Dst = uVar5;
|
|
_Dst = _Dst + 1;
|
|
}
|
|
if (uVar12 != 0) {
|
|
puVar7 = _Src;
|
|
do {
|
|
uVar1 = *(undefined1 *)puVar7;
|
|
puVar7 = (undefined8 *)((longlong)puVar7 + 1);
|
|
uVar12 = uVar12 - 1;
|
|
*(undefined1 *)((longlong)_Dst + (-1 - (longlong)_Src) + (longlong)puVar7) = uVar1;
|
|
} while (uVar12 != 0);
|
|
}
|
|
}
|
|
else {
|
|
memcpy(_Dst,_Src,uVar13);
|
|
}
|
|
uVar8 = uVar8 + 1;
|
|
uVar9 = uVar9 + 0x10;
|
|
uVar10 = (ulonglong)((int)uVar10 + 1);
|
|
uVar11 = (ulonglong)((int)uVar11 + uVar3);
|
|
} while ((longlong)uVar8 < (longlong)iVar2);
|
|
}
|
|
return;
|
|
}
|
|
|