Вопрос Что делать крашит при вызове DLLMAIN

Начинающий
Статус
Оффлайн
Регистрация
10 Апр 2022
Сообщения
159
Реакции[?]
14
Поинты[?]
3K
привет, крашит при вызове DLLMAIN PEINFO говорит 1679137058406.png

C++:
DWORD WINAPI inject(LPVOID)
{

    void* cheat_mem = VirtualAlloc(0, sizeof(rawData), MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
    if (!cheat_mem)
    {
        MessageBoxA(0, "Failed to allocate memory", "ERROR", MB_OK);
       // exit(0);
        
    }

    memcpy(cheat_mem, rawData, sizeof(rawData));
   // reinterpret_cast<void*>(reinterpret_cast<uint32_t>(cheat_mem) + 0x1FB042);
   // std::cout << reinterpret_cast<void*>(reinterpret_cast<uint32_t>(cheat_mem) + 0x1FB042) << std::endl;
    //std::cout << reinterpret_cast<void*>(reinterpret_cast<uint32_t>(cheat_mem) + 0x001FB042) << std::endl;
    
    __asm
    {
     //   push 0
       // push 1
        push cheat_mem
        mov eax, cheat_mem
        add eax, 0x1FB042 //0x159A16 RVA
        call eax
    }

    return TRUE;
}
 
Сверху Снизу