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/0x1401f7660.c
Normal file
54
decomp/DBCServer_Release_x64/full/functions/0x1401f7660.c
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401f7660 FUN_1401f7660
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
longlong * FUN_1401f7660(longlong param_1,undefined8 *param_2)
|
||||
|
||||
{
|
||||
ushort uVar1;
|
||||
ulonglong uVar2;
|
||||
int iVar3;
|
||||
ushort *puVar4;
|
||||
longlong *plVar5;
|
||||
undefined *puVar6;
|
||||
uint uVar7;
|
||||
ushort *puVar8;
|
||||
|
||||
puVar8 = (ushort *)*param_2;
|
||||
puVar4 = puVar8;
|
||||
if (puVar8 == (ushort *)0x0) {
|
||||
puVar4 = (ushort *)PTR_DAT_1403440a0;
|
||||
}
|
||||
if (puVar4 == (ushort *)0x0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
uVar7 = 0;
|
||||
if (puVar8 == (ushort *)0x0) {
|
||||
puVar8 = (ushort *)PTR_DAT_1403440a0;
|
||||
}
|
||||
uVar1 = *puVar8;
|
||||
while (uVar1 != 0) {
|
||||
puVar8 = puVar8 + 1;
|
||||
uVar7 = uVar7 * 0x21 + (uint)uVar1;
|
||||
uVar1 = *puVar8;
|
||||
}
|
||||
uVar2 = (ulonglong)uVar7 % (ulonglong)*(uint *)(param_1 + 0x28);
|
||||
if (*(longlong *)(param_1 + 8) != 0) {
|
||||
for (plVar5 = *(longlong **)(*(longlong *)(param_1 + 8) + uVar2 * 8);
|
||||
(plVar5 != (longlong *)0x0 &&
|
||||
((uint)uVar2 == *(uint *)(plVar5 + 4) % *(uint *)(param_1 + 0x28)));
|
||||
plVar5 = (longlong *)plVar5[2]) {
|
||||
puVar6 = (undefined *)*plVar5;
|
||||
if ((undefined *)*plVar5 == (undefined *)0x0) {
|
||||
puVar6 = PTR_DAT_1403440a0;
|
||||
}
|
||||
iVar3 = FUN_14016d780(puVar6);
|
||||
if (iVar3 == 0) goto LAB_1401f7740;
|
||||
}
|
||||
}
|
||||
plVar5 = (longlong *)FUN_1401f7010(param_1,param_2,uVar2,uVar7);
|
||||
LAB_1401f7740:
|
||||
return plVar5 + 1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue