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/0x1401c2dc0.c
Normal file
50
decomp/DBCServer_Release_x64/full/functions/0x1401c2dc0.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401c2dc0 FUN_1401c2dc0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
void FUN_1401c2dc0(longlong param_1,int param_2)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
int iVar2;
|
||||
longlong lVar3;
|
||||
undefined1 local_58 [80];
|
||||
|
||||
if (param_2 < 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d6b0();
|
||||
}
|
||||
if (param_2 != *(int *)(param_1 + 0x18)) {
|
||||
if (*(int *)(param_1 + 0x1c) < param_2) {
|
||||
iVar2 = FUN_14016f8a0();
|
||||
plVar1 = *(longlong **)(param_1 + 8);
|
||||
lVar3 = (longlong)iVar2;
|
||||
if (*(int *)(param_1 + 0x1c) == 0) {
|
||||
if (plVar1 == (longlong *)0x0) {
|
||||
lVar3 = FUN_14016d940(lVar3 << 3);
|
||||
}
|
||||
else {
|
||||
lVar3 = (**(code **)(*plVar1 + 8))(plVar1,lVar3 << 3);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (plVar1 == (longlong *)0x0) {
|
||||
lVar3 = FUN_14016d9a0(*(undefined8 *)(param_1 + 0x10),lVar3 << 3);
|
||||
}
|
||||
else {
|
||||
lVar3 = (**(code **)(*plVar1 + 0x10))(plVar1,*(undefined8 *)(param_1 + 0x10),lVar3 << 3);
|
||||
}
|
||||
if (lVar3 == 0) {
|
||||
FUN_14016d300(local_58,L"Memory allocation failure!");
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_58,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
}
|
||||
*(longlong *)(param_1 + 0x10) = lVar3;
|
||||
*(int *)(param_1 + 0x1c) = iVar2;
|
||||
}
|
||||
*(int *)(param_1 + 0x18) = param_2;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue