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

30 lines
868 B
C

/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x1400be1d0 FUN_1400be1d0
* Pseudocode, not original source. */
void FUN_1400be1d0(longlong param_1,char *param_2)
{
char cVar1;
ulonglong uVar2;
char *pcVar3;
exception local_58 [80];
uVar2 = 0xffffffffffffffff;
pcVar3 = param_2;
do {
if (uVar2 == 0) break;
uVar2 = uVar2 - 1;
cVar1 = *pcVar3;
pcVar3 = pcVar3 + 1;
} while (cVar1 != '\0');
uVar2 = ~uVar2 - 1;
if (0x7fffffff < uVar2) {
FUN_14006ba50(local_58,L"WriteString failed! length=%I64d",uVar2,param_1);
/* WARNING: Subroutine does not return */
_CxxThrowException(local_58,(ThrowInfo *)&DAT_1401a93e8);
}
FUN_1400bdff0(param_1,(undefined8 *)param_2,uVar2 & 0xffffffff,param_1);
return;
}