nexus
August 28th, 2006, 14:33
Hello! My first post
I'm trying to find out how to call a function from dll.
Everything that I have is this dll.
I managed to find the parameters for all other functions that I need and I can call them without a problem.
This function is troublesome:
1000130A |. 6A 00 PUSH 0 -------> second parameter = 0
1000130C |. 68 F0100010 PUSH xxx.100010F0 --> location of function to call
10001311 |. B9 F4950010 MOV ECX,xxx.100095F4
10001316 |. FF15 24710010 CALL DWORD PTR DS:[<&dll.?RegNotify>; dll.?RegNotify@CSkyPCI@@QAEHPAX0@Z
1000131C |. B0 02 MOV AL,2
1000131E |. 5F POP EDI
1000131F \. C3 RETN
IDA Free says this about the function:
.text:1000130A push 0
.text:1000130C push offset loc_100010F0
.text:10001311 mov ecx, offset unk_100095F4
.text:10001316 call ds:?RegNotify@CSkyPCI@@QAEHPAX0@Z ; CSkyPCI::RegNotify(void *,void *)
I don't now how to implement this in C:
mov ecx,xxx.100095F4

I'm trying to find out how to call a function from dll.
Everything that I have is this dll.
I managed to find the parameters for all other functions that I need and I can call them without a problem.
This function is troublesome:
1000130A |. 6A 00 PUSH 0 -------> second parameter = 0
1000130C |. 68 F0100010 PUSH xxx.100010F0 --> location of function to call
10001311 |. B9 F4950010 MOV ECX,xxx.100095F4
10001316 |. FF15 24710010 CALL DWORD PTR DS:[<&dll.?RegNotify>; dll.?RegNotify@CSkyPCI@@QAEHPAX0@Z
1000131C |. B0 02 MOV AL,2
1000131E |. 5F POP EDI
1000131F \. C3 RETN
IDA Free says this about the function:
.text:1000130A push 0
.text:1000130C push offset loc_100010F0
.text:10001311 mov ecx, offset unk_100095F4
.text:10001316 call ds:?RegNotify@CSkyPCI@@QAEHPAX0@Z ; CSkyPCI::RegNotify(void *,void *)
I don't now how to implement this in C:
mov ecx,xxx.100095F4