server-re/decomp/DBCServer_Release_x64/full/functions/0x140002780.c

25 lines
789 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x140002780 FUN_140002780
* Pseudocode, not original source. */
undefined8 FUN_140002780(longlong *param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4)
{
int iVar1;
undefined8 uVar2;
uVar2 = 0xfffffffffffffffe;
while( true ) {
if ((int)param_1[6] != 1) {
return 0;
}
WaitForSingleObject((HANDLE)param_1[2],0xffffffff);
EnterCriticalSection((LPCRITICAL_SECTION)(param_1 + 7));
iVar1 = FUN_1400a77d0(param_1[3],param_1 + 0xc,param_3,param_4,uVar2);
LeaveCriticalSection((LPCRITICAL_SECTION)(param_1 + 7));
if (iVar1 != 1) break;
(**(code **)(*param_1 + 8))(param_1);
}
return 0;
}