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
67
decomp/DBCServer_Release_x64/full/functions/0x1401c0340.c
Normal file
67
decomp/DBCServer_Release_x64/full/functions/0x1401c0340.c
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401c0340 FUN_1401c0340
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_1401c0340(longlong param_1,double param_2)
|
||||
|
||||
{
|
||||
int *piVar1;
|
||||
int iVar2;
|
||||
uint uVar3;
|
||||
undefined4 uVar4;
|
||||
ulonglong uVar5;
|
||||
uint *puVar6;
|
||||
|
||||
if (*(longlong *)(param_1 + 0x88) == 0) {
|
||||
piVar1 = (int *)(param_1 + 0x10);
|
||||
*piVar1 = *piVar1 + 1;
|
||||
iVar2 = *piVar1;
|
||||
uVar4 = *(undefined4 *)(param_1 + 0x10);
|
||||
}
|
||||
else {
|
||||
if (*(longlong *)(param_1 + 0x78) == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80004005);
|
||||
}
|
||||
uVar3 = *(uint *)(*(longlong *)(param_1 + 0x78) + 0x10);
|
||||
uVar5 = (ulonglong)uVar3 % (ulonglong)*(uint *)(param_1 + 0x40);
|
||||
if (*(longlong *)(param_1 + 0x20) != 0) {
|
||||
for (puVar6 = *(uint **)(*(longlong *)(param_1 + 0x20) + uVar5 * 8);
|
||||
(puVar6 != (uint *)0x0 && ((uint)uVar5 == puVar6[10] % *(uint *)(param_1 + 0x40)));
|
||||
puVar6 = *(uint **)(puVar6 + 6)) {
|
||||
if (*puVar6 == uVar3) goto LAB_1401c03bd;
|
||||
}
|
||||
}
|
||||
puVar6 = (uint *)0x0;
|
||||
LAB_1401c03bd:
|
||||
if (puVar6 == (uint *)0x0) {
|
||||
FUN_1401c0100(param_1 + 0x70);
|
||||
piVar1 = (int *)(param_1 + 0x10);
|
||||
*piVar1 = *piVar1 + 1;
|
||||
if (*piVar1 == 0) {
|
||||
*(undefined4 *)(param_1 + 0x10) = 3;
|
||||
return 3;
|
||||
}
|
||||
goto LAB_1401c0416;
|
||||
}
|
||||
if (*(double *)(param_1 + 8) <= param_2 - *(double *)(puVar6 + 4) &&
|
||||
param_2 - *(double *)(puVar6 + 4) != *(double *)(param_1 + 8)) {
|
||||
puVar6[4] = 0;
|
||||
puVar6[5] = 0;
|
||||
puVar6[3] = puVar6[3] + 1;
|
||||
uVar5 = FUN_1401c0100(param_1 + 0x70);
|
||||
return uVar5;
|
||||
}
|
||||
piVar1 = (int *)(param_1 + 0x10);
|
||||
*piVar1 = *piVar1 + 1;
|
||||
iVar2 = *piVar1;
|
||||
uVar4 = *(undefined4 *)(param_1 + 0x10);
|
||||
}
|
||||
if (iVar2 == 0) {
|
||||
uVar4 = 3;
|
||||
}
|
||||
*(undefined4 *)(param_1 + 0x10) = uVar4;
|
||||
LAB_1401c0416:
|
||||
return (ulonglong)*(uint *)(param_1 + 0x10);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue