Function at 0x496110
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [edx]
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x70]
mov dword [esp + 0x38], edx
mov byte [esp + 0x2a], al
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], ecx
mov dword [eax], 0
call sym.zsh.exe_mb_charinit
movzx eax, byte [esi]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
test al, al
je 0x496220
movzx ecx, byte [esp + 0x2a]
test cl, cl
je 0x496212
cmp cl, al
je 0x496220
mov dword [esp], 0xc
call sym.zsh.exe_hcalloc
mov dword [eax], 0
mov ebp, eax
movzx eax, byte [esi]
mov edx, eax
and edx, 0xffffffdf
cmp dl, 0x5b
je 0x4962a0
cmp al, 0x3f
je 0x496488
jg 0x496288
cmp al, 0x2a
jg 0x496240
cmp al, 0x27
jg 0x496248
lea eax, [esp + 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.zsh.exe_mb_metacharlenconv
mov edx, dword [esp + 0x4c]
mov ecx, eax
cmp edx, 0xffffffff
je 0x4964a0
mov dword [ebp + 4], 4
add esi, ecx
mov dword [ebp + 8], edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49633d
mov eax, dword [esp + 0x20]
mov dword [eax], ebp
movzx eax, byte [esi]
add dword [esp + 0x24], 1
test al, al
je 0x496220
movzx ecx, byte [esp + 0x2a]
mov dword [esp + 0x20], ebp
test cl, cl
jne 0x49616d
test byte [eax + eax + sym.zsh.exe_typtab], 8
je 0x496175
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov dword [eax], esi
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp al, 0x3d
jne 0x4961b8
mov eax, dword [esp + 0x74]
mov dword [eax], 1
movsx eax, byte [esi]
mov dword [esp + 4], str.invalid_pattern_character___c
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.zsh.exe_zwarnnam
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp al, 0x5c
jne 0x4961b8
cmp byte [esi + 1], 1
sbb esi, 0xffffffff
jmp 0x4961b8
lea ebx, [esi + 1]
mov edx, 2
mov edi, 0x7d
cmp al, 0x5b
je 0x4964b8
mov dword [ebp + 4], edx
mov eax, ebx
lea esi, [esi]
cmp byte [eax], 0
je 0x496450
add eax, 1
cmp eax, ebx
je 0x4962c0
movsx edx, byte [eax]
cmp edx, edi
jne 0x4962c0
sub eax, ebx
add eax, 1
mov dword [esp], eax
call sym.zsh.exe_zhalloc
mov dword [esp + 0x34], ebp
mov dword [ebp + 8], eax
movzx edx, byte [ebx]
mov esi, eax
cmp dl, 0x5b
je 0x496350
cmp dl, 0x83
je 0x496398
movzx ecx, byte [ebx + 1]
lea eax, [ebx + 1]
cmp cl, 0x2d
je 0x4963c0
mov byte [esi], dl
mov ebx, eax
add esi, 1
movsx eax, byte [ebx]
mov edx, eax
cmp edi, eax
jne 0x4962f0
mov byte [esi], 0
cmp byte [ebx], 0
mov ebp, dword [esp + 0x34]
je 0x496450
mov eax, dword [esp + 0x1c]
lea esi, [ebx + 1]
test eax, eax
jne 0x4961ef
mov dword [esp + 0x1c], ebp
jmp 0x4961f5
movzx ecx, byte [ebx + 1]
cmp cl, 0x3a
jne 0x496302
lea ecx, [ebx + 2]
mov dword [esp + 4], 0x3a
mov dword [esp], ecx
mov byte [esp + 0x2b], dl
mov dword [esp + 0x30], ecx
call sub.cygwin1.dll_strchr
movzx edx, byte [esp + 0x2b]
test eax, eax
mov ebp, eax
je 0x49638d
cmp byte [eax + 1], 0x5d
mov ecx, dword [esp + 0x30]
je 0x496520
lea eax, [ebx + 1]
jmp 0x49630e
cmp byte [ebx + 2], 0x2d
lea eax, [ebx + 2]
je 0x496400
mov byte [esi], 0x83
movzx edx, byte [ebx + 1]
add esi, 2
mov ebx, eax
xor edx, 0x20
mov byte [esi - 1], dl
jmp 0x496315
movsx ecx, byte [ebx + 2]
test cl, cl
je 0x49630e
cmp edi, ecx
je 0x4964f0
mov byte [esi], 0x98
movzx eax, byte [ebx]
mov ecx, ebx
cmp al, 0x83
je 0x496419
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
lea edx, [esi + 2]
cmp al, 0x83
je 0x496432
mov byte [edx], al
lea ebx, [ecx + 3]
lea esi, [edx + 1]
jmp 0x496315
movsx edx, byte [ebx + 3]
test dl, dl
je 0x4963a1
lea ecx, [ebx + 1]
cmp edi, edx
je 0x4963a1
mov byte [esi], 0x98
movzx eax, byte [ebx]
cmp al, 0x83
jne 0x4963e0
mov byte [esi + 1], 0x83
movzx eax, byte [ebx + 1]
lea edx, [esi + 3]
xor eax, 0x20
mov byte [esi + 2], al
movzx eax, byte [ecx + 2]
cmp al, 0x83
jne 0x4963ee
mov byte [edx], 0x83
movzx eax, byte [ecx + 3]
lea ebx, [ecx + 4]
lea esi, [edx + 2]
mov byte [edx + 1], al
jmp 0x496315
mov eax, dword [esp + 0x74]
mov dword [eax], 1
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], str.unterminated_character_class
mov dword [esp], eax
call sym.zsh.exe_zwarnnam
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 4], 3
add esi, 1
jmp 0x4961e3
movsx edx, byte [esi]
cmp dl, 0x83
je 0x496500
mov dword [esp + 0x4c], edx
jmp 0x4961d7
movzx eax, byte [esi + 1]
cmp al, 0x21
je 0x4964cf
xor edx, edx
mov edi, 0x5d
cmp al, 0x5e
jne 0x4962b5
cmp byte [esi + 2], 0x5d
je 0x496513
lea ebx, [esi + 2]
mov edx, 1
mov edi, 0x5d
jmp 0x4962b5
cmp dl, 0x83
jne 0x49630e
jmp 0x4963a1
movzx edx, byte [esi + 1]
xor edx, 0x20
movsx edx, dl
mov dword [esp + 0x4c], edx
jmp 0x4961d7
xor edx, edx
mov edi, 0x5d
jmp 0x4962b5
sub eax, ecx
mov dword [esp], ecx
lea ebx, [ebp + 2]
mov dword [esp + 4], eax
call sym.zsh.exe_range_type
cmp eax, 0x14
je 0x496315
sub eax, 0x7d
add esi, 1
mov byte [esi - 1], al
jmp 0x496315