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
40
decomp/DBCServer_Release_x64/full/functions/0x1401e3580.c
Normal file
40
decomp/DBCServer_Release_x64/full/functions/0x1401e3580.c
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401e3580 FUN_1401e3580
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
int FUN_1401e3580(longlong param_1,undefined8 *param_2)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
void *pvVar2;
|
||||
int *piVar3;
|
||||
int iVar4;
|
||||
int iVar5;
|
||||
|
||||
if ((param_1 == 0) || (param_2 == (undefined8 *)0x0)) {
|
||||
return 0x10;
|
||||
}
|
||||
iVar5 = 1;
|
||||
pvVar2 = calloc(1,4);
|
||||
*param_2 = pvVar2;
|
||||
if (pvVar2 == (void *)0x0) {
|
||||
return 0xd;
|
||||
}
|
||||
iVar1 = FUN_140202460(param_1);
|
||||
iVar4 = 0;
|
||||
piVar3 = &DAT_140291650;
|
||||
do {
|
||||
if (iVar1 == *piVar3) {
|
||||
iVar5 = *(int *)(&DAT_140291654 + (longlong)iVar4 * 8);
|
||||
if (iVar5 == 0) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
piVar3 = piVar3 + 2;
|
||||
iVar4 = iVar4 + 1;
|
||||
} while ((longlong)piVar3 < 0x140291668);
|
||||
free((void *)*param_2);
|
||||
return iVar5;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue