#include <Windows.h>

// this section is for windows 7
// it will most likely get expanded in the future, but for now its fine

// PrefetchVirtualMemory
extern "C" __declspec(dllexport) BOOL Ext_PrefetchVirtualMemory(
	IN HANDLE                    hProcess,
	IN ULONG_PTR                 NumberOfEntries,
	IN PWIN32_MEMORY_RANGE_ENTRY VirtualAddresses,
	IN ULONG                     Flags
) {
	return FALSE; // no op because its such an useless api and nothing depends on it if it doesnt work lol
}
#pragma comment(linker, "/EXPORT:PrefetchVirtualMemory=Ext_PrefetchVirtualMemory")

// other roblox studio k32 apis
#pragma comment(linker, "/EXPORT:AcquireSRWLockExclusive=kernel32.AcquireSRWLockExclusive")
#pragma comment(linker, "/EXPORT:AcquireSRWLockShared=kernel32.AcquireSRWLockShared")
#pragma comment(linker, "/EXPORT:AddVectoredExceptionHandler=kernel32.AddVectoredExceptionHandler")
#pragma comment(linker, "/EXPORT:AreFileApisANSI=kernel32.AreFileApisANSI")
#pragma comment(linker, "/EXPORT:CancelIo=kernel32.CancelIo")
#pragma comment(linker, "/EXPORT:CancelIoEx=kernel32.CancelIoEx")
#pragma comment(linker, "/EXPORT:CloseHandle=kernel32.CloseHandle")
#pragma comment(linker, "/EXPORT:CompareFileTime=kernel32.CompareFileTime")
#pragma comment(linker, "/EXPORT:CompareStringEx=kernel32.CompareStringEx")
#pragma comment(linker, "/EXPORT:ConvertFiberToThread=kernel32.ConvertFiberToThread")
#pragma comment(linker, "/EXPORT:ConvertThreadToFiberEx=kernel32.ConvertThreadToFiberEx")
#pragma comment(linker, "/EXPORT:CopyFileW=kernel32.CopyFileW")
#pragma comment(linker, "/EXPORT:CreateDirectoryW=kernel32.CreateDirectoryW")
#pragma comment(linker, "/EXPORT:CreateEventA=kernel32.CreateEventA")
#pragma comment(linker, "/EXPORT:CreateEventW=kernel32.CreateEventW")
#pragma comment(linker, "/EXPORT:CreateFiberEx=kernel32.CreateFiberEx")
#pragma comment(linker, "/EXPORT:CreateFileA=kernel32.CreateFileA")
#pragma comment(linker, "/EXPORT:CreateFileMappingW=kernel32.CreateFileMappingW")
#pragma comment(linker, "/EXPORT:CreateFileW=kernel32.CreateFileW")
#pragma comment(linker, "/EXPORT:CreateIoCompletionPort=kernel32.CreateIoCompletionPort")
#pragma comment(linker, "/EXPORT:CreateMutexA=kernel32.CreateMutexA")
#pragma comment(linker, "/EXPORT:CreateMutexExW=kernel32.CreateMutexExW")
#pragma comment(linker, "/EXPORT:CreateMutexW=kernel32.CreateMutexW")
#pragma comment(linker, "/EXPORT:GetPhysicallyInstalledSystemMemory=kernel32.GetPhysicallyInstalledSystemMemory")
#pragma comment(linker, "/EXPORT:CreateNamedPipeW=kernel32.CreateNamedPipeW")
#pragma comment(linker, "/EXPORT:CreateProcessA=kernel32.CreateProcessA")
#pragma comment(linker, "/EXPORT:CreateProcessW=kernel32.CreateProcessW")
#pragma comment(linker, "/EXPORT:CreateSemaphoreA=kernel32.CreateSemaphoreA")
#pragma comment(linker, "/EXPORT:CreateSemaphoreExW=kernel32.CreateSemaphoreExW")
#pragma comment(linker, "/EXPORT:CreateSemaphoreW=kernel32.CreateSemaphoreW")
#pragma comment(linker, "/EXPORT:CreateThread=kernel32.CreateThread")
#pragma comment(linker, "/EXPORT:CreateToolhelp32Snapshot=kernel32.CreateToolhelp32Snapshot")
#pragma comment(linker, "/EXPORT:CreateWaitableTimerA=kernel32.CreateWaitableTimerA")
#pragma comment(linker, "/EXPORT:DebugBreak=kernel32.DebugBreak")
#pragma comment(linker, "/EXPORT:DecodePointer=kernel32.DecodePointer")
#pragma comment(linker, "/EXPORT:DeleteCriticalSection=kernel32.DeleteCriticalSection")
#pragma comment(linker, "/EXPORT:DeleteFiber=kernel32.DeleteFiber")
#pragma comment(linker, "/EXPORT:DeleteFileA=kernel32.DeleteFileA")
#pragma comment(linker, "/EXPORT:DeleteFileW=kernel32.DeleteFileW")
#pragma comment(linker, "/EXPORT:DeviceIoControl=kernel32.DeviceIoControl")
#pragma comment(linker, "/EXPORT:DuplicateHandle=kernel32.DuplicateHandle")
#pragma comment(linker, "/EXPORT:EncodePointer=kernel32.EncodePointer")
#pragma comment(linker, "/EXPORT:EnterCriticalSection=kernel32.EnterCriticalSection")
#pragma comment(linker, "/EXPORT:FileTimeToSystemTime=kernel32.FileTimeToSystemTime")
#pragma comment(linker, "/EXPORT:FindClose=kernel32.FindClose")
#pragma comment(linker, "/EXPORT:FindFirstFileA=kernel32.FindFirstFileA")
#pragma comment(linker, "/EXPORT:FindFirstFileExW=kernel32.FindFirstFileExW")
#pragma comment(linker, "/EXPORT:FindFirstFileW=kernel32.FindFirstFileW")
#pragma comment(linker, "/EXPORT:FindNLSStringEx=kernel32.FindNLSStringEx")
#pragma comment(linker, "/EXPORT:FindNextFileA=kernel32.FindNextFileA")
#pragma comment(linker, "/EXPORT:FindNextFileW=kernel32.FindNextFileW")
#pragma comment(linker, "/EXPORT:FindResourceExW=kernel32.FindResourceExW")
#pragma comment(linker, "/EXPORT:FindResourceW=kernel32.FindResourceW")
#pragma comment(linker, "/EXPORT:FlushFileBuffers=kernel32.FlushFileBuffers")
#pragma comment(linker, "/EXPORT:FlushInstructionCache=kernel32.FlushInstructionCache")
#pragma comment(linker, "/EXPORT:FlushViewOfFile=kernel32.FlushViewOfFile")
#pragma comment(linker, "/EXPORT:FormatMessageA=kernel32.FormatMessageA")
#pragma comment(linker, "/EXPORT:FormatMessageW=kernel32.FormatMessageW")
#pragma comment(linker, "/EXPORT:FreeEnvironmentStringsW=kernel32.FreeEnvironmentStringsW")
#pragma comment(linker, "/EXPORT:FreeLibrary=kernel32.FreeLibrary")
#pragma comment(linker, "/EXPORT:GetACP=kernel32.GetACP")
#pragma comment(linker, "/EXPORT:GetCommandLineW=kernel32.GetCommandLineW")
#pragma comment(linker, "/EXPORT:GetConsoleMode=kernel32.GetConsoleMode")
#pragma comment(linker, "/EXPORT:GetCurrentDirectoryW=kernel32.GetCurrentDirectoryW")
#pragma comment(linker, "/EXPORT:GetCurrentProcess=kernel32.GetCurrentProcess")
#pragma comment(linker, "/EXPORT:GetCurrentProcessId=kernel32.GetCurrentProcessId")
#pragma comment(linker, "/EXPORT:GetCurrentProcessorNumber=kernel32.GetCurrentProcessorNumber")
#pragma comment(linker, "/EXPORT:GetCurrentThread=kernel32.GetCurrentThread")
#pragma comment(linker, "/EXPORT:GetCurrentThreadId=kernel32.GetCurrentThreadId")
#pragma comment(linker, "/EXPORT:GetDiskFreeSpaceA=kernel32.GetDiskFreeSpaceA")
#pragma comment(linker, "/EXPORT:GetDiskFreeSpaceExA=kernel32.GetDiskFreeSpaceExA")
#pragma comment(linker, "/EXPORT:GetDiskFreeSpaceExW=kernel32.GetDiskFreeSpaceExW")
#pragma comment(linker, "/EXPORT:GetDiskFreeSpaceW=kernel32.GetDiskFreeSpaceW")
#pragma comment(linker, "/EXPORT:GetEnvironmentStringsW=kernel32.GetEnvironmentStringsW")
#pragma comment(linker, "/EXPORT:GetEnvironmentVariableA=kernel32.GetEnvironmentVariableA")
#pragma comment(linker, "/EXPORT:GetEnvironmentVariableW=kernel32.GetEnvironmentVariableW")
#pragma comment(linker, "/EXPORT:GetExitCodeProcess=kernel32.GetExitCodeProcess")
#pragma comment(linker, "/EXPORT:GetExitCodeThread=kernel32.GetExitCodeThread")
#pragma comment(linker, "/EXPORT:GetFileAttributesA=kernel32.GetFileAttributesA")
#pragma comment(linker, "/EXPORT:GetFileAttributesExW=kernel32.GetFileAttributesExW")
#pragma comment(linker, "/EXPORT:GetFileAttributesW=kernel32.GetFileAttributesW")
#pragma comment(linker, "/EXPORT:GetFileInformationByHandleEx=kernel32.GetFileInformationByHandleEx")
#pragma comment(linker, "/EXPORT:GetFileSize=kernel32.GetFileSize")
#pragma comment(linker, "/EXPORT:GetFileSizeEx=kernel32.GetFileSizeEx")
#pragma comment(linker, "/EXPORT:GetFileTime=kernel32.GetFileTime")
#pragma comment(linker, "/EXPORT:GetFileType=kernel32.GetFileType")
#pragma comment(linker, "/EXPORT:GetFinalPathNameByHandleW=kernel32.GetFinalPathNameByHandleW")
#pragma comment(linker, "/EXPORT:GetFullPathNameA=kernel32.GetFullPathNameA")
#pragma comment(linker, "/EXPORT:GetFullPathNameW=kernel32.GetFullPathNameW")
#pragma comment(linker, "/EXPORT:GetLastError=kernel32.GetLastError")
#pragma comment(linker, "/EXPORT:GetLocalTime=kernel32.GetLocalTime")
#pragma comment(linker, "/EXPORT:GetModuleFileNameA=kernel32.GetModuleFileNameA")
#pragma comment(linker, "/EXPORT:GetModuleFileNameW=kernel32.GetModuleFileNameW")
#pragma comment(linker, "/EXPORT:GetModuleHandleA=kernel32.GetModuleHandleA")
#pragma comment(linker, "/EXPORT:GetModuleHandleExW=kernel32.GetModuleHandleExW")
#pragma comment(linker, "/EXPORT:GetModuleHandleW=kernel32.GetModuleHandleW")
#pragma comment(linker, "/EXPORT:GetNativeSystemInfo=kernel32.GetNativeSystemInfo")
#pragma comment(linker, "/EXPORT:GetOverlappedResult=kernel32.GetOverlappedResult")
#pragma comment(linker, "/EXPORT:GetProcAddress=kernel32.GetProcAddress")
#pragma comment(linker, "/EXPORT:GetProcessAffinityMask=kernel32.GetProcessAffinityMask")
#pragma comment(linker, "/EXPORT:GetProcessHandleCount=kernel32.GetProcessHandleCount")
#pragma comment(linker, "/EXPORT:GetProcessHeap=kernel32.GetProcessHeap")
#pragma comment(linker, "/EXPORT:GetProcessTimes=kernel32.GetProcessTimes")
#pragma comment(linker, "/EXPORT:GetQueuedCompletionStatus=kernel32.GetQueuedCompletionStatus")
#pragma comment(linker, "/EXPORT:GetStartupInfoW=kernel32.GetStartupInfoW")
#pragma comment(linker, "/EXPORT:GetStdHandle=kernel32.GetStdHandle")
#pragma comment(linker, "/EXPORT:GetStringTypeExW=kernel32.GetStringTypeExW")
#pragma comment(linker, "/EXPORT:GetSystemDirectoryA=kernel32.GetSystemDirectoryA")
#pragma comment(linker, "/EXPORT:GetSystemInfo=kernel32.GetSystemInfo")
#pragma comment(linker, "/EXPORT:GetSystemPowerStatus=kernel32.GetSystemPowerStatus")
#pragma comment(linker, "/EXPORT:GetSystemTime=kernel32.GetSystemTime")
#pragma comment(linker, "/EXPORT:GetSystemTimeAsFileTime=kernel32.GetSystemTimeAsFileTime")
#pragma comment(linker, "/EXPORT:GetTempPathA=kernel32.GetTempPathA")
#pragma comment(linker, "/EXPORT:GetTempPathW=kernel32.GetTempPathW")
#pragma comment(linker, "/EXPORT:GetThreadId=kernel32.GetThreadId")
#pragma comment(linker, "/EXPORT:GetTickCount=kernel32.GetTickCount")
#pragma comment(linker, "/EXPORT:GetVersion=kernel32.GetVersion")
#pragma comment(linker, "/EXPORT:GetVersionExA=kernel32.GetVersionExA")
#pragma comment(linker, "/EXPORT:GetVolumeNameForVolumeMountPointW=kernel32.GetVolumeNameForVolumeMountPointW")
#pragma comment(linker, "/EXPORT:GetVolumePathNameW=kernel32.GetVolumePathNameW")
#pragma comment(linker, "/EXPORT:GlobalAlloc=kernel32.GlobalAlloc")
#pragma comment(linker, "/EXPORT:GlobalFree=kernel32.GlobalFree")
#pragma comment(linker, "/EXPORT:GlobalLock=kernel32.GlobalLock")
#pragma comment(linker, "/EXPORT:GlobalMemoryStatusEx=kernel32.GlobalMemoryStatusEx")
#pragma comment(linker, "/EXPORT:GlobalUnlock=kernel32.GlobalUnlock")
#pragma comment(linker, "/EXPORT:HeapAlloc=kernel32.HeapAlloc")
#pragma comment(linker, "/EXPORT:HeapCompact=kernel32.HeapCompact")
#pragma comment(linker, "/EXPORT:HeapCreate=kernel32.HeapCreate")
#pragma comment(linker, "/EXPORT:HeapDestroy=kernel32.HeapDestroy")
#pragma comment(linker, "/EXPORT:HeapFree=kernel32.HeapFree")
#pragma comment(linker, "/EXPORT:HeapReAlloc=kernel32.HeapReAlloc")
#pragma comment(linker, "/EXPORT:HeapSize=kernel32.HeapSize")
#pragma comment(linker, "/EXPORT:HeapValidate=kernel32.HeapValidate")
#pragma comment(linker, "/EXPORT:InitOnceBeginInitialize=kernel32.InitOnceBeginInitialize")
#pragma comment(linker, "/EXPORT:InitOnceComplete=kernel32.InitOnceComplete")
#pragma comment(linker, "/EXPORT:InitializeConditionVariable=kernel32.InitializeConditionVariable")
#pragma comment(linker, "/EXPORT:InitializeCriticalSection=kernel32.InitializeCriticalSection")
#pragma comment(linker, "/EXPORT:InitializeCriticalSectionAndSpinCount=kernel32.InitializeCriticalSectionAndSpinCount")
#pragma comment(linker, "/EXPORT:InitializeCriticalSectionEx=kernel32.InitializeCriticalSectionEx")
#pragma comment(linker, "/EXPORT:InitializeSListHead=kernel32.InitializeSListHead")
#pragma comment(linker, "/EXPORT:InitializeSRWLock=kernel32.InitializeSRWLock")
#pragma comment(linker, "/EXPORT:InterlockedPopEntrySList=kernel32.InterlockedPopEntrySList")
#pragma comment(linker, "/EXPORT:InterlockedPushEntrySList=kernel32.InterlockedPushEntrySList")
#pragma comment(linker, "/EXPORT:IsDebuggerPresent=kernel32.IsDebuggerPresent")
#pragma comment(linker, "/EXPORT:IsProcessorFeaturePresent=kernel32.IsProcessorFeaturePresent")
#pragma comment(linker, "/EXPORT:K32GetModuleFileNameExW=kernel32.K32GetModuleFileNameExW")
#pragma comment(linker, "/EXPORT:K32GetProcessImageFileNameA=kernel32.K32GetProcessImageFileNameA")
#pragma comment(linker, "/EXPORT:K32GetProcessMemoryInfo=kernel32.K32GetProcessMemoryInfo")
#pragma comment(linker, "/EXPORT:LCMapStringW=kernel32.LCMapStringW")
#pragma comment(linker, "/EXPORT:LeaveCriticalSection=kernel32.LeaveCriticalSection")
#pragma comment(linker, "/EXPORT:LoadLibraryA=kernel32.LoadLibraryA")
#pragma comment(linker, "/EXPORT:LoadLibraryExA=kernel32.LoadLibraryExA")
#pragma comment(linker, "/EXPORT:LoadLibraryExW=kernel32.LoadLibraryExW")
#pragma comment(linker, "/EXPORT:LoadLibraryW=kernel32.LoadLibraryW")
#pragma comment(linker, "/EXPORT:LoadResource=kernel32.LoadResource")
#pragma comment(linker, "/EXPORT:LocalAlloc=kernel32.LocalAlloc")
#pragma comment(linker, "/EXPORT:LocalFree=kernel32.LocalFree")
#pragma comment(linker, "/EXPORT:LockFile=kernel32.LockFile")
#pragma comment(linker, "/EXPORT:LockFileEx=kernel32.LockFileEx")
#pragma comment(linker, "/EXPORT:LockResource=kernel32.LockResource")
#pragma comment(linker, "/EXPORT:MapViewOfFile=kernel32.MapViewOfFile")
#pragma comment(linker, "/EXPORT:MoveFileExA=kernel32.MoveFileExA")
#pragma comment(linker, "/EXPORT:MoveFileExW=kernel32.MoveFileExW")
#pragma comment(linker, "/EXPORT:MultiByteToWideChar=kernel32.MultiByteToWideChar")
#pragma comment(linker, "/EXPORT:OpenEventA=kernel32.OpenEventA")
#pragma comment(linker, "/EXPORT:OpenProcess=kernel32.OpenProcess")
#pragma comment(linker, "/EXPORT:OpenSemaphoreW=kernel32.OpenSemaphoreW")
#pragma comment(linker, "/EXPORT:OpenThread=kernel32.OpenThread")
#pragma comment(linker, "/EXPORT:OutputDebugStringA=kernel32.OutputDebugStringA")
#pragma comment(linker, "/EXPORT:OutputDebugStringW=kernel32.OutputDebugStringW")
#pragma comment(linker, "/EXPORT:PostQueuedCompletionStatus=kernel32.PostQueuedCompletionStatus")
#pragma comment(linker, "/EXPORT:Process32First=kernel32.Process32First")
#pragma comment(linker, "/EXPORT:Process32Next=kernel32.Process32Next")
#pragma comment(linker, "/EXPORT:QueryPerformanceCounter=kernel32.QueryPerformanceCounter")
#pragma comment(linker, "/EXPORT:QueryPerformanceFrequency=kernel32.QueryPerformanceFrequency")
#pragma comment(linker, "/EXPORT:QueueUserAPC=kernel32.QueueUserAPC")
#pragma comment(linker, "/EXPORT:RaiseException=kernel32.RaiseException")
#pragma comment(linker, "/EXPORT:ReadConsoleA=kernel32.ReadConsoleA")
#pragma comment(linker, "/EXPORT:ReadConsoleW=kernel32.ReadConsoleW")
#pragma comment(linker, "/EXPORT:ReadDirectoryChangesW=kernel32.ReadDirectoryChangesW")
#pragma comment(linker, "/EXPORT:ReadFile=kernel32.ReadFile")
#pragma comment(linker, "/EXPORT:ReleaseMutex=kernel32.ReleaseMutex")
#pragma comment(linker, "/EXPORT:ReleaseSRWLockExclusive=kernel32.ReleaseSRWLockExclusive")
#pragma comment(linker, "/EXPORT:ReleaseSRWLockShared=kernel32.ReleaseSRWLockShared")
#pragma comment(linker, "/EXPORT:ReleaseSemaphore=kernel32.ReleaseSemaphore")
#pragma comment(linker, "/EXPORT:RemoveDirectoryW=kernel32.RemoveDirectoryW")
#pragma comment(linker, "/EXPORT:RemoveVectoredExceptionHandler=kernel32.RemoveVectoredExceptionHandler")
#pragma comment(linker, "/EXPORT:ResetEvent=kernel32.ResetEvent")
#pragma comment(linker, "/EXPORT:ResumeThread=kernel32.ResumeThread")
#pragma comment(linker, "/EXPORT:RtlAddFunctionTable=kernel32.RtlAddFunctionTable")
#pragma comment(linker, "/EXPORT:RtlCaptureContext=kernel32.RtlCaptureContext")
#pragma comment(linker, "/EXPORT:RtlCaptureStackBackTrace=kernel32.RtlCaptureStackBackTrace")
#pragma comment(linker, "/EXPORT:RtlDeleteFunctionTable=kernel32.RtlDeleteFunctionTable")
#pragma comment(linker, "/EXPORT:RtlLookupFunctionEntry=kernel32.RtlLookupFunctionEntry")
#pragma comment(linker, "/EXPORT:RtlVirtualUnwind=kernel32.RtlVirtualUnwind")
#pragma comment(linker, "/EXPORT:SetConsoleMode=kernel32.SetConsoleMode")
#pragma comment(linker, "/EXPORT:SetEndOfFile=kernel32.SetEndOfFile")
#pragma comment(linker, "/EXPORT:SetEnvironmentVariableA=kernel32.SetEnvironmentVariableA")
#pragma comment(linker, "/EXPORT:SetErrorMode=kernel32.SetErrorMode")
#pragma comment(linker, "/EXPORT:SetEvent=kernel32.SetEvent")
#pragma comment(linker, "/EXPORT:SetFileAttributesW=kernel32.SetFileAttributesW")
#pragma comment(linker, "/EXPORT:SetFilePointer=kernel32.SetFilePointer")
#pragma comment(linker, "/EXPORT:SetFilePointerEx=kernel32.SetFilePointerEx")
#pragma comment(linker, "/EXPORT:SetFileTime=kernel32.SetFileTime")
#pragma comment(linker, "/EXPORT:SetLastError=kernel32.SetLastError")
#pragma comment(linker, "/EXPORT:SetNamedPipeHandleState=kernel32.SetNamedPipeHandleState")
#pragma comment(linker, "/EXPORT:SetSearchPathMode=kernel32.SetSearchPathMode")
#pragma comment(linker, "/EXPORT:SetThreadAffinityMask=kernel32.SetThreadAffinityMask")
#pragma comment(linker, "/EXPORT:SetThreadPriority=kernel32.SetThreadPriority")
#pragma comment(linker, "/EXPORT:SetUnhandledExceptionFilter=kernel32.SetUnhandledExceptionFilter")
#pragma comment(linker, "/EXPORT:SetWaitableTimer=kernel32.SetWaitableTimer")
#pragma comment(linker, "/EXPORT:SizeofResource=kernel32.SizeofResource")
#pragma comment(linker, "/EXPORT:Sleep=kernel32.Sleep")
#pragma comment(linker, "/EXPORT:SleepConditionVariableCS=kernel32.SleepConditionVariableCS")
#pragma comment(linker, "/EXPORT:SleepEx=kernel32.SleepEx")
#pragma comment(linker, "/EXPORT:SwitchToFiber=kernel32.SwitchToFiber")
#pragma comment(linker, "/EXPORT:SystemTimeToFileTime=kernel32.SystemTimeToFileTime")
#pragma comment(linker, "/EXPORT:TerminateProcess=kernel32.TerminateProcess")
#pragma comment(linker, "/EXPORT:TerminateThread=kernel32.TerminateThread")
#pragma comment(linker, "/EXPORT:TlsAlloc=kernel32.TlsAlloc")
#pragma comment(linker, "/EXPORT:TlsFree=kernel32.TlsFree")
#pragma comment(linker, "/EXPORT:TlsGetValue=kernel32.TlsGetValue")
#pragma comment(linker, "/EXPORT:TlsSetValue=kernel32.TlsSetValue")
#pragma comment(linker, "/EXPORT:TransactNamedPipe=kernel32.TransactNamedPipe")
#pragma comment(linker, "/EXPORT:TryEnterCriticalSection=kernel32.TryEnterCriticalSection")
#pragma comment(linker, "/EXPORT:UnhandledExceptionFilter=kernel32.UnhandledExceptionFilter")
#pragma comment(linker, "/EXPORT:UnlockFile=kernel32.UnlockFile")
#pragma comment(linker, "/EXPORT:UnlockFileEx=kernel32.UnlockFileEx")
#pragma comment(linker, "/EXPORT:UnmapViewOfFile=kernel32.UnmapViewOfFile")
#pragma comment(linker, "/EXPORT:VerSetConditionMask=kernel32.VerSetConditionMask")
#pragma comment(linker, "/EXPORT:VerifyVersionInfoA=kernel32.VerifyVersionInfoA")



// this api is evil so we have to change how it works
// why is it evil you may ask

//
//bool sub_145255E30()
//{
//	ULONGLONG v0; // rax
//	ULONGLONG v1; // rax
//	DWORDLONG v2; // rax
//	struct _OSVERSIONINFOEXW VersionInformation; // [rsp+20h] [rbp-128h] BYREF
//
//	VersionInformation.dwOSVersionInfoSize = 284;
//	memset(&VersionInformation.dwBuildNumber, 0, 264);
//	VersionInformation.wServicePackMinor = 0;
//	*(_DWORD*)&VersionInformation.wSuiteMask = 0;
//	v0 = VerSetConditionMask(0, 2u, 3u);
//	v1 = VerSetConditionMask(v0, 1u, 3u);
//	v2 = VerSetConditionMask(v1, 0x20u, 3u);
//	*(_QWORD*)&VersionInformation.dwMajorVersion = 10;
//	VersionInformation.wServicePackMajor = 0;
//	return VerifyVersionInfoW(&VersionInformation, 0x23u, v2);
//

extern "C" __declspec(dllexport) BOOL Ext_VerifyVersionInfoW(
	IN LPOSVERSIONINFOEXW lpVersionInformation,
	IN DWORD              dwTypeMask,
	IN DWORDLONG          dwlConditionMask
) {
	return TRUE;
}


#pragma comment(linker, "/EXPORT:VerifyVersionInfoW=Ext_VerifyVersionInfoW")
#pragma comment(linker, "/EXPORT:VirtualAlloc=kernel32.VirtualAlloc")
#pragma comment(linker, "/EXPORT:VirtualFree=kernel32.VirtualFree")
#pragma comment(linker, "/EXPORT:VirtualProtect=kernel32.VirtualProtect")
#pragma comment(linker, "/EXPORT:VirtualQuery=kernel32.VirtualQuery")
#pragma comment(linker, "/EXPORT:WaitForMultipleObjects=kernel32.WaitForMultipleObjects")
#pragma comment(linker, "/EXPORT:WaitForMultipleObjectsEx=kernel32.WaitForMultipleObjectsEx")
#pragma comment(linker, "/EXPORT:WaitForSingleObject=kernel32.WaitForSingleObject")
#pragma comment(linker, "/EXPORT:WaitForSingleObjectEx=kernel32.WaitForSingleObjectEx")
#pragma comment(linker, "/EXPORT:WaitNamedPipeW=kernel32.WaitNamedPipeW")
#pragma comment(linker, "/EXPORT:WakeAllConditionVariable=kernel32.WakeAllConditionVariable")
#pragma comment(linker, "/EXPORT:WakeConditionVariable=kernel32.WakeConditionVariable")
#pragma comment(linker, "/EXPORT:WideCharToMultiByte=kernel32.WideCharToMultiByte")
#pragma comment(linker, "/EXPORT:WriteFile=kernel32.WriteFile")
#pragma comment(linker, "/EXPORT:lstrcpyW=kernel32.lstrcpyW")
#pragma comment(linker, "/EXPORT:lstrcpynW=kernel32.lstrcpynW")
#pragma comment(linker, "/EXPORT:lstrlenW=kernel32.lstrlenW")
