40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x1400ebee0 FUN_1400ebee0
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_1400ebee0(undefined8 param_1,longlong param_2,SIZE_T param_3,undefined8 param_4)
|
|
|
|
{
|
|
uint uVar1;
|
|
void *_Dst;
|
|
longlong lVar2;
|
|
undefined **_Size;
|
|
longlong local_res10 [3];
|
|
|
|
FUN_1400146f0(param_2 + 0x20,0x2000,param_3);
|
|
if (*(int *)(param_2 + 0x38) == 0) {
|
|
_Dst = (void *)0x0;
|
|
}
|
|
else {
|
|
_Dst = *(void **)(param_2 + 0x30);
|
|
}
|
|
_Size = (undefined **)(longlong)*(int *)(param_2 + 0x38);
|
|
memset(_Dst,0,(size_t)_Size);
|
|
*(undefined1 *)(param_2 + 0xc0) = 1;
|
|
lVar2 = 0;
|
|
if (*(longlong **)(param_2 + 0x10) != (longlong *)0x0) {
|
|
lVar2 = **(longlong **)(param_2 + 0x10);
|
|
}
|
|
uVar1 = FUN_140072f60(lVar2,(ulonglong)(*(int *)(param_2 + 0x38) - 1),_Size,param_4);
|
|
if (uVar1 == 0) {
|
|
*(undefined4 *)(param_2 + 0x18) = 2;
|
|
}
|
|
else {
|
|
*(undefined1 *)(param_2 + 0xc0) = 0;
|
|
local_res10[0] = 0;
|
|
FUN_14006e8a0((longlong *)(param_2 + 0x10),local_res10);
|
|
*(undefined4 *)(param_2 + 0x18) = 3;
|
|
}
|
|
return;
|
|
}
|
|
|