IDA (4.9) Can I change the definitions of imported functions?

Can I change the argument types / argument names of imported functions, such as StretchBlt in IDA 4.9? This is a painful and error-prone manual change with

...
.text: 0040A49E push eax; HDC
.text: 0040A49F push 36h; int
.text: 0040A4A1 push 48h; int
.text: 0040A4A3 push 5Ah; int
.text: 0040A4A5 push 0; int
.text: 0040A4A7 push ecx; HDC
.text: 0040A4A8 call edi; Stretchblt

to

...
.text: 0040A49E push eax; HDC srcHDC
.text: 0040A49F push 36h; int destHeight
.text: 0040A4A1 push 48h; int destWidth
.text: 0040A4A3 push 5Ah; int destY
.text: 0040A4A5 push 0; int destX
.text: 0040A4A7 push ecx; HDC destHDC
.text: 0040A4A8 call edi; Stretchblt

everytime

+3
source share
1 answer

Have you tried writing a .IDC script to search for this block of comments, and then adjusted the comments of the previous lines.

+1
source

Source: https://habr.com/ru/post/1735380/


All Articles