decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,63 @@
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
* Ghidra 12.1.2 decompiler output for 0x14006fc10 FUN_14006fc10
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
undefined8 FUN_14006fc10(char param_1)
{
HKEY hKey;
LSTATUS LVar1;
undefined8 uVar2;
undefined1 auStackY_118 [32];
uint local_c8 [2];
HKEY local_c0;
DWORD local_b8 [2];
wchar_t local_b0 [20];
wchar_t local_88 [56];
ulonglong local_18;
local_18 = DAT_1401ac5a0 ^ (ulonglong)auStackY_118;
builtin_wcsncpy(local_88,L"SYSTEM\\CurrentControlSet\\services\\Tcpip\\Parameters",0x33);
builtin_wcsncpy(local_b0,L"DisableTaskOffload",0x13);
local_c0 = (HKEY)0x0;
LVar1 = RegCreateKeyExW((HKEY)0xffffffff80000002,local_88,0,(LPWSTR)0x0,0,0x20006,
(LPSECURITY_ATTRIBUTES)0x0,&local_c0,local_b8);
hKey = local_c0;
if (LVar1 == 0) {
local_c8[0] = (uint)(param_1 != '\x01');
LVar1 = RegSetValueExW(local_c0,local_b0,0,4,(BYTE *)local_c8,4);
if (LVar1 == 0) {
if ((hKey == (HKEY)0x0) || (LVar1 = RegCloseKey(hKey), LVar1 == 0)) {
uVar2 = 0;
}
else {
uVar2 = 1;
if (LVar1 == 5) {
uVar2 = 0x12;
}
}
}
else if (LVar1 == 5) {
if (hKey != (HKEY)0x0) {
RegCloseKey(hKey);
}
uVar2 = 0x12;
}
else {
if (hKey != (HKEY)0x0) {
RegCloseKey(hKey);
}
uVar2 = 1;
}
}
else {
uVar2 = 1;
if (LVar1 == 5) {
uVar2 = 0x12;
}
}
return uVar2;
}