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
50
decomp/DBCServer_Release_x64/full/functions/0x14020eb30.c
Normal file
50
decomp/DBCServer_Release_x64/full/functions/0x14020eb30.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14020eb30 FUN_14020eb30
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_14020eb30(int param_1,longlong param_2,undefined4 param_3,longlong param_4,
|
||||
uint *param_5)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
ulonglong uVar2;
|
||||
void *_Memory;
|
||||
longlong lVar3;
|
||||
|
||||
if ((param_2 != 0) && (param_4 != 0)) {
|
||||
if (param_5 != (uint *)0x0) {
|
||||
uVar2 = FUN_1402069c0(param_1);
|
||||
if ((int)uVar2 == 0) {
|
||||
lVar3 = (longlong)param_1 * 0x80;
|
||||
if (*param_5 < *(uint *)(&DAT_14034fc9c + lVar3)) {
|
||||
*param_5 = *(uint *)(&DAT_14034fc9c + lVar3);
|
||||
uVar2 = 6;
|
||||
}
|
||||
else {
|
||||
_Memory = malloc(0x70);
|
||||
if (_Memory == (void *)0x0) {
|
||||
uVar2 = 0xd;
|
||||
}
|
||||
else {
|
||||
uVar1 = (**(code **)(lVar3 + 0x14034fce8))(_Memory);
|
||||
uVar2 = (ulonglong)uVar1;
|
||||
if (uVar1 == 0) {
|
||||
uVar1 = (**(code **)(lVar3 + 0x14034fcf0))(_Memory,param_2,param_3);
|
||||
uVar2 = (ulonglong)uVar1;
|
||||
if (uVar1 == 0) {
|
||||
uVar1 = (**(code **)(lVar3 + 0x14034fcf8))(_Memory,param_4);
|
||||
uVar2 = (ulonglong)uVar1;
|
||||
*param_5 = *(uint *)(&DAT_14034fc9c + lVar3);
|
||||
}
|
||||
}
|
||||
free(_Memory);
|
||||
}
|
||||
}
|
||||
}
|
||||
return uVar2;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue