if(a++) mov ebx,edi inc edi test ebx,ebx je 0000001F a--; dec edi if(++b) inc esi je 00000023 --b; dec esi
Then I started reading some more, and noticed a strange initilization of 'a', atleast it is strange to me.
int _tmain(){ // TODO: Please replace the sample code below with your own. unsigned int a,b; a = 5;00000000 push ebp 00000001 mov ebp,esp 00000003 sub esp,8 00000006 push edi 00000007 push esi 00000008 push ebx 00000009 xor esi,esi 0000000b xor edi,edi 0000000d mov edi,5 b = 6;00000012 mov esi,6 if(a++)00000017 mov ebx,edi 00000019 inc edi 0000001a test ebx,ebx 0000001c je 0000001F a--;0000001e dec edi if(++b)0000001f inc esi 00000020 je 00000023 --b;00000022 dec esi system("Pause");00000023 mov ecx,41D18Ch 00000028 call dword ptr ds:[00875DACh] 0000002e nop Console::WriteLine(S"Hello World");0000002f mov ecx,dword ptr ds:[019915A4h] 00000035 call dword ptr ds:[79C56678h] return 0;0000003b nop 0000003c jmp 0000003E }