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
86
decomp/DBCServer_Release_x64/full/functions/0x14004be20.c
Normal file
86
decomp/DBCServer_Release_x64/full/functions/0x14004be20.c
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004be20 FUN_14004be20
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_14004be20(longlong *param_1,longlong *param_2)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
int iVar2;
|
||||
int iVar3;
|
||||
undefined *puVar4;
|
||||
int iVar5;
|
||||
undefined4 uVar6;
|
||||
undefined *puVar7;
|
||||
|
||||
puVar4 = (undefined *)*param_2;
|
||||
if (((puVar4 != (undefined *)0x0) && (puVar4 != PTR_DAT_1403440a0)) && (0 < *(int *)(puVar4 + -8))
|
||||
) {
|
||||
puVar7 = (undefined *)*param_1;
|
||||
iVar5 = 0;
|
||||
if ((puVar7 != (undefined *)0x0) && (puVar7 != PTR_DAT_1403440a0)) {
|
||||
iVar5 = *(int *)(puVar7 + -8);
|
||||
}
|
||||
iVar3 = *(int *)(puVar4 + -8) + iVar5;
|
||||
iVar1 = 0;
|
||||
if ((puVar7 != (undefined *)0x0) && (iVar1 = 0, puVar7 != PTR_DAT_1403440a0)) {
|
||||
iVar1 = *(int *)(puVar7 + -8);
|
||||
}
|
||||
if (((iVar3 <= iVar1) && (iVar3 = 0, puVar7 != (undefined *)0x0)) &&
|
||||
(puVar7 != PTR_DAT_1403440a0)) {
|
||||
iVar3 = *(int *)(puVar7 + -8);
|
||||
}
|
||||
iVar1 = 0;
|
||||
iVar2 = 1;
|
||||
if (1 < iVar3) {
|
||||
iVar2 = iVar3;
|
||||
}
|
||||
if ((puVar7 != (undefined *)0x0) && (puVar7 != PTR_DAT_1403440a0)) {
|
||||
iVar1 = *(int *)(puVar7 + -8);
|
||||
}
|
||||
if (iVar1 < iVar2) {
|
||||
FUN_14004e770(param_1,iVar2);
|
||||
}
|
||||
FUN_14004e850(param_1);
|
||||
puVar4 = (undefined *)*param_2;
|
||||
uVar6 = 0;
|
||||
puVar7 = (undefined *)*param_1;
|
||||
if ((undefined *)*param_1 == (undefined *)0x0) {
|
||||
puVar7 = PTR_DAT_1403440a0;
|
||||
}
|
||||
if ((puVar4 != (undefined *)0x0) && (puVar4 != PTR_DAT_1403440a0)) {
|
||||
uVar6 = *(undefined4 *)(puVar4 + -8);
|
||||
}
|
||||
if (puVar4 == (undefined *)0x0) {
|
||||
puVar4 = PTR_DAT_1403440a0;
|
||||
}
|
||||
FUN_14016d770(puVar7 + (longlong)iVar5 * 2,puVar4,uVar6);
|
||||
puVar4 = (undefined *)*param_2;
|
||||
iVar1 = 0;
|
||||
if ((puVar4 != (undefined *)0x0) && (puVar4 != PTR_DAT_1403440a0)) {
|
||||
iVar1 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
iVar3 = 0;
|
||||
iVar2 = 0;
|
||||
if (0 < iVar1 + iVar5) {
|
||||
iVar2 = iVar1 + iVar5;
|
||||
}
|
||||
puVar4 = (undefined *)*param_1;
|
||||
if ((puVar4 != (undefined *)0x0) && (puVar4 != PTR_DAT_1403440a0)) {
|
||||
iVar3 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
if ((iVar3 <= iVar2) && (iVar2 = 0, puVar4 != (undefined *)0x0)) {
|
||||
if (puVar4 == PTR_DAT_1403440a0) {
|
||||
return;
|
||||
}
|
||||
iVar2 = *(int *)(puVar4 + -8);
|
||||
}
|
||||
if (((puVar4 != PTR_DAT_1403440a0) && (puVar4 != (undefined *)0x0)) &&
|
||||
((int *)(puVar4 + -8) != (int *)0x0)) {
|
||||
*(int *)(puVar4 + -8) = iVar2;
|
||||
*(undefined2 *)(puVar4 + (longlong)iVar2 * 2) = 0;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue