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,34 @@
|
|||
/* MessageServer_Release_x64.exe sha256 7911b15c4379625eaa12ff227708aa3a033bc6ac2cf6b34283136e3a62df25f1
|
||||
* Ghidra 12.1.2 decompiler output for 0x140077eb0 _FindPESection
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* Library Function - Single Match
|
||||
_FindPESection
|
||||
|
||||
Libraries: Visual Studio 2008 Release, Visual Studio 2010 Release, Visual Studio 2019 Release */
|
||||
|
||||
PIMAGE_SECTION_HEADER __cdecl _FindPESection(PBYTE pImageBase,DWORD_PTR rva)
|
||||
|
||||
{
|
||||
int iVar1;
|
||||
PIMAGE_SECTION_HEADER p_Var2;
|
||||
uint uVar3;
|
||||
|
||||
iVar1 = *(int *)(pImageBase + 0x3c);
|
||||
uVar3 = 0;
|
||||
p_Var2 = (PIMAGE_SECTION_HEADER)
|
||||
(pImageBase +
|
||||
(ulonglong)*(ushort *)(pImageBase + (longlong)iVar1 + 0x14) + 0x18 + (longlong)iVar1);
|
||||
if (*(ushort *)(pImageBase + (longlong)iVar1 + 6) != 0) {
|
||||
do {
|
||||
if ((p_Var2->VirtualAddress <= rva) &&
|
||||
(rva < (p_Var2->Misc).PhysicalAddress + p_Var2->VirtualAddress)) {
|
||||
return p_Var2;
|
||||
}
|
||||
uVar3 = uVar3 + 1;
|
||||
p_Var2 = p_Var2 + 1;
|
||||
} while (uVar3 < *(ushort *)(pImageBase + (longlong)iVar1 + 6));
|
||||
}
|
||||
return (PIMAGE_SECTION_HEADER)0x0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue