Created
March 19, 2013 11:57
-
-
Save RC1140/5195514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_f proc near | |
var_10 = dword ptr -10h | |
var_9 = byte ptr -9 | |
input = dword ptr 8 | |
push ebp | |
mov ebp, esp | |
sub esp, 18h | |
jmp short loc_8048410 | |
loc_804840C: | |
add [ebp+input], 4 | |
loc_8048410: | |
call ___ctype_b_loc | |
mov edx, [eax] | |
mov eax, [ebp+input] | |
mov eax, [eax] | |
add eax, eax | |
lea eax, [edx+eax] | |
movzx eax, word ptr [eax] | |
movzx eax, ax | |
126and eax, 2000h | |
test eax, eax | |
jnz short loc_804840C | |
mov eax, [ebp+input] | |
mov eax, [eax] | |
mov [ebp+var_9], al | |
cmp [ebp+var_9], ’+’ | |
jz short loc_8048444 | |
cmp [ebp+var_9], ’-’ | |
jnz short loc_8048448 | |
loc_8048444: | |
add [ebp+input], 4 | |
loc_8048448: | |
mov [ebp+var_10], 0 | |
jmp short loc_8048471 | |
loc_8048451: | |
mov edx, [ebp+var_10] | |
mov eax, edx | |
shl eax, 2 | |
add eax, edx | |
add eax, eax | |
mov edx, eax | |
mov eax, [ebp+input] | |
mov eax, [eax] | |
lea eax, [edx+eax] | |
sub eax, 30h | |
mov [ebp+var_10], eax | |
add [ebp+input], 4 | |
loc_8048471: | |
call ___ctype_b_loc | |
mov edx, [eax] | |
mov eax, [ebp+input] | |
mov eax, [eax] | |
add eax, eax | |
lea eax, [edx+eax] | |
movzx eax, word ptr [eax] | |
movzx eax, ax | |
and eax, 800h | |
test eax, eax | |
jnz short loc_8048451 | |
cmp [ebp+var_9], 2Dh | |
jnz short loc_804849A | |
neg [ebp+var_10] | |
loc_804849A: | |
mov eax, [ebp+var_10] | |
leave | |
retn | |
_f endp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment