48 lines
1.8 KiB
C
48 lines
1.8 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x1400a20e0 FUN_1400a20e0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_1400a20e0(longlong *param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)
|
|
|
|
{
|
|
uint uVar1;
|
|
int iVar2;
|
|
undefined8 *puVar3;
|
|
ulonglong uVar4;
|
|
exception local_98 [72];
|
|
exception local_50 [80];
|
|
|
|
uVar1 = *(uint *)((longlong)param_2 + 0xc);
|
|
uVar4 = (ulonglong)uVar1;
|
|
iVar2 = (int)param_1[1];
|
|
if ((int)uVar1 < iVar2) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14006be00();
|
|
}
|
|
if (*param_1 == 0) {
|
|
FUN_14006ba50(local_50,(wchar_t *)PTR_u_ArrayWithExternalBuffer_is_unini_1401ad9a0,uVar4,param_4
|
|
);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_50,(ThrowInfo *)&DAT_1401a93e8);
|
|
}
|
|
puVar3 = (undefined8 *)*param_2;
|
|
if (puVar3 == (undefined8 *)0x0) {
|
|
FUN_14006ba50(local_98,(wchar_t *)PTR_u_ArrayWithExternalBuffer_is_unini_1401ad9a0,uVar4,0);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_98,(ThrowInfo *)&DAT_1401a93e8);
|
|
}
|
|
if ((-1 < iVar2) && (iVar2 <= (int)uVar1)) {
|
|
*(int *)(param_2 + 1) = iVar2;
|
|
if ((undefined8 *)*param_1 == (undefined8 *)0x0) {
|
|
FUN_14006ba50(local_98,(wchar_t *)PTR_u_ArrayWithExternalBuffer_is_unini_1401ad9a0,uVar4,
|
|
puVar3);
|
|
/* WARNING: Subroutine does not return */
|
|
_CxxThrowException(local_98,(ThrowInfo *)&DAT_1401a93e8);
|
|
}
|
|
FUN_140006500(puVar3,(undefined8 *)*param_1,(longlong)(int)param_1[1] << 4);
|
|
return;
|
|
}
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14006be00();
|
|
}
|
|
|