.386
.model flat,stdcall

include c:\masm32\include\kernel32.inc
includelib c:\masm32\lib\kernel32.lib
include c:\masm32\include\user32.inc
includelib c:\masm32\lib\user32.lib

MB_YESNO equ 4h
IDYES equ 6

.data
MsgTitle	db 'Пример #2',0
MsgBody	    db 'Нажмите любую кнопку.',0
MsgYes		db 'Нажата кнопка ДА',0
MsgNo		db 'Нажата кнопка НЕТ',0
.code
start:
	invoke MessageBox,0,offset MsgBody,offset MsgTitle,MB_YESNO
	cmp    eax,IDYES
	jz     UserClickYesButton
	invoke MessageBox,0,offset MsgNo,offset MsgTitle,0
	invoke ExitProcess,0
UserClickYesButton:
	invoke MessageBox,0,offset MsgYes,offset MsgTitle,0
	invoke ExitProcess,0
end start