47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1401e43f0 FUN_1401e43f0
|
|
* Pseudocode, not original source. */
|
|
|
|
int FUN_1401e43f0(longlong param_1,uint param_2,longlong param_3)
|
|
|
|
{
|
|
int iVar1;
|
|
undefined1 local_res8;
|
|
undefined1 local_res9;
|
|
|
|
if ((param_1 != 0) && (param_3 != 0)) {
|
|
EnterCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
if (0x20 < param_2) {
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
return 0x10;
|
|
}
|
|
local_res8 = 0;
|
|
local_res9 = (char)param_2;
|
|
iVar1 = FUN_140205770((ulonglong)*(uint *)(param_3 + 0x1018) * 0x70 + param_3,&local_res8,2);
|
|
if (iVar1 == 0) {
|
|
iVar1 = FUN_140205770((ulonglong)*(uint *)(param_3 + 0x1018) * 0x70 + param_3,param_1,param_2)
|
|
;
|
|
if (iVar1 == 0) {
|
|
if (*(int *)(param_3 + 0x1018) == 0) {
|
|
*(int *)(param_3 + 0x101c) = *(int *)(param_3 + 0x101c) + param_2;
|
|
}
|
|
iVar1 = *(int *)(param_3 + 0x1018) + 1;
|
|
if (iVar1 == 0x20) {
|
|
iVar1 = 0;
|
|
}
|
|
*(int *)(param_3 + 0x1018) = iVar1;
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
iVar1 = 0;
|
|
}
|
|
else {
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
}
|
|
}
|
|
else {
|
|
LeaveCriticalSection((LPCRITICAL_SECTION)(param_3 + 0x1030));
|
|
}
|
|
return iVar1;
|
|
}
|
|
return 0x10;
|
|
}
|
|
|