Jump to content

How can I use ASM on AutoIT?


Recommended Posts

This is my code in C++. How it is in AutoIT?

static DWORD WINAPI Run(LPCVOID lpParam)

{

DWORD *Param = (DWORD*) lpParam;

DWORD x = *Param;

DWORD y = *(Param+1);

DWORD z = *(Param+2);

DWORD fly = 0;

__try

{

_asm

{ pushad;

mov edx, W2I_BASE_ADD;

mov esi, dword ptr[edx+20h];

mov ecx, dword ptr[esi+0BB8h];

mov eax,dword ptr [esi+0x5dc+4];

cmp eax,2;

jnz next;

mov fly,1;

next:

push 1;

mov edx,45DA60h;

call edx;

mov edi, eax;

push Param;

push fly;

mov ecx,edi;

mov edx, 461500h;

call edx;

push 0;

push 1;

push edi;

push 1;

mov ecx, dword ptr[esi+0BB8h];

mov edx, 45DE60h;

call edx;

popad;

}

}

__except(1)

{

}

return 0;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...