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
105
decomp/MessageServer_Release_x64/full/functions/0x14004c8f0.c
Normal file
105
decomp/MessageServer_Release_x64/full/functions/0x14004c8f0.c
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x14004c8f0 FUN_14004c8f0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
uint * FUN_14004c8f0(uint *param_1,ulonglong *param_2,undefined8 param_3,undefined8 param_4)
|
||||
|
||||
{
|
||||
undefined8 *puVar1;
|
||||
undefined8 *puVar2;
|
||||
uint *puVar3;
|
||||
ulonglong uVar4;
|
||||
undefined8 uVar5;
|
||||
undefined1 auStack_d8 [32];
|
||||
uint local_b8 [4];
|
||||
undefined8 local_a8;
|
||||
undefined8 uStack_a0;
|
||||
undefined8 local_98;
|
||||
undefined8 uStack_90;
|
||||
undefined8 local_88;
|
||||
undefined8 uStack_80;
|
||||
undefined8 local_78;
|
||||
undefined8 uStack_70;
|
||||
undefined2 local_68;
|
||||
undefined6 uStack_66;
|
||||
undefined2 uStack_60;
|
||||
undefined6 uStack_5e;
|
||||
undefined2 uStack_58;
|
||||
undefined6 uStack_56;
|
||||
undefined2 uStack_50;
|
||||
undefined6 uStack_4e;
|
||||
undefined2 uStack_48;
|
||||
ulonglong local_38;
|
||||
|
||||
local_38 = DAT_1401ac5a0 ^ (ulonglong)auStack_d8;
|
||||
puVar3 = local_b8;
|
||||
uVar5 = 4;
|
||||
FUN_1400bc930(param_1,(undefined8 *)puVar3,4);
|
||||
if (((int)local_b8[0] < 0) || (DAT_1401ac140 <= (int)local_b8[0])) {
|
||||
FUN_1400d9ab0(local_b8[0],puVar3,uVar5,param_4);
|
||||
}
|
||||
FUN_140050670((longlong *)param_2,(longlong)(int)local_b8[0]);
|
||||
FUN_1400507b0((longlong *)param_2);
|
||||
if (0 < (int)local_b8[0]) {
|
||||
uVar4 = (ulonglong)local_b8[0];
|
||||
do {
|
||||
local_68 = 0;
|
||||
local_a8 = 0;
|
||||
uStack_a0 = 0;
|
||||
local_98 = 0;
|
||||
uStack_90 = 0;
|
||||
local_88 = 0;
|
||||
uStack_80 = 0;
|
||||
local_78 = 0;
|
||||
uStack_70 = 0;
|
||||
uStack_66 = 0;
|
||||
uStack_60 = 0;
|
||||
uStack_5e = 0;
|
||||
uStack_58 = 0;
|
||||
uStack_56 = 0;
|
||||
uStack_50 = 0;
|
||||
uStack_4e = 0;
|
||||
uStack_48 = 0;
|
||||
FUN_140058c90(param_1,(wchar_t *)&local_a8,uVar5,param_4);
|
||||
puVar1 = (undefined8 *)param_2[1];
|
||||
if ((&local_a8 < puVar1) && (puVar2 = (undefined8 *)*param_2, puVar2 <= &local_a8)) {
|
||||
if (puVar1 == (undefined8 *)param_2[2]) {
|
||||
FUN_140052700((longlong *)param_2,1);
|
||||
}
|
||||
if ((void *)param_2[1] != (void *)0x0) {
|
||||
uVar5 = 0x62;
|
||||
memcpy((void *)param_2[1],
|
||||
(void *)((((longlong)&local_a8 - (longlong)puVar2) / 0x62) * 0x62 + *param_2),0x62)
|
||||
;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (puVar1 == (undefined8 *)param_2[2]) {
|
||||
FUN_140052700((longlong *)param_2,1);
|
||||
}
|
||||
puVar1 = (undefined8 *)param_2[1];
|
||||
if (puVar1 != (undefined8 *)0x0) {
|
||||
*puVar1 = local_a8;
|
||||
puVar1[1] = uStack_a0;
|
||||
puVar1[2] = local_98;
|
||||
puVar1[3] = uStack_90;
|
||||
puVar1[4] = local_88;
|
||||
puVar1[5] = uStack_80;
|
||||
puVar1[6] = local_78;
|
||||
puVar1[7] = uStack_70;
|
||||
puVar1[8] = CONCAT62(uStack_66,local_68);
|
||||
puVar1[9] = CONCAT62(uStack_5e,uStack_60);
|
||||
puVar1[10] = CONCAT62(uStack_56,uStack_58);
|
||||
puVar1[0xb] = CONCAT62(uStack_4e,uStack_50);
|
||||
*(undefined2 *)(puVar1 + 0xc) = uStack_48;
|
||||
}
|
||||
}
|
||||
param_2[1] = param_2[1] + 0x62;
|
||||
uVar4 = uVar4 - 1;
|
||||
} while (uVar4 != 0);
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue