Welcome back.
In the previous lesson we bash the message call unit barometers for the parent window to become f f
f f f f 0 0 by using the N move 0 to hail a destruction.
However that will produce some errors.
Sometimes it works sometimes it doesn't.
So if you put it wrongly sometimes it doesn't work.
Now it feels so using.
So our assembly to replace the recently e s registered 2 0 so this will set the entire base all to 0.
Instead of just the first by so let's get started.
Open the crazy one file.
The X 64 DB e.g.
click on run or press F nine to go to the entry point.
Then search for string references
and you can find the string reference for the wrong message box here.
Double click to go to the address and this is a break point which we set earlier.
Now here you can see the previous DV assemble these we know.
And then we assemble the more l 0 0 2 one of the knobs and that produces some kind of um error rating.
And in this lesson I'm going to show you another way.
So here is supposed to jam.
So we will not his first weekly hanging off a session.
OK make sure this is checked closely.
Now we have two knobs to replace the jump so he will not jump the next thing we want to do is to set
DC s to 0.
So that hole here down here.
Then we push yes you push 0 instead of f f f f f and 0 0.
So we want to assemble a new instruction which I will show you.
It is called ISO.
Ah yes yes.
If you were to assemble here XO are ESEA and click on d to check how much site he takes.
He seems it is bigger by one by.
So you should be fine.
So if we were to assemble this now it will take to buy.
So we have to base here.
Sure it should be just fine.
By taking this we tell the assembler that we only won one by because we want to keep site but it is
comparing say that instruction is bigger by one.
So it is telling us that this some assembly will take up to base the one by which we have here plus
another.
So that is fine.
So that is what we need.
We have to base here so is sufficient.
So I take this in assembler and it takes up 2 bytes.
So now we have already know and replace.
He s had is in time instead of no we replace one instruction to kill two birds.
That means this as I say replaces the time.
So there's no more jam at the same time.
It sets e to zero.
So that whenever you want to set something zero in this do an SLR followed by the reduced earning twice
that we say it to zero.
So now that is uh Randy saying give you the check.
So you enter anything.
Right.
OK so it is here now.
Break Point and we'll take a run and you can see down here the uh well is already shown now we can bet
it so far fetch far.
Click on the button push far and this time we're going to call it best to add a bank.
So keep safe.
OK hang close these and stop this as well.
So now we can go and test now attached to
and do anything.
Check he looks and something else.
Check he looks into another thing.
Check it looks.
So he works for every argument his hand still works too.
Let's trace it and see what happens in the debugger.
So we'll open page two and follow along.
So now the right press F nine.
Click on to run to the entry point and then search for string.
You know Francis and then over here you see the message here.
So just go to that address and then screw up and look for our new assembly.
This is Ellen.
Now we want to trace the tank so yes put a brake find us and move it.
So over here this is where the first perimeter is pushed.
No message in this message box to take for parameter.
As you recall it is called barometers one two three one two three four barometers.
All right.
Now our differences we assembling this Steve
for Vice.
So how does zero say be set to movie clip to zero.
So first perimeter is this which he is on here.
Then second part perimeter push is here so this will be here then in this one will be this haste is
the final one with this we should be zero by the time we reached that line.
So let's give it a try try.
So we run this
keen.
Anything click on the button.
Check any pauses and our breakpoint.
So now is ready to push 0 to the stack press F it
and you push 0 to the say press at it again press F it and you supposed to set the X to zero presently.
E axes f f f f f f f f.
So now you press effort to execute this discussion and notice he says everything is zero privacy when
we used to move instruction move is zero.
You produce this
he will produce this not a better way.
Now I've shown you is to do this when you do this and he says here he is to zero which means he will
get one two three four.
Right.
So it is better privacy.
This feel sometimes because if only the first byte was set to zero.
Okay fine.
So now we are going to push the next insertion push on a string to stack so effort in the Congress he's
pushed it aside.
Congress is a caption no press f it again.
And well done.
String is here to stay.
And now we're going to push you X which is zero.
It is a correct buffet.
So now we have to stay properly pushed.
We have zero in the string exception.
Zero.
This is why we won we zero the caption on the string and the the parent being the lady.
So that's it.
So now we call the function press edit and you can see the message box issue.
So he's working so that's it.
The future if you wanted to bash something register to set it 0.
A good way will be to use hey so ah yes yes that's all for us we.
Thank you for watching.