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
40
decomp/DBCServer_Release_x64/full/functions/0x14020af40.c
Normal file
40
decomp/DBCServer_Release_x64/full/functions/0x14020af40.c
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14020af40 FUN_14020af40
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_14020af40(int *param_1,uint param_2)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
undefined4 uVar2;
|
||||
undefined8 uVar3;
|
||||
ulonglong uVar4;
|
||||
undefined4 *puVar5;
|
||||
undefined4 *puVar6;
|
||||
|
||||
if (0 < (int)param_2) {
|
||||
if ((param_1[1] < (int)(*param_1 + param_2)) && (uVar3 = FUN_140208db0(), (int)uVar3 != 0)) {
|
||||
return uVar3;
|
||||
}
|
||||
*param_1 = *param_1 + param_2;
|
||||
iVar1 = *param_1;
|
||||
puVar6 = (undefined4 *)
|
||||
(*(longlong *)(param_1 + 4) + -4 + ((longlong)iVar1 - (longlong)(int)param_2) * 4);
|
||||
if ((int)param_2 <= iVar1 + -1) {
|
||||
uVar4 = (ulonglong)(((iVar1 + -1) - param_2) + 1);
|
||||
puVar5 = (undefined4 *)(*(longlong *)(param_1 + 4) + -4 + (longlong)iVar1 * 4);
|
||||
do {
|
||||
uVar2 = *puVar6;
|
||||
puVar6 = puVar6 + -1;
|
||||
uVar4 = uVar4 - 1;
|
||||
*puVar5 = uVar2;
|
||||
puVar5 = puVar5 + -1;
|
||||
} while (uVar4 != 0);
|
||||
}
|
||||
if (0 < (int)param_2) {
|
||||
memset(*(void **)(param_1 + 4),0,(ulonglong)param_2 << 2);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue