取消编译优化
看到了完整的代码
程序代码:
00401000 >/$ 55 PUSH EBP
00401001 |. 8BEC MOV EBP,ESP
00401003 |. 51 PUSH ECX
00401004 |. 6A 05 PUSH 5 ; /Arg2 = 00000005
00401006 |. 6A 04 PUSH 4 ; |Arg1 = 00000004
00401008 |. E8 23000000 CALL w5.power ; \power
0040100D |. 83C4 08 ADD ESP,8
00401010 |. 8945 FC MOV DWORD PTR SS:[EBP-4],EAX
00401013 |. 8B45 FC MOV EAX,DWORD PTR SS:[EBP-4]
00401016 >|. 50 PUSH EAX ; /<%d>
00401017 |. 68 EC204000 PUSH OFFSET w5.GS_ExceptionPointers ; |format = "%d"
0040101C |. FF15 A0204000 CALL DWORD PTR DS:[<&MSVCR100.printf>] ; \printf
00401022 |. 83C4 08 ADD ESP,8
00401025 >|. 33C0 XOR EAX,EAX
00401027 |. 8BE5 MOV ESP,EBP
00401029 |. 5D POP EBP
0040102A \. C3 RETN
0040102B CC INT3
0040102C CC INT3
0040102D CC INT3
0040102E CC INT3
0040102F CC INT3
00401030 >/$ 55 PUSH EBP
00401031 |. 8BEC MOV EBP,ESP
00401033 |. 51 PUSH ECX
00401034 |. C745 FC 010000>MOV DWORD PTR SS:[EBP-4],1
0040103B |. EB 13 JMP SHORT w5.00401050
0040103D |> 8B45 FC /MOV EAX,DWORD PTR SS:[EBP-4]
00401040 |. 0FAF45 08 |IMUL EAX,DWORD PTR SS:[EBP+8]
00401044 |. 8945 FC |MOV DWORD PTR SS:[EBP-4],EAX
00401047 |. 8B4D 0C |MOV ECX,DWORD PTR SS:[EBP+C]
0040104A |. 83E9 01 |SUB ECX,1
0040104D |. 894D 0C |MOV DWORD PTR SS:[EBP+C],ECX
00401050 |> 837D 0C 00 CMP DWORD PTR SS:[EBP+C],0
00401054 |. 7E 02 |JLE SHORT w5.00401058
00401056 |.^EB E5 \JMP SHORT w5.0040103D
00401058 |> 8B45 FC MOV EAX,DWORD PTR SS:[EBP-4]
0040105B |. 8BE5 MOV ESP,EBP
0040105D |. 5D POP EBP
0040105E \. C3 RETN