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
|
|
@ -0,0 +1,41 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x14010f800 FUN_14010f800
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_14010f800(uint *param_1,uint param_2,uint *param_3)
|
||||
|
||||
{
|
||||
uint *puVar1;
|
||||
int iVar2;
|
||||
undefined8 uVar3;
|
||||
int iVar4;
|
||||
longlong lVar5;
|
||||
|
||||
if ((int)param_2 < 1) {
|
||||
FUN_140109a60(param_3);
|
||||
return 0;
|
||||
}
|
||||
if ((int)(*param_1 * 0x1c) <= (int)param_2) {
|
||||
uVar3 = FUN_140103890(param_1,param_3);
|
||||
return uVar3;
|
||||
}
|
||||
uVar3 = FUN_140103890(param_1,param_3);
|
||||
if ((int)uVar3 == 0) {
|
||||
iVar2 = (int)param_2 / 0x1c;
|
||||
iVar4 = (uint)(param_2 != iVar2 * 0x1c) + iVar2;
|
||||
if (iVar4 < (int)*param_3) {
|
||||
lVar5 = (longlong)iVar4 << 2;
|
||||
do {
|
||||
iVar4 = iVar4 + 1;
|
||||
*(undefined4 *)(lVar5 + *(longlong *)(param_3 + 4)) = 0;
|
||||
lVar5 = lVar5 + 4;
|
||||
} while (iVar4 < (int)*param_3);
|
||||
}
|
||||
puVar1 = (uint *)(*(longlong *)(param_3 + 4) + (longlong)iVar2 * 4);
|
||||
*puVar1 = *puVar1 & (1 << ((char)param_2 + (char)(param_2 / 0x1c) * -0x1c & 0x1fU)) - 1U;
|
||||
FUN_140109920((int *)param_3);
|
||||
uVar3 = 0;
|
||||
}
|
||||
return uVar3;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue