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
100
decomp/MessageServer_Release_x64/full/functions/0x14004bee0.c
Normal file
100
decomp/MessageServer_Release_x64/full/functions/0x14004bee0.c
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004bee0 FUN_14004bee0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
uint * FUN_14004bee0(uint *param_1,ulonglong *param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined8 *puVar1;
|
||||
longlong lVar2;
|
||||
uint *puVar3;
|
||||
ulonglong uVar4;
|
||||
undefined8 uVar5;
|
||||
undefined1 auStack_c8 [32];
|
||||
uint local_a8 [4];
|
||||
undefined8 local_98;
|
||||
undefined8 uStack_90;
|
||||
undefined4 local_88;
|
||||
undefined4 uStack_84;
|
||||
undefined8 uStack_80;
|
||||
undefined8 local_78;
|
||||
undefined8 uStack_70;
|
||||
undefined8 local_68;
|
||||
undefined4 uStack_60;
|
||||
undefined4 uStack_5c;
|
||||
undefined4 uStack_58;
|
||||
undefined4 uStack_54;
|
||||
undefined4 uStack_50;
|
||||
undefined4 uStack_4c;
|
||||
undefined4 uStack_48;
|
||||
undefined4 local_44;
|
||||
undefined4 uStack_40;
|
||||
ulonglong local_38;
|
||||
|
||||
local_38 = DAT_1401ac5a0 ^ (ulonglong)auStack_c8;
|
||||
puVar3 = local_a8;
|
||||
uVar5 = 4;
|
||||
FUN_1400bc930(param_1,(undefined8 *)puVar3,4);
|
||||
if (((int)local_a8[0] < 0) || (DAT_1401ac140 <= (int)local_a8[0])) {
|
||||
FUN_1400d9ab0(local_a8[0],puVar3,uVar5,param_4);
|
||||
}
|
||||
FUN_14004fef0((longlong *)param_2,(longlong)(int)local_a8[0]);
|
||||
FUN_140050030((longlong *)param_2);
|
||||
if (0 < (int)local_a8[0]) {
|
||||
uVar4 = (ulonglong)local_a8[0];
|
||||
do {
|
||||
uVar5 = 0x28;
|
||||
local_88 = 0;
|
||||
local_98 = 0;
|
||||
uStack_90 = 0;
|
||||
memset(&uStack_84,0,0x28);
|
||||
uStack_5c = 0;
|
||||
uStack_58 = 0;
|
||||
uStack_54 = 0;
|
||||
uStack_50 = 0;
|
||||
uStack_4c = 0;
|
||||
uStack_48 = 0;
|
||||
local_44 = 0;
|
||||
uStack_40 = 0;
|
||||
FUN_140058350(param_1,&local_98,uVar5,param_4);
|
||||
puVar1 = (undefined8 *)param_2[1];
|
||||
if ((&local_98 < puVar1) && ((undefined8 *)*param_2 <= &local_98)) {
|
||||
lVar2 = (longlong)&local_98 - (longlong)*param_2;
|
||||
lVar2 = lVar2 + SUB168(SEXT816(-0x4de9bd37a6f4de9b) * SEXT816(lVar2),8);
|
||||
if (puVar1 == (undefined8 *)param_2[2]) {
|
||||
FUN_140052470((longlong *)param_2,1);
|
||||
}
|
||||
if ((void *)param_2[1] != (void *)0x0) {
|
||||
memcpy((void *)param_2[1],(void *)(((lVar2 >> 6) - (lVar2 >> 0x3f)) * 0x5c + *param_2),
|
||||
0x5c);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (puVar1 == (undefined8 *)param_2[2]) {
|
||||
FUN_140052470((longlong *)param_2,1);
|
||||
}
|
||||
puVar1 = (undefined8 *)param_2[1];
|
||||
if (puVar1 != (undefined8 *)0x0) {
|
||||
*puVar1 = local_98;
|
||||
puVar1[1] = uStack_90;
|
||||
puVar1[2] = CONCAT44(uStack_84,local_88);
|
||||
puVar1[3] = uStack_80;
|
||||
puVar1[4] = local_78;
|
||||
puVar1[5] = uStack_70;
|
||||
puVar1[6] = local_68;
|
||||
puVar1[7] = CONCAT44(uStack_5c,uStack_60);
|
||||
puVar1[8] = CONCAT44(uStack_54,uStack_58);
|
||||
puVar1[9] = CONCAT44(uStack_4c,uStack_50);
|
||||
puVar1[10] = CONCAT44(local_44,uStack_48);
|
||||
*(undefined4 *)(puVar1 + 0xb) = uStack_40;
|
||||
}
|
||||
}
|
||||
param_2[1] = param_2[1] + 0x5c;
|
||||
uVar4 = uVar4 - 1;
|
||||
} while (uVar4 != 0);
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue