how would I go about that?
I though i could use the c function _toa()..
or to convert a word into a lpstr directy thru asm maybe

Somebody enlight me up about this

thanks in advance
Posted on 2003-12-28 11:25:31 by bRaNcO
well i did it like this in one time and it works well

try it out


00401000 >PUSH DWORD PTR [40330D] ; /BufSize = 104 (260.)
00401006 PUSH 403209 ; |Buffer = 2c.00403209
0040100B CALL 0040120A ; \GetSystemDirectoryA
00401010 PUSH 403311 ; /StringToAdd = "\*crt*.dll"
00401015 PUSH 403209 ; |ConcatString = "C:\WINNT\System32\*crt*.dll"
0040101A CALL 00401216 ; \lstrcatA
0040101F PUSH 403322 ; /pFindFileData = 2c.00403322
00401024 PUSH 403209 ; |FileName = "C:\WINNT\System32\*crt*.dll"
00401029 CALL 004011EC ; \FindFirstFileA
0040102E MOV [403578],EAX
00401033 /PUSH 40334E ; /FileName = "crtdll.dll"
00401038 |CALL 00401210 ; \LoadLibraryA
0040103D |MOV [403574],EAX
00401042 |PUSH 40331C ; /ProcNameOrOrdinal = "_itoa"
00401047 |PUSH EAX ; |hModule = 74FA6FEB
00401048 |CALL 00401204 ; \GetProcAddress
0040104D |MOV [40357C],EAX
00401052 |OR EAX,EAX
00401054 |JNZ SHORT 00401073 ; 2c.00401073



all aystems have either crtdll or msvcrtdll in thier system directory
so it works most of the times
or if u are using nt system the ntdll.dll also has _itoa in it

or use start -->search for files with text _itoa grab any of the dll that comes up load it and getproc address it
Posted on 2003-12-29 00:22:02 by bluffer