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,30 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x140077f00 _IsNonwritableInCurrentImage
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* Library Function - Single Match
|
||||
_IsNonwritableInCurrentImage
|
||||
|
||||
Library: Visual Studio 2010 Release */
|
||||
|
||||
BOOL __cdecl _IsNonwritableInCurrentImage(PBYTE pTarget)
|
||||
|
||||
{
|
||||
BOOL BVar1;
|
||||
uint uVar2;
|
||||
PIMAGE_SECTION_HEADER p_Var3;
|
||||
IMAGE_DOS_HEADER *pImageBase;
|
||||
|
||||
pImageBase = &IMAGE_DOS_HEADER_140000000;
|
||||
BVar1 = _ValidateImageBase((PBYTE)&IMAGE_DOS_HEADER_140000000);
|
||||
uVar2 = 0;
|
||||
if (BVar1 != 0) {
|
||||
p_Var3 = _FindPESection((PBYTE)pImageBase,(longlong)pTarget - (longlong)pImageBase);
|
||||
uVar2 = 0;
|
||||
if (p_Var3 != (PIMAGE_SECTION_HEADER)0x0) {
|
||||
uVar2 = ~(p_Var3->Characteristics >> 0x1f) & 1;
|
||||
}
|
||||
}
|
||||
return uVar2;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue