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
135
decomp/MessageServer_Release_x64/full/functions/0x14004b1a0.c
Normal file
135
decomp/MessageServer_Release_x64/full/functions/0x14004b1a0.c
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004b1a0 FUN_14004b1a0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
uint * FUN_14004b1a0(uint *param_1,ulonglong *param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined2 *puVar1;
|
||||
undefined8 *puVar2;
|
||||
longlong lVar3;
|
||||
uint *puVar4;
|
||||
ulonglong uVar5;
|
||||
undefined8 uVar6;
|
||||
undefined1 auStack_d8 [32];
|
||||
uint local_b8 [4];
|
||||
undefined2 local_a8;
|
||||
undefined4 uStack_a6;
|
||||
undefined2 uStack_a2;
|
||||
undefined8 uStack_a0;
|
||||
undefined8 local_98;
|
||||
undefined8 uStack_90;
|
||||
undefined4 local_88;
|
||||
undefined2 uStack_84;
|
||||
undefined2 uStack_82;
|
||||
undefined6 uStack_80;
|
||||
undefined2 uStack_7a;
|
||||
undefined6 uStack_78;
|
||||
undefined2 uStack_72;
|
||||
undefined6 uStack_70;
|
||||
undefined2 uStack_6a;
|
||||
undefined1 local_68;
|
||||
undefined4 uStack_67;
|
||||
undefined2 uStack_63;
|
||||
undefined1 uStack_61;
|
||||
undefined7 uStack_60;
|
||||
undefined1 uStack_59;
|
||||
undefined7 uStack_58;
|
||||
undefined1 uStack_51;
|
||||
undefined7 uStack_50;
|
||||
undefined1 uStack_49;
|
||||
undefined7 uStack_48;
|
||||
undefined1 local_41;
|
||||
undefined4 uStack_40;
|
||||
undefined2 uStack_3c;
|
||||
undefined1 uStack_3a;
|
||||
ulonglong local_38;
|
||||
|
||||
local_38 = DAT_1401ac5a0 ^ (ulonglong)auStack_d8;
|
||||
puVar4 = local_b8;
|
||||
uVar6 = 4;
|
||||
FUN_1400bc930(param_1,(undefined8 *)puVar4,4);
|
||||
if (((int)local_b8[0] < 0) || (DAT_1401ac140 <= (int)local_b8[0])) {
|
||||
FUN_1400d9ab0(local_b8[0],puVar4,uVar6,param_4);
|
||||
}
|
||||
FUN_14004f870((longlong *)param_2,(longlong)(int)local_b8[0]);
|
||||
FUN_14004f9b0((longlong *)param_2);
|
||||
if (0 < (int)local_b8[0]) {
|
||||
uVar5 = (ulonglong)local_b8[0];
|
||||
do {
|
||||
uStack_61 = 0;
|
||||
uStack_60 = 0;
|
||||
local_a8 = 0;
|
||||
uStack_a6 = 0;
|
||||
uStack_a2 = 0;
|
||||
uStack_a0 = 0;
|
||||
uStack_59 = 0;
|
||||
uStack_58 = 0;
|
||||
local_98 = 0;
|
||||
uStack_90 = 0;
|
||||
local_88 = 0;
|
||||
uStack_84 = 0;
|
||||
uStack_82 = 0;
|
||||
uStack_80 = 0;
|
||||
uStack_7a = 0;
|
||||
uStack_78 = 0;
|
||||
uStack_72 = 0;
|
||||
uStack_70 = 0;
|
||||
uStack_6a = 0;
|
||||
local_68 = 0;
|
||||
uStack_67 = 0;
|
||||
uStack_63 = 0;
|
||||
uStack_51 = 0;
|
||||
uStack_50 = 0;
|
||||
uStack_49 = 0;
|
||||
uStack_48 = 0;
|
||||
local_41 = 0;
|
||||
uStack_40 = 0;
|
||||
uStack_3c = 0;
|
||||
uStack_3a = 0;
|
||||
FUN_140055820(param_1,&local_a8);
|
||||
puVar1 = (undefined2 *)param_2[1];
|
||||
if ((&local_a8 < puVar1) && ((undefined2 *)*param_2 <= &local_a8)) {
|
||||
lVar3 = (longlong)&local_a8 - (longlong)*param_2;
|
||||
lVar3 = lVar3 + SUB168(SEXT816(-0x6c657a3bf6c657a3) * SEXT816(lVar3),8);
|
||||
if (puVar1 == (undefined2 *)param_2[2]) {
|
||||
FUN_1400521e0((longlong *)param_2,1);
|
||||
}
|
||||
if ((void *)param_2[1] != (void *)0x0) {
|
||||
memcpy((void *)param_2[1],(void *)(((lVar3 >> 6) - (lVar3 >> 0x3f)) * 0x6f + *param_2),
|
||||
0x6f);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (puVar1 == (undefined2 *)param_2[2]) {
|
||||
FUN_1400521e0((longlong *)param_2,1);
|
||||
}
|
||||
puVar2 = (undefined8 *)param_2[1];
|
||||
if (puVar2 != (undefined8 *)0x0) {
|
||||
*puVar2 = CONCAT26(uStack_a2,CONCAT42(uStack_a6,local_a8));
|
||||
puVar2[1] = uStack_a0;
|
||||
puVar2[2] = local_98;
|
||||
puVar2[3] = uStack_90;
|
||||
puVar2[4] = CONCAT26(uStack_82,CONCAT24(uStack_84,local_88));
|
||||
puVar2[5] = CONCAT26(uStack_7a,uStack_80);
|
||||
puVar2[6] = CONCAT26(uStack_72,uStack_78);
|
||||
puVar2[7] = CONCAT26(uStack_6a,uStack_70);
|
||||
puVar2[8] = CONCAT17(uStack_61,CONCAT25(uStack_63,CONCAT41(uStack_67,local_68)));
|
||||
puVar2[9] = CONCAT17(uStack_59,uStack_60);
|
||||
puVar2[10] = CONCAT17(uStack_51,uStack_58);
|
||||
puVar2[0xb] = CONCAT17(uStack_49,uStack_50);
|
||||
puVar2[0xc] = CONCAT17(local_41,uStack_48);
|
||||
*(undefined4 *)(puVar2 + 0xd) = uStack_40;
|
||||
*(undefined2 *)((longlong)puVar2 + 0x6c) = uStack_3c;
|
||||
*(undefined1 *)((longlong)puVar2 + 0x6e) = uStack_3a;
|
||||
}
|
||||
}
|
||||
param_2[1] = param_2[1] + 0x6f;
|
||||
uVar5 = uVar5 - 1;
|
||||
} while (uVar5 != 0);
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue