decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
60
decomp/DBCServer_Release_x64/full/functions/0x14013f680.c
Normal file
60
decomp/DBCServer_Release_x64/full/functions/0x14013f680.c
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14013f680 FUN_14013f680
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
|
||||
|
||||
int FUN_14013f680(longlong param_1,ushort param_2,undefined4 param_3,undefined8 *param_4,
|
||||
void *param_5)
|
||||
|
||||
{
|
||||
longlong lVar1;
|
||||
int iVar2;
|
||||
undefined1 auStack_118 [32];
|
||||
undefined2 local_f8;
|
||||
undefined2 local_f6;
|
||||
undefined4 local_f4;
|
||||
undefined4 local_f0;
|
||||
undefined2 local_ec;
|
||||
undefined8 local_ea;
|
||||
undefined8 local_e2;
|
||||
undefined1 local_da [40];
|
||||
undefined8 local_b2;
|
||||
undefined8 local_aa;
|
||||
undefined8 local_a2;
|
||||
undefined8 local_9a;
|
||||
ulonglong local_28;
|
||||
|
||||
local_28 = DAT_1403463c0 ^ (ulonglong)auStack_118;
|
||||
lVar1 = *(longlong *)(param_1 + 200);
|
||||
local_b2 = 0;
|
||||
local_aa = 0;
|
||||
local_a2 = 0;
|
||||
local_9a = 0;
|
||||
local_f6 = 0x4a7;
|
||||
iVar2 = 0;
|
||||
local_f8 = 0xc2;
|
||||
local_ea = *param_4;
|
||||
local_e2 = param_4[1];
|
||||
local_f4 = 0;
|
||||
local_ec = 0;
|
||||
local_f0 = param_3;
|
||||
memcpy(local_da,param_5,0xa4);
|
||||
if (param_2 < 1000) {
|
||||
lVar1 = *(longlong *)(lVar1 + (longlong)(short)param_2 * 8);
|
||||
iVar2 = 0;
|
||||
if (lVar1 != 0) {
|
||||
EnterCriticalSection((LPCRITICAL_SECTION)(lVar1 + 0x38));
|
||||
iVar2 = FUN_1400a7630(*(undefined8 *)(lVar1 + 0x18),&local_f8);
|
||||
if (iVar2 != 0) {
|
||||
ReleaseSemaphore(*(HANDLE *)(lVar1 + 0x10),1,(LPLONG)0x0);
|
||||
}
|
||||
LeaveCriticalSection((LPCRITICAL_SECTION)(lVar1 + 0x38));
|
||||
}
|
||||
}
|
||||
else {
|
||||
wprintf(L"Invalid Queue Index\n");
|
||||
}
|
||||
return iVar2;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue