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
47
decomp/DBCServer_Release_x64/full/functions/0x140001870.c
Normal file
47
decomp/DBCServer_Release_x64/full/functions/0x140001870.c
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x140001870 FUN_140001870
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8
|
||||
FUN_140001870(longlong *param_1,undefined8 param_2,longlong *param_3,undefined8 param_4,
|
||||
undefined4 param_5,undefined8 param_6,undefined8 param_7)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
longlong *plVar2;
|
||||
longlong lVar3;
|
||||
longlong local_res8;
|
||||
|
||||
local_res8 = *param_3;
|
||||
if (local_res8 != 0) {
|
||||
LOCK();
|
||||
*(int *)(local_res8 + 0x10) = *(int *)(local_res8 + 0x10) + 1;
|
||||
UNLOCK();
|
||||
}
|
||||
if (*param_1 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_140218220(0x80004003);
|
||||
}
|
||||
FUN_140001530(*param_1,param_2,&local_res8,param_4,param_5,param_6,param_7);
|
||||
plVar2 = (longlong *)*param_3;
|
||||
if (plVar2 != (longlong *)0x0) {
|
||||
LOCK();
|
||||
plVar1 = plVar2 + 2;
|
||||
lVar3 = *plVar1;
|
||||
*(int *)plVar1 = (int)*plVar1 + -1;
|
||||
UNLOCK();
|
||||
if (((int)lVar3 == 1) && (plVar2 != (longlong *)0x0)) {
|
||||
if (*plVar2 != 0) {
|
||||
Ordinal_6();
|
||||
}
|
||||
if ((void *)plVar2[1] != (void *)0x0) {
|
||||
operator_delete__((void *)plVar2[1]);
|
||||
}
|
||||
operator_delete(plVar2);
|
||||
}
|
||||
*param_3 = 0;
|
||||
}
|
||||
Ordinal_9(param_7);
|
||||
return param_2;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue