Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6565997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:09:52+00:00 2026-05-25T14:09:52+00:00

I asked a question yesterday, how to call a __fastcall function, it worked great.

  • 0

I asked a question yesterday, how to call a __fastcall function, it worked great.

Now my final function i got to call is having some difficulties.

Here is the ASM function.

seg000:0043671F                 push    0AA2BAD1Bh
seg000:00436724                 lea     ecx, [ebp+var_14]
seg000:00436727                 call    sub_458E90

IDA PRO labels it as.

int __thiscall sub_458E90(void *this, int a2)

It’s called like this

sub_458E90(&v9, -1439978213);

Now here is the code I tried and it just gives me a Exception at runtime

   int addr = 0x458E90;

    __declspec(naked) void sub_458E90(int buffer, int key)
    {
        __asm{
            push key
            mov ecx, buffer
            call [addr]
             retn
        }
    }

Also tried

__declspec(naked) void sub_458E90_1(int buffer, int key)
{
    __asm{
        push key
        mov ecx, buffer
        jmp [addr]
    }
}

Both give me

Application Error
The instruction at “0x00458e93” refenced memory at “0x00000000”. The memory could not be “read”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:09:52+00:00Added an answer on May 25, 2026 at 2:09 pm

    Solved ebx must of been used for key. Simple as that.

    void also must of been changed to int forgot about that. (most likely not to important)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked a question earlier yesterday and got some very good answers for sure.
Yesterday, I asked this question and never really got an answer I was really
While looking at a micro-optimization question that I asked yesterday ( here ), I
(I asked this question in another way , and got some interesting responses but
I asked a question yesterday and the answer I got has answered the first
I asked a question yesterday which got answers but didnt answer the main point.
This problem is related to This question I asked yesterday. Now it seems that
I asked this question yesterday got a pretty good answer but can't figure out
I asked a question yesterday about namespaces that got answered, and so I tarried
Yesterday I asked a question here about a oneliner and mjschultz gave me an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.