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,74 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400fc520 FUN_1400fc520
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_1400fc520(undefined8 param_1,uint param_2,void *param_3,uint *param_4,byte *param_5,
|
||||
undefined4 param_6,uint param_7,int param_8,undefined4 *param_9,
|
||||
longlong param_10)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
uint uVar2;
|
||||
ulonglong uVar3;
|
||||
char *_Memory;
|
||||
undefined8 uVar4;
|
||||
uint local_res18 [2];
|
||||
undefined8 in_stack_ffffffffffffff98;
|
||||
undefined4 uVar5;
|
||||
|
||||
uVar5 = (undefined4)((ulonglong)in_stack_ffffffffffffff98 >> 0x20);
|
||||
if ((param_3 == (void *)0x0) || (param_4 == (uint *)0x0)) {
|
||||
return 0x10;
|
||||
}
|
||||
if (param_10 == 0) {
|
||||
return 0x10;
|
||||
}
|
||||
if (param_9 != (undefined4 *)0x0) {
|
||||
*param_9 = 0;
|
||||
if (param_8 != 1) {
|
||||
if (param_8 != 2) {
|
||||
return 0x18;
|
||||
}
|
||||
uVar3 = FUN_140109370(param_7);
|
||||
if ((int)uVar3 != 0) {
|
||||
return uVar3;
|
||||
}
|
||||
}
|
||||
uVar1 = (*DAT_1401bd668)(*(undefined8 *)(param_10 + 0x18));
|
||||
uVar2 = (*DAT_1401bd690)(*(undefined8 *)(param_10 + 0x18));
|
||||
if (uVar2 == param_2) {
|
||||
_Memory = malloc((ulonglong)param_2);
|
||||
if (_Memory == (char *)0x0) {
|
||||
uVar3 = 0xd;
|
||||
}
|
||||
else {
|
||||
local_res18[0] = param_2;
|
||||
uVar2 = (*DAT_1401bd780)(param_1,param_2,_Memory,local_res18,CONCAT44(uVar5,1),param_10);
|
||||
uVar3 = (ulonglong)uVar2;
|
||||
if (uVar2 == 0) {
|
||||
if (param_8 == 2) {
|
||||
uVar3 = FUN_140109500(_Memory,local_res18[0],param_5,param_6,uVar1,param_7,param_3,
|
||||
param_4,param_9);
|
||||
uVar1 = (uint)uVar3;
|
||||
}
|
||||
else {
|
||||
uVar4 = FUN_1401093d0(_Memory,local_res18[0],2,(ulonglong)uVar1,param_3,param_4,param_9)
|
||||
;
|
||||
uVar1 = (uint)uVar4;
|
||||
}
|
||||
uVar3 = (ulonglong)uVar1;
|
||||
free(_Memory);
|
||||
}
|
||||
else {
|
||||
free(_Memory);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
uVar3 = 7;
|
||||
}
|
||||
return uVar3;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue