Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop Storefront, loot checklist editor, chat routing, window placements, and related engine work. See Changelog/2026-11-22-sk-backlog-test-merge.md.
20 lines
945 B
C#
20 lines
945 B
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
public class Program {
|
|
public static void Main() {
|
|
byte[] pe = File.ReadAllBytes(@"C:\Games\NexCore\acclient.exe");
|
|
int peOffset = BitConverter.ToInt32(pe, 0x3C);
|
|
int numSections = BitConverter.ToInt16(pe, peOffset + 6);
|
|
int sectionHeaders = peOffset + 24 + BitConverter.ToInt16(pe, peOffset + 20);
|
|
for (int i = 0; i < numSections; i++) {
|
|
int rva = BitConverter.ToInt32(pe, sectionHeaders + i * 40 + 12);
|
|
int size = BitConverter.ToInt32(pe, sectionHeaders + i * 40 + 16);
|
|
int ptr = BitConverter.ToInt32(pe, sectionHeaders + i * 40 + 20);
|
|
if (rva <= 0x1583F0 && rva + size > 0x1583F0) {
|
|
int fileOffset = ptr + (0x1583F0 - rva);
|
|
Console.WriteLine("Bytes at GetWeenieObject: " + BitConverter.ToString(pe, fileOffset, 32));
|
|
}
|
|
}
|
|
}
|
|
}
|