Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int IsEvenAND(int numb){
- 00D619D0 push ebp
- 00D619D1 mov ebp,esp
- 00D619D3 sub esp,0C4h
- 00D619D9 push ebx
- 00D619DA push esi
- 00D619DB push edi
- 00D619DC lea edi,[ebp-0C4h]
- 00D619E2 mov ecx,31h
- 00D619E7 mov eax,0CCCCCCCCh
- 00D619EC rep stos dword ptr es:[edi]
- return !(numb & 1);
- 00D619EE mov eax,dword ptr [numb]
- 00D619F1 and eax,1
- 00D619F4 jne IsEvenAND+32h (0D61A02h)
- 00D619F6 mov dword ptr [ebp-0C4h],1
- 00D61A00 jmp IsEvenAND+3Ch (0D61A0Ch)
- 00D61A02 mov dword ptr [ebp-0C4h],0
- 00D61A0C mov eax,dword ptr [ebp-0C4h]
- }
- int IsEvenMOD(int numb){
- 00D62300 push ebp
- 00D62301 mov ebp,esp
- 00D62303 sub esp,0C4h
- 00D62309 push ebx
- 00D6230A push esi
- 00D6230B push edi
- 00D6230C lea edi,[ebp-0C4h]
- 00D62312 mov ecx,31h
- 00D62317 mov eax,0CCCCCCCCh
- 00D6231C rep stos dword ptr es:[edi]
- return numb % 2 == 0;
- 00D6231E mov eax,dword ptr [numb]
- 00D62321 and eax,80000001h
- 00D62326 jns IsEvenMOD+2Dh (0D6232Dh)
- 00D62328 dec eax
- 00D62329 or eax,0FFFFFFFEh
- 00D6232C inc eax
- 00D6232D test eax,eax
- 00D6232F jne IsEvenMOD+3Dh (0D6233Dh)
- 00D62331 mov dword ptr [ebp-0C4h],1
- 00D6233B jmp IsEvenMOD+47h (0D62347h)
- 00D6233D mov dword ptr [ebp-0C4h],0
- 00D62347 mov eax,dword ptr [ebp-0C4h]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement