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,69 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x140053e30 FUN_140053e30
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_140053e30(longlong *param_1)
|
||||
|
||||
{
|
||||
undefined *puVar1;
|
||||
undefined8 *puVar2;
|
||||
int *piVar3;
|
||||
int iVar4;
|
||||
int iVar5;
|
||||
undefined *puVar6;
|
||||
|
||||
puVar6 = (undefined *)*param_1;
|
||||
if (puVar6 == (undefined *)0x0) {
|
||||
*param_1 = (longlong)PTR_DAT_1401ac008;
|
||||
}
|
||||
else if ((puVar6 != PTR_DAT_1401ac008) && ((int *)(puVar6 + -8) != (int *)0x0)) {
|
||||
if (*(int *)(puVar6 + -4) < 2) {
|
||||
return;
|
||||
}
|
||||
iVar4 = *(int *)(puVar6 + -8);
|
||||
if (iVar4 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14006be00();
|
||||
}
|
||||
piVar3 = (int *)FUN_14006cbf0((longlong)iVar4 + 9);
|
||||
iVar4 = 0;
|
||||
if (piVar3 != (int *)0x0) {
|
||||
*piVar3 = 0;
|
||||
piVar3[1] = 1;
|
||||
}
|
||||
puVar1 = PTR_DAT_1401ac008;
|
||||
puVar6 = (undefined *)*param_1;
|
||||
if (puVar6 == (undefined *)0x0) {
|
||||
iVar5 = 0;
|
||||
}
|
||||
else {
|
||||
iVar5 = iVar4;
|
||||
if (puVar6 != PTR_DAT_1401ac008) {
|
||||
iVar5 = *(int *)(puVar6 + -8);
|
||||
}
|
||||
}
|
||||
*piVar3 = iVar5;
|
||||
puVar6 = (undefined *)*param_1;
|
||||
if ((puVar6 != (undefined *)0x0) && (puVar6 != puVar1)) {
|
||||
iVar4 = *(int *)(puVar6 + -8);
|
||||
}
|
||||
if (puVar6 == (undefined *)0x0) {
|
||||
puVar6 = puVar1;
|
||||
}
|
||||
FUN_14006cac0(piVar3 + 2,puVar6,iVar4);
|
||||
FUN_140008440(param_1);
|
||||
*param_1 = (longlong)(piVar3 + 2);
|
||||
return;
|
||||
}
|
||||
puVar2 = (undefined8 *)FUN_14006cbf0(9);
|
||||
*puVar2 = 0;
|
||||
*(undefined1 *)(puVar2 + 1) = 0;
|
||||
if (puVar2 != (undefined8 *)0x0) {
|
||||
*(undefined4 *)puVar2 = 0;
|
||||
*(undefined4 *)((longlong)puVar2 + 4) = 1;
|
||||
}
|
||||
*(undefined1 *)(puVar2 + 1) = 0;
|
||||
*param_1 = (longlong)(puVar2 + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue