92 lines
2.4 KiB
C
92 lines
2.4 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x1400df340 FUN_1400df340
|
|
* Pseudocode, not original source. */
|
|
|
|
void FUN_1400df340(longlong *param_1,longlong *param_2,int param_3,undefined8 param_4)
|
|
|
|
{
|
|
longlong lVar1;
|
|
longlong lVar2;
|
|
void *pvVar3;
|
|
void *_Dst;
|
|
int iVar4;
|
|
int iVar5;
|
|
|
|
iVar4 = (int)param_4;
|
|
lVar1 = *param_2;
|
|
if (lVar1 == 0) {
|
|
if (param_2[1] == 0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_1400d1900(param_1,param_2,param_1,param_4);
|
|
}
|
|
iVar5 = (int)param_2[2];
|
|
}
|
|
else {
|
|
iVar5 = *(int *)(lVar1 + 0x18);
|
|
}
|
|
if (iVar5 < param_3 + iVar4) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14006be30(param_1,param_2,param_1,param_4);
|
|
}
|
|
if ((0 < iVar4) && (param_1[1] == 0)) {
|
|
lVar2 = *param_1;
|
|
if (lVar2 == 0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_1400d1900(param_1,param_2,param_1,param_4);
|
|
}
|
|
if (*(int *)(lVar2 + 0x18) == 0) {
|
|
lVar2 = 0;
|
|
}
|
|
else {
|
|
lVar2 = *(longlong *)(lVar2 + 0x10);
|
|
}
|
|
if (lVar2 == 0) goto LAB_1400df3ce;
|
|
}
|
|
_Dst = (void *)param_2[1];
|
|
pvVar3 = _Dst;
|
|
if (_Dst == (void *)0x0) {
|
|
if (lVar1 == 0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_1400d1900(0,param_2,param_1,param_4);
|
|
}
|
|
if (*(int *)(lVar1 + 0x18) == 0) {
|
|
pvVar3 = (void *)0x0;
|
|
}
|
|
else {
|
|
pvVar3 = *(void **)(lVar1 + 0x10);
|
|
}
|
|
}
|
|
if (pvVar3 != (void *)0x0) {
|
|
lVar2 = param_1[1];
|
|
if (lVar2 == 0) {
|
|
lVar2 = *param_1;
|
|
if (lVar2 == 0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_1400d1900(_Dst,param_2,param_1,param_4);
|
|
}
|
|
if (*(int *)(lVar2 + 0x18) == 0) {
|
|
lVar2 = 0;
|
|
}
|
|
else {
|
|
lVar2 = *(longlong *)(lVar2 + 0x10);
|
|
}
|
|
}
|
|
if (_Dst == (void *)0x0) {
|
|
if (lVar1 == 0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_1400d1900(0,param_2,param_1,param_4);
|
|
}
|
|
if (*(int *)(lVar1 + 0x18) == 0) {
|
|
memmove((void *)0x0,(void *)(lVar2 + param_3),(longlong)iVar4);
|
|
return;
|
|
}
|
|
_Dst = *(void **)(lVar1 + 0x10);
|
|
}
|
|
memmove(_Dst,(void *)(lVar2 + param_3),(longlong)iVar4);
|
|
return;
|
|
}
|
|
LAB_1400df3ce:
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14006be00();
|
|
}
|
|
|