52 lines
1.7 KiB
C
52 lines
1.7 KiB
C
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
|
* Ghidra 12.1.2 decompiler output for 0x140124fc0 Catch@140124fc0
|
|
* Pseudocode, not original source. */
|
|
|
|
undefined8
|
|
Catch_140124fc0(undefined8 param_1,longlong param_2,undefined8 param_3,undefined8 param_4)
|
|
|
|
{
|
|
int *piVar1;
|
|
undefined *puVar2;
|
|
LPCSTR pCVar3;
|
|
int *piVar4;
|
|
longlong lVar5;
|
|
wchar_t *pwVar6;
|
|
undefined *puVar7;
|
|
undefined8 uVar8;
|
|
|
|
FUN_14006cb70(param_1,param_2,param_3,param_4);
|
|
*(undefined **)(param_2 + 0x68) = PTR_DAT_1401ac010;
|
|
pCVar3 = (LPCSTR)(**(code **)(**(longlong **)(param_2 + 0x138) + 8))();
|
|
*(longlong *)(param_2 + 0x160) = param_2 + 0x168;
|
|
FUN_1400626b0((longlong *)(param_2 + 0x160),pCVar3,3);
|
|
FUN_140053d20((longlong *)(param_2 + 0x68),L"std.exception(%s)",*(undefined8 *)(param_2 + 0x160),
|
|
param_4);
|
|
if (*(void **)(param_2 + 0x160) != (void *)(param_2 + 0x168)) {
|
|
free(*(void **)(param_2 + 0x160));
|
|
}
|
|
puVar2 = *(undefined **)(param_2 + 0x68);
|
|
puVar7 = puVar2;
|
|
if (puVar2 == (undefined *)0x0) {
|
|
puVar7 = PTR_DAT_1401ac010;
|
|
}
|
|
uVar8 = 0;
|
|
pwVar6 = L"Proud::CNetThreads_S::TcpListenerProc";
|
|
lVar5 = *(longlong *)(param_2 + 0x48);
|
|
FUN_1400c7b40(lVar5,L"Proud::CNetThreads_S::TcpListenerProc",puVar7,0);
|
|
if (((puVar2 != (undefined *)0x0) && (puVar2 != PTR_DAT_1401ac010)) &&
|
|
(puVar2 + -8 != (undefined *)0x0)) {
|
|
piVar4 = (int *)FUN_14006cb70(lVar5,pwVar6,puVar7,uVar8);
|
|
*(int **)(param_2 + 0x128) = piVar4;
|
|
FUN_14006b350(piVar4);
|
|
*(undefined1 *)(param_2 + 0x130) = 1;
|
|
piVar1 = (int *)(puVar2 + -4);
|
|
*piVar1 = *piVar1 + -1;
|
|
if (*piVar1 == 0) {
|
|
FUN_14006cc60(puVar2 + -8);
|
|
}
|
|
FUN_14006b3e0((longlong)piVar4);
|
|
}
|
|
return 0x1400c85d1;
|
|
}
|
|
|