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
54
decomp/DBCServer_Release_x64/full/functions/0x14020ec40.c
Normal file
54
decomp/DBCServer_Release_x64/full/functions/0x14020ec40.c
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14020ec40 FUN_14020ec40
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_14020ec40(int *param_1,longlong param_2,undefined4 *param_3)
|
||||
|
||||
{
|
||||
undefined8 uVar1;
|
||||
ulonglong uVar2;
|
||||
ulonglong uVar3;
|
||||
ulonglong uVar4;
|
||||
longlong lVar5;
|
||||
int local_28 [2];
|
||||
int local_20;
|
||||
longlong local_18;
|
||||
|
||||
uVar1 = FUN_14020afd0(local_28,*param_1);
|
||||
if ((int)uVar1 == 0) {
|
||||
local_28[0] = *param_1;
|
||||
local_20 = param_1[2];
|
||||
uVar2 = 0;
|
||||
lVar5 = (longlong)(local_28[0] + -1);
|
||||
if (-1 < local_28[0] + -1) {
|
||||
do {
|
||||
uVar2 = (ulonglong)*(uint *)(*(longlong *)(param_1 + 4) + lVar5 * 4) | uVar2 << 0x1c;
|
||||
if (uVar2 < 3) {
|
||||
uVar3 = 0;
|
||||
}
|
||||
else {
|
||||
uVar3 = uVar2 * 0x5555555 >> 0x1c;
|
||||
uVar2 = uVar2 + uVar3 * -3;
|
||||
if (2 < uVar2) {
|
||||
uVar4 = uVar2 / 3;
|
||||
uVar2 = uVar2 % 3;
|
||||
uVar3 = uVar3 + uVar4;
|
||||
}
|
||||
}
|
||||
lVar5 = lVar5 + -1;
|
||||
*(int *)(local_18 + 4 + lVar5 * 4) = (int)uVar3;
|
||||
} while (-1 < lVar5);
|
||||
}
|
||||
if (param_3 != (undefined4 *)0x0) {
|
||||
*param_3 = (int)uVar2;
|
||||
}
|
||||
if (param_2 != 0) {
|
||||
FUN_140208e50(local_28);
|
||||
FUN_14020ae90(local_28,param_2);
|
||||
}
|
||||
FUN_140200e50(local_28);
|
||||
uVar1 = 0;
|
||||
}
|
||||
return uVar1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue