CLEO Help DLL Call

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
maybe somebody know What i doing wrong?
Or maybe i have wrong offset?

PHP:
:Set_dialog_Text
{
    0.3.7 - R3
    0AB1: @Set_dialog_Text 1 text 0@
}
IF 0AA2: 10@ = "samp.dll"
THEN 
    0A8E: 11@ = 10@ + 0x26E898 // SAMP_DIALOG_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0x6AE30 //SAMP_SET_DIALOG TEXT
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ 1@
END
0AB2: 0

@springfield or any ...
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
Hello , i'm back.
Maybe somebody can explain how to know how many params need every time?
For example now i found pointers of Set chat input enabled , but when i call i get couple errors also my character was freezed , that means pointers are good, because i know when we open chat we can't move.
So problem is with call. I never know how many param need and how i should call it.
PHP:
:SET_CHAT_INPUT_ENABLED
{
    0.3.DL
    0AB1: @SET_CHAT_INPUT_ENABLED 1 status 1 // 0 = CLOSED , 1 = OPENNED
}
IF 0AA2: 10@ = "samp.dll"
THEN
    0A8E: 11@ = 10@ + 0x2ACA14 // SAMP_CHAT_INPUT_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0xA0530 //SAMP_CHAT_INPUT_OPEN
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ 1@
END
0AB2: 0
@springfield
@0x32789
@y0mike
etc..

Thx for any help.
 

y0mike

Active member
Joined
May 10, 2014
Messages
97
Reaction score
41
Location
mizus girl's house
Open IDA, rebase the program to 0x0 and travel to offset 0xA0530. Check the psuedocode for params, calling convention, and use xrefs to see how samp.dll is calling that function. I'm not saying you should rely on psuedocode, but it should be enough for this function.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
I never use before IDA.
I try , thx.
Open IDA, rebase the program to 0x0 and travel to offset 0xA0530. Check the psuedocode for params, calling convention, and use xrefs to see how samp.dll is calling that function. I'm not saying you should rely on psuedocode, but it should be enough for this function.
 
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
Open IDA, rebase the program to 0x0 and travel to offset 0xA0530. Check the psuedocode for params, calling convention, and use xrefs to see how samp.dll is calling that function. I'm not saying you should rely on psuedocode, but it should be enough for this function.
I don't know to do that , how program connect with samp?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
Open IDA, rebase the program to 0x0 and travel to offset 0xA0530. Check the psuedocode for params, calling convention, and use xrefs to see how samp.dll is calling that function. I'm not saying you should rely on psuedocode, but it should be enough for this function.
What to do next?
.
 

Attachments

  • Untitled.png
    Untitled.png
    121.7 KB · Views: 13
Status
Not open for further replies.
Top