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
101
decomp/MessageServer_Release_x64/full/functions/0x140049ca0.c
Normal file
101
decomp/MessageServer_Release_x64/full/functions/0x140049ca0.c
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x140049ca0 FUN_140049ca0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
uint * FUN_140049ca0(uint *param_1,ulonglong *param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined2 *puVar1;
|
||||
undefined2 *puVar2;
|
||||
undefined8 *puVar3;
|
||||
uint *puVar4;
|
||||
ulonglong uVar5;
|
||||
undefined8 *puVar6;
|
||||
undefined8 uVar7;
|
||||
undefined1 auStack_98 [32];
|
||||
uint local_78 [2];
|
||||
undefined2 local_70;
|
||||
undefined6 uStack_6e;
|
||||
undefined2 uStack_68;
|
||||
undefined6 uStack_66;
|
||||
undefined2 uStack_60;
|
||||
undefined6 local_5e;
|
||||
undefined2 uStack_58;
|
||||
undefined6 local_56;
|
||||
undefined2 uStack_50;
|
||||
undefined2 local_4e;
|
||||
undefined4 local_4c;
|
||||
undefined4 uStack_48;
|
||||
undefined4 local_44;
|
||||
undefined4 uStack_40;
|
||||
ulonglong local_38;
|
||||
|
||||
local_38 = DAT_1401ac5a0 ^ (ulonglong)auStack_98;
|
||||
puVar4 = local_78;
|
||||
uVar7 = 4;
|
||||
FUN_1400bc930(param_1,(undefined8 *)puVar4,4);
|
||||
if (((int)local_78[0] < 0) || (DAT_1401ac140 <= (int)local_78[0])) {
|
||||
FUN_1400d9ab0(local_78[0],puVar4,uVar7,param_4);
|
||||
}
|
||||
FUN_14004ecc0((longlong *)param_2,(longlong)(int)local_78[0]);
|
||||
FUN_14004ee00((longlong *)param_2);
|
||||
if (0 < (int)local_78[0]) {
|
||||
uVar5 = (ulonglong)local_78[0];
|
||||
do {
|
||||
local_70 = 0;
|
||||
local_4e = 0;
|
||||
local_4c = 0;
|
||||
uStack_48 = 0;
|
||||
local_44 = 0;
|
||||
uStack_40 = 0;
|
||||
uStack_6e = 0;
|
||||
uStack_68 = 0;
|
||||
uStack_66 = 0;
|
||||
uStack_60 = 0;
|
||||
local_5e = 0;
|
||||
uStack_58 = 0;
|
||||
local_56 = 0;
|
||||
uStack_50 = 0;
|
||||
FUN_140057ab0(param_1,&local_70,uVar7,param_4);
|
||||
puVar1 = (undefined2 *)param_2[1];
|
||||
if ((&local_70 < puVar1) && (puVar2 = (undefined2 *)*param_2, puVar2 <= &local_70)) {
|
||||
if (puVar1 == (undefined2 *)param_2[2]) {
|
||||
FUN_140051dc0((longlong *)param_2,1);
|
||||
}
|
||||
puVar3 = (undefined8 *)param_2[1];
|
||||
puVar6 = (undefined8 *)((((longlong)&local_70 - (longlong)puVar2) / 0x34) * 0x34 + *param_2)
|
||||
;
|
||||
if (puVar3 != (undefined8 *)0x0) {
|
||||
*puVar3 = *puVar6;
|
||||
puVar3[1] = puVar6[1];
|
||||
puVar3[2] = puVar6[2];
|
||||
puVar3[3] = puVar6[3];
|
||||
puVar3[4] = puVar6[4];
|
||||
puVar3[5] = puVar6[5];
|
||||
*(undefined4 *)(puVar3 + 6) = *(undefined4 *)(puVar6 + 6);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (puVar1 == (undefined2 *)param_2[2]) {
|
||||
FUN_140051dc0((longlong *)param_2,1);
|
||||
}
|
||||
puVar3 = (undefined8 *)param_2[1];
|
||||
if (puVar3 != (undefined8 *)0x0) {
|
||||
*puVar3 = CONCAT62(uStack_6e,local_70);
|
||||
puVar3[1] = CONCAT62(uStack_66,uStack_68);
|
||||
puVar3[2] = CONCAT62(local_5e,uStack_60);
|
||||
puVar3[3] = CONCAT62(local_56,uStack_58);
|
||||
puVar3[4] = CONCAT44(local_4c,CONCAT22(local_4e,uStack_50));
|
||||
puVar3[5] = CONCAT44(local_44,uStack_48);
|
||||
*(undefined4 *)(puVar3 + 6) = uStack_40;
|
||||
}
|
||||
}
|
||||
param_2[1] = param_2[1] + 0x34;
|
||||
uVar5 = uVar5 - 1;
|
||||
} while (uVar5 != 0);
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue