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
|
|
@ -0,0 +1,43 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x1400cc7f0 FUN_1400cc7f0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 * FUN_1400cc7f0(LPCWSTR param_1)
|
||||
|
||||
{
|
||||
DWORD DVar1;
|
||||
BOOL BVar2;
|
||||
undefined8 *hFile;
|
||||
undefined8 *puVar3;
|
||||
undefined2 *lpBuffer;
|
||||
undefined8 uVar4;
|
||||
undefined8 **lpNumberOfBytesWritten;
|
||||
undefined2 local_res10 [4];
|
||||
undefined8 *local_res18 [2];
|
||||
|
||||
puVar3 = (undefined8 *)0x0;
|
||||
hFile = CreateFileW(param_1,0x40000000,1,(LPSECURITY_ATTRIBUTES)0x0,4,0x80,(HANDLE)0x0);
|
||||
if ((hFile == (undefined8 *)0xffffffffffffffff) &&
|
||||
(DVar1 = FUN_1400a0200(), hFile = puVar3, (int)DVar1 < 0)) {
|
||||
puVar3 = (undefined8 *)0x0;
|
||||
}
|
||||
else {
|
||||
local_res10[0] = 0xfeff;
|
||||
lpNumberOfBytesWritten = local_res18;
|
||||
uVar4 = 2;
|
||||
lpBuffer = local_res10;
|
||||
BVar2 = WriteFile(hFile,lpBuffer,2,(LPDWORD)lpNumberOfBytesWritten,(LPOVERLAPPED)0x0);
|
||||
if (BVar2 == 0) {
|
||||
FUN_1400a0200();
|
||||
}
|
||||
local_res18[0] = operator_new(0xc0);
|
||||
if (local_res18[0] != (undefined8 *)0x0) {
|
||||
puVar3 = FUN_1400cc750(local_res18[0],lpBuffer,uVar4,lpNumberOfBytesWritten);
|
||||
}
|
||||
*puVar3 = hFile;
|
||||
FUN_140074290(puVar3 + 0xb,lpBuffer,uVar4,lpNumberOfBytesWritten);
|
||||
CloseHandle((HANDLE)0xffffffffffffffff);
|
||||
}
|
||||
return puVar3;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue