can somone please explain me how modulo(best will be step by step) works in assembly. The result of this code is something like:
var = *(_DWORD *)(addrBase + 0x18);
if ( (signed int)var <= 5 || (_DWORD)var == 10 * ((signed int)var / 10) )
cmp     r9d, 5
jle     short loc_62714B
mov     eax, 66666667h
imul    r9d
sar     edx, 2
mov     eax, edx
shr     eax, 1Fh
add     edx, eax
lea     ecx, [rdx+rdx*4]
add     ecx, ecx
cmp     r9d, ecx
jnz     short loc_62718B
And how can i change it to:
if ( (signed int)var <= 5 || (_DWORD)var == 30 * ((signed int)var / 30) )
Thanks!
 
    