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
56
decomp/DBCServer_Release_x64/full/functions/0x1401d28a0.c
Normal file
56
decomp/DBCServer_Release_x64/full/functions/0x1401d28a0.c
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401d28a0 FUN_1401d28a0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_1401d28a0(longlong param_1,uint param_2,undefined8 param_3)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
uint *puVar2;
|
||||
undefined8 *puVar3;
|
||||
ulonglong uVar4;
|
||||
undefined8 uVar5;
|
||||
longlong lVar6;
|
||||
longlong *local_res8;
|
||||
|
||||
uVar5 = (**(code **)(*(longlong *)(param_1 + -0x70) + 0x58))();
|
||||
FUN_14016db50(uVar5);
|
||||
lVar6 = 0;
|
||||
local_res8 = (longlong *)0x0;
|
||||
uVar4 = (ulonglong)param_2 % (ulonglong)*(uint *)(param_1 + 0x1608);
|
||||
if (*(longlong *)(param_1 + 0x15e8) != 0) {
|
||||
for (puVar2 = *(uint **)(*(longlong *)(param_1 + 0x15e8) + uVar4 * 8);
|
||||
(puVar2 != (uint *)0x0 && ((uint)uVar4 == puVar2[8] % *(uint *)(param_1 + 0x1608)));
|
||||
puVar2 = *(uint **)(puVar2 + 4)) {
|
||||
if (*puVar2 == param_2) {
|
||||
if (*(longlong *)(puVar2 + 2) != 0) {
|
||||
*(longlong *)(*(longlong *)(puVar2 + 2) + 8) =
|
||||
*(longlong *)(*(longlong *)(puVar2 + 2) + 8) + 1;
|
||||
local_res8 = *(longlong **)(puVar2 + 2);
|
||||
}
|
||||
FUN_1401720a0(param_1 + 0x15e0);
|
||||
if (local_res8 != (longlong *)0x0) {
|
||||
lVar6 = *local_res8;
|
||||
}
|
||||
FUN_1401fcdc0(lVar6,param_3);
|
||||
if (local_res8 != (longlong *)0x0) {
|
||||
plVar1 = local_res8 + 1;
|
||||
*plVar1 = *plVar1 + -1;
|
||||
if (*plVar1 == 0) {
|
||||
puVar3 = (undefined8 *)*local_res8;
|
||||
if (puVar3 != (undefined8 *)0x0) {
|
||||
(**(code **)*puVar3)(puVar3,1);
|
||||
}
|
||||
FUN_14016d970(local_res8);
|
||||
}
|
||||
}
|
||||
FUN_14016dbe0(uVar5);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
FUN_1401720a0(param_1 + 0x15e0);
|
||||
FUN_14016dbe0(uVar5);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue