Sign in to follow this  
Followers 0
bhduong

How can I use ASM on AutoIT?

3 posts in this topic

Hi every body. I want to use ASM code in autoIT but I don't know how to use. Please help me :)

Share this post


Link to post
Share on other sites



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;

}

Share this post


Link to post
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
Sign in to follow this  
Followers 0