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
37
decomp/DBCServer_Release_x64/full/functions/0x1401aec20.c
Normal file
37
decomp/DBCServer_Release_x64/full/functions/0x1401aec20.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401aec20 FUN_1401aec20
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 * FUN_1401aec20(LPCWSTR param_1)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
BOOL BVar2;
|
||||
undefined8 *hFile;
|
||||
undefined8 *puVar3;
|
||||
undefined2 local_res10 [4];
|
||||
void *local_res18 [2];
|
||||
|
||||
puVar3 = (undefined8 *)0x0;
|
||||
hFile = CreateFileW(param_1,0x40000000,1,(LPSECURITY_ATTRIBUTES)0x0,4,0x80,(HANDLE)0x0);
|
||||
if ((hFile == (undefined8 *)0xffffffffffffffff) &&
|
||||
(iVar1 = FUN_1401ad250(), hFile = puVar3, iVar1 < 0)) {
|
||||
puVar3 = (undefined8 *)0x0;
|
||||
}
|
||||
else {
|
||||
local_res10[0] = 0xfeff;
|
||||
BVar2 = WriteFile(hFile,local_res10,2,(LPDWORD)local_res18,(LPOVERLAPPED)0x0);
|
||||
if (BVar2 == 0) {
|
||||
FUN_1401ad250();
|
||||
}
|
||||
local_res18[0] = operator_new(0xc0);
|
||||
if (local_res18[0] != (void *)0x0) {
|
||||
puVar3 = (undefined8 *)FUN_1401aeb80(local_res18[0]);
|
||||
}
|
||||
*puVar3 = hFile;
|
||||
FUN_1401998a0(puVar3 + 0xb);
|
||||
CloseHandle((HANDLE)0xffffffffffffffff);
|
||||
}
|
||||
return puVar3;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue