Отладка приложений


Пример соглашений о вызовах - часть 2


00401007 90 nор

43: CDeclFunction ( g_szCdeclCall , 1 , 'а' ) ;

00401008 6А 61 push 61h

0040100A 6A 01 push 1

0040100C Al 14 30 40 00 mov eax,[g_szCdeclCall (00403014)]

00401011 50 push eax

00401012 E8 45 00 00 00 call CDeclFunction (0040105с)

00401017 83 C4 ОС add esp,OCh

44: _asm NOP _asm NOP

0040101A 90 nор

0040101B 90 nор

45: StdCallFunction ( g_szStdCall , 2 , 'b' ) ;

0040101C 6A 62 push 62h

0040101E 6A 02 push 2

00401020 8B OD 10 30 40 00 mov ecx,dword ptr

[g_szStdCall (00403010)]

00401026 51 push ecx

00401027 E8 3D 00 00 00 call StdCallFunction (00401069)

46: _asm NOP _asm NOP

0040102C 90 nор

0040102D 90 nор

47: FastCallFunction ( g_szFastCall , 3 , 'c' ) ;

0040102E 6A 63 push 63h

00401030 BA 03 00 00 00 mov edx,3

00401035 8B OD 18 30 40 00 mov ecx,dword ptr

[g_szFastCall (00403018)]

0040103В Е8 38 00 00 00 call FastCallFunction (00401078)

48: _asm NOP _asm NOP

00401040 90 nор

00401041 90 nор

49: NakedCallFunction ( g_szNakedCall , 4 , 'd' ) ;

00401042 6A 64 , push 64h

00401044 6A 04 push 4

00401046 8B 15 1C 30 40 00 mov edx,dword ptr

[g-_szNakedCall (0040301с)]

0040104C 52 push edx

0040104D E8 40 00 00 00 call NakedCallFunction (00401092) 

00401052 83 C4 ОС add esp,OCh 

50: _asm NOP _asm NOP

00401055 90 nор

00401056 90 nор

51:

52: }

00401057 5F pop edi

00401058 5E pop esi

00401059 5B pop ebx

0040105A 5D pop ebp

0040105В СЗ ret

53:

54: void CDeclFunction ( char * szString ,

55: unsigned long ulLong ,

56: char chChar )

57: {

0040105C 55 push ebp

0040105D 8B EC mov ebp,esp

0040105F 53 push ebx

00401060 56 push esi

00401061 57 push edi 58: _asm NOP _asm NOP

00401062 90 nор

00401063 90 nор 

59: }

00401064 5F pop edi

00401065 5E pop esi

00401066 5B pop ebx

00401067 5D pop ebp

00401068 C3 ret

60:

61: void _stdcall StdCallFunction ( char * szString ,

62: unsigned long ulLong ,

63: char chChar )

64: {

00401069 55 push ' ebp

 0040106A-8B EC mov ebp,esp 

0040106C 53 push ebx




Начало  Назад  Вперед



Книжный магазин