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
46
decomp/DBCServer_Release_x64/full/functions/0x14020e180.c
Normal file
46
decomp/DBCServer_Release_x64/full/functions/0x14020e180.c
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14020e180 FUN_14020e180
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_14020e180(longlong param_1,int *param_2)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
uint uVar2;
|
||||
int iVar3;
|
||||
ulonglong uVar4;
|
||||
|
||||
if ((param_1 != 0) && (param_2 != (int *)0x0)) {
|
||||
iVar1 = (*DAT_14039d2c0)(param_1,0);
|
||||
if (iVar1 == -1) {
|
||||
uVar2 = (*DAT_14039d2c8)(param_1);
|
||||
uVar2 = (8 - (uVar2 & 7)) + uVar2;
|
||||
iVar1 = (*DAT_14039d2d0)(param_1);
|
||||
iVar3 = (*DAT_14039d2c8)(param_1);
|
||||
if ((iVar1 + 1 == iVar3) && (uVar4 = (*DAT_14039d2c8)(param_1), (uVar4 & 7) == 0)) {
|
||||
uVar2 = uVar2 - 1;
|
||||
}
|
||||
uVar2 = uVar2 >> 3;
|
||||
}
|
||||
else {
|
||||
uVar4 = (*DAT_14039d2c8)();
|
||||
if (((uVar4 & 7) == 0) || (iVar1 = (*DAT_14039d2c0)(param_1,0), iVar1 == 0)) {
|
||||
iVar1 = (*DAT_14039d2f0)(param_1);
|
||||
uVar2 = iVar1 + 1;
|
||||
}
|
||||
else {
|
||||
uVar2 = (*DAT_14039d2f0)(param_1);
|
||||
}
|
||||
}
|
||||
iVar1 = uVar2 + 1;
|
||||
if (0x7f < uVar2) {
|
||||
for (; uVar2 != 0; uVar2 = uVar2 >> 8) {
|
||||
iVar1 = iVar1 + 1;
|
||||
}
|
||||
}
|
||||
*param_2 = iVar1 + 1;
|
||||
return 0;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue