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
85
decomp/DBCServer_Release_x64/full/functions/0x14016ba10.c
Normal file
85
decomp/DBCServer_Release_x64/full/functions/0x14016ba10.c
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14016ba10 FUN_14016ba10
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
undefined8 FUN_14016ba10(int *param_1,undefined8 *param_2)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
int iVar2;
|
||||
int iVar3;
|
||||
undefined8 uVar4;
|
||||
longlong lVar5;
|
||||
undefined1 auStack_158 [32];
|
||||
undefined1 local_138 [144];
|
||||
undefined1 local_a8 [120];
|
||||
undefined8 local_30;
|
||||
int local_28;
|
||||
ulonglong local_18;
|
||||
|
||||
local_18 = DAT_1403463c0 ^ (ulonglong)auStack_158;
|
||||
lVar5 = *(longlong *)(param_1 + 2);
|
||||
if (lVar5 == 0) {
|
||||
if (*(longlong *)(param_1 + 4) == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d1e0();
|
||||
}
|
||||
iVar1 = param_1[6];
|
||||
}
|
||||
else {
|
||||
iVar1 = *(int *)(lVar5 + 0x18);
|
||||
}
|
||||
iVar2 = (int)(*param_1 + (*param_1 >> 0x1f & 7U)) >> 3;
|
||||
if (*(longlong *)(param_1 + 4) == 0) {
|
||||
if (lVar5 == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d1e0();
|
||||
}
|
||||
if (*(int *)(lVar5 + 0x18) == 0) {
|
||||
lVar5 = 0;
|
||||
}
|
||||
else {
|
||||
lVar5 = *(longlong *)(lVar5 + 0x10);
|
||||
}
|
||||
}
|
||||
else {
|
||||
lVar5 = *(longlong *)(param_1 + 4);
|
||||
if (lVar5 == 0) {
|
||||
FUN_14016d300(local_138,PTR_u_ArrayWithExternalBuffer_is_unini_1403440d0);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_138,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
}
|
||||
uVar4 = FUN_14019a810(local_a8,iVar2 + lVar5,iVar1 - iVar2);
|
||||
if ((char)uVar4 != '\0') {
|
||||
*param_2 = local_30;
|
||||
FUN_14016b2e0(param_1);
|
||||
lVar5 = *(longlong *)(param_1 + 2);
|
||||
if ((lVar5 == 0) && (*(longlong *)(param_1 + 4) == 0)) {
|
||||
FUN_14016d300(local_138,&DAT_1402760b0);
|
||||
/* WARNING: Subroutine does not return */
|
||||
_CxxThrowException(local_138,(ThrowInfo *)&DAT_1403417f8);
|
||||
}
|
||||
iVar1 = *param_1;
|
||||
if (lVar5 == 0) {
|
||||
if (*(longlong *)(param_1 + 4) == 0) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14016d1e0();
|
||||
}
|
||||
iVar2 = param_1[6];
|
||||
}
|
||||
else {
|
||||
iVar2 = *(int *)(lVar5 + 0x18);
|
||||
}
|
||||
iVar3 = ((int)(iVar1 + (iVar1 >> 0x1f & 7U)) >> 3) + local_28;
|
||||
if (iVar3 <= iVar2) {
|
||||
iVar3 = iVar1 + local_28 * 8;
|
||||
*param_1 = iVar3;
|
||||
}
|
||||
uVar4 = CONCAT71((uint7)(uint3)((uint)iVar3 >> 8),1);
|
||||
}
|
||||
return uVar4;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue