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
73
decomp/DBCServer_Release_x64/full/functions/0x140001be0.c
Normal file
73
decomp/DBCServer_Release_x64/full/functions/0x140001be0.c
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x140001be0 FUN_140001be0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ULONG FUN_140001be0(IUnknown *param_1,undefined8 *param_2,undefined8 *param_3,undefined8 *param_4)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
longlong *plVar2;
|
||||
longlong lVar3;
|
||||
ULONG UVar4;
|
||||
|
||||
UVar4 = (*param_1->lpVtbl[6].Release)(param_1);
|
||||
if ((int)UVar4 < 0) {
|
||||
_com_issue_errorex(UVar4,param_1,(_GUID *)&DAT_14029e018);
|
||||
}
|
||||
plVar2 = (longlong *)*param_2;
|
||||
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_2 = 0;
|
||||
}
|
||||
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;
|
||||
}
|
||||
plVar2 = (longlong *)*param_4;
|
||||
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_4 = 0;
|
||||
}
|
||||
return UVar4;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue