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
|
|
@ -0,0 +1,40 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400f9920 FUN_1400f9920
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
int FUN_1400f9920(undefined8 *param_1)
|
||||
|
||||
{
|
||||
undefined4 *puVar1;
|
||||
undefined8 uVar2;
|
||||
int *piVar3;
|
||||
int iVar4;
|
||||
int iVar5;
|
||||
|
||||
if (param_1 == (undefined8 *)0x0) {
|
||||
return 0x10;
|
||||
}
|
||||
iVar5 = 1;
|
||||
puVar1 = calloc(1,0x18);
|
||||
*param_1 = puVar1;
|
||||
if (puVar1 == (undefined4 *)0x0) {
|
||||
return 0xd;
|
||||
}
|
||||
uVar2 = FUN_140103790(puVar1);
|
||||
iVar4 = 0;
|
||||
piVar3 = &DAT_14014e690;
|
||||
do {
|
||||
if ((int)uVar2 == *piVar3) {
|
||||
iVar5 = *(int *)(&DAT_14014e694 + (longlong)iVar4 * 8);
|
||||
if (iVar5 == 0) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
piVar3 = piVar3 + 2;
|
||||
iVar4 = iVar4 + 1;
|
||||
} while ((longlong)piVar3 < 0x14014e6a8);
|
||||
free((void *)*param_1);
|
||||
return iVar5;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue