#include <fstream>
#include <windows.h>
#include <iostream>
using namespace std;
std::hex;
int i;
DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + 0x24FEC);
std::ofstream file;
file.open("Logger.txt");
for(int i = 0; i < 600; i++)
{
DWORD wapens = *(DWORD*)(weapon +(4*i));
char * weaponname = (char*)(wapens + 0x0008);
file << "Item number: " << i << " ID: " << hex << i << " Name: " << (LPCTSTR)weaponname << ".\n";
}
file.close();

*(DWORD*)(weapon +(4*i));