最初由 csjwaman 发布
是的。可以修改一下那个跳转。
00458512 A1 D47B4500 mov eax,dword ptr ds:[457BD4]
00458517 E8 7837FBFF call EXPLORER.0040BC94
0045851C E8 53B9FAFF call EXPLORER.00403E74
00458521 53 push ebx
00458522 E8 15E5FAFF call <jmp.&kernel32.GetFileType>
00458527 83F8 02 cmp eax,2
0045852A 74 1C je short EXPLORER.00458548
0045852C 53 push ebx
0045852D E8 2AE4FAFF call <jmp.&kernel32.CloseHandle>
00458532 B9 A4874500 mov ecx,EXPLORER.004587A4 ; ASCII "File handle is not a comm handle "
00458537 B2 01 mov dl,1
00458539 A1 D47B4500 mov eax,dword ptr ds:[457BD4]
0045853E E8 5137FBFF call EXPLORER.0040BC94
00458543 E8 2CB9FAFF call EXPLORER.00403E74
00458548 68 00100000 push 1000
0045854D 68 00100000 push 1000
00458552 53 push ebx
00458553 E8 54E6FAFF call <jmp.&kernel32.SetupComm>
00458558 85C0 test eax,eax
0045855A 75 22 jnz short EXPLORER.0045857E
0045855C 8B45 FC mov eax,dword ptr ss:[ebp-4]
这里那个版本,要修改那里