server-re/decomp/MessageServer_Release_x64/full/functions/0x1400d8420.c

31 lines
1.1 KiB
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x1400d8420 FUN_1400d8420
* Pseudocode, not original source. */
uint FUN_1400d8420(longlong param_1,undefined8 param_2,undefined **param_3,undefined8 param_4)
{
char cVar1;
uint uVar2;
ulonglong uVar3;
(**(code **)(**(longlong **)(param_1 + 0x108) + 8))();
(**(code **)(**(longlong **)(param_1 + 0x108) + 0x10))();
if ((*(char *)(param_1 + 0x40) == '\0') &&
(*(char *)(*(longlong *)(param_1 + 0x110) + 0x80) == '\0')) {
cVar1 = (**(code **)(**(longlong **)(param_1 + 0x108) + 0x28))();
if (cVar1 == '\0') {
*(undefined1 *)(param_1 + 0x40) = 1;
uVar3 = (ulonglong)DAT_1401ac048;
uVar2 = FUN_140072df0(*(longlong *)(param_1 + 0x110),uVar3,param_3,param_4);
if (uVar2 != 0) {
*(undefined1 *)(param_1 + 0x40) = 0;
FUN_140071fc0(*(longlong **)(param_1 + 0x110),uVar3,param_3,param_4);
return uVar2;
}
*(undefined8 *)(param_1 + 0x118) = 0;
}
}
return 0;
}