最近在做d3d 方面的时候 查询某游戏的dll 偏移的时候 想记录下
在vs 里面反汇编代码如下 绘制图像 之前很多都是hook
DrawIndexedPrimitive<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">函数进行透视 z缓冲处理</span>
554: g_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 24, 0, 12);//利用索引缓存配合顶点缓存绘制图形
0037235C A1 FC 63 37 00 mov eax,dword ptr ds:[003763FCh]
00372361 6A 0C push 0Ch
00372363 6A 00 push 0
00372365 6A 18 push 18h
00372367 8B 08 mov ecx,dword ptr [eax]
00372369 6A 00 push 0
0037236B 6A 00 push 0
0037236D 6A 04 push 4
0037236F 50 push eax
00372370 FF 91 48 01 00 00 call dword ptr [ecx+148h] //我们跟进这个函数