Function at 0x40a860
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40acfe
push edi
lea edi, [esi + 8]
push ebx
cmp eax, 0x7c
je 0x40acfc
cmp eax, 0x29
jne 0x40a8a0
cmp dword [esi + 0x10], 0
jne 0x40acfc
test dword [esi + 0x50], 0x10000000
je 0x40ad0b
jmp 0x40ac96
cmp eax, 0x2e
jne 0x40a90a
push 5
lea ecx, [esi + 0x24]
call fcn.0040d060
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40acdd
cmp byte [eax], 0x5c
jne 0x40a902
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a900
test byte [esi + 0x50], 8
jne 0x40a8df
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a8f5
cmp cl, 0x29
je 0x40a8f5
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a900
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a8f5
mov edx, ecx
cmp bl, 0x7d
jne 0x40a900
lea eax, [edx + 1]
inc eax
mov dword [esi], eax
jmp 0x40acdd
mov eax, ecx
inc eax
mov dword [esi], eax
jmp 0x40acdd
cmp eax, 0x5c
jne 0x40aa59
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a95f
cmp byte [eax], 0x5c
jne 0x40a95c
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a95a
test byte [esi + 0x50], 8
jne 0x40a93f
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a955
cmp cl, 0x29
je 0x40a955
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a95a
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a955
mov edx, ecx
cmp bl, 0x7d
jne 0x40a95a
lea eax, [edx + 1]
jmp 0x40a95c
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
test byte [esi + 0x50], 0x80
je 0x40aa4d
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x40a9e6
push 4
lea ecx, [esi + 0x24]
call fcn.0040d060
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a9da
cmp byte [eax], 0x5c
jne 0x40a9d7
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a9d5
test byte [esi + 0x50], 8
jne 0x40a9ad
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a9c3
cmp cl, 0x29
je 0x40a9c3
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a9d5
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a9c3
mov edx, ecx
cmp bl, 0x7d
jne 0x40a9d5
lea eax, [edx + 1]
mov ecx, esi
inc eax
mov dword [esi], eax
call fcn.0040d600
jmp 0x40acee
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
jmp 0x40acee
cmp al, 0x42
jne 0x40aa4d
push 4
lea ecx, [esi + 0x24]
call fcn.0040d060
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40aa41
cmp byte [eax], 0x5c
jne 0x40aa3e
lea ebx, [eax + 1]
cmp ebx, ecx
je 0x40aa3e
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40aa28
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x28
je 0x40aa3b
cmp dl, 0x29
je 0x40aa3b
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40aa3e
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x7b
je 0x40aa3b
cmp dl, 0x7d
jne 0x40aa3e
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
jmp 0x40acee
mov ecx, esi
call fcn.0040ad30
jmp 0x40ace4
cmp eax, 0x5b
jne 0x40ab0b
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40aaa8
cmp byte [eax], 0x5c
jne 0x40aaa5
lea edx, [eax + 1]
cmp edx, ecx
je 0x40aaa5
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40aa8f
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40aaa2
cmp bl, 0x29
je 0x40aaa2
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40aaa5
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40aaa2
cmp dl, 0x7d
jne 0x40aaa5
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
lea ecx, [esi + 0x24]
call fcn.0040a0c0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40aad0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040d0d0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x40aaee
cmp eax, 0x5d
jne 0x40aaee
push eax
lea ecx, [esi + 0x24]
call fcn.0040a050
mov ecx, esi
call fcn.0040d0d0
mov ecx, esi
call fcn.0040b730
cmp dword [esi + 0x4c], 0x5d
jne 0x40ad1d
mov ecx, esi
call fcn.0040d0d0
jmp 0x40ace4
cmp eax, 0x28
jne 0x40ab84
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40ab56
cmp byte [eax], 0x5c
jne 0x40ab53
lea edx, [eax + 1]
cmp edx, ecx
je 0x40ab53
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40ab3d
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40ab50
cmp bl, 0x29
je 0x40ab50
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40ab53
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40ab50
cmp dl, 0x7d
jne 0x40ab53
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
mov ecx, esi
call fcn.0040d800
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40ad0b
mov ecx, esi
call fcn.0040d0d0
test bl, bl
je 0x40acee
jmp 0x40ace4
cmp eax, 0x5e
jne 0x40abe8
push 2
lea ecx, [esi + 0x24]
call fcn.0040d060
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40abdc
cmp byte [eax], 0x5c
jne 0x40abd9
lea edx, [eax + 1]
cmp edx, ecx
je 0x40abd9
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40abc3
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40abd6
cmp bl, 0x29
je 0x40abd6
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40abd9
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40abd6
cmp dl, 0x7d
jne 0x40abd9
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
jmp 0x40acee
cmp eax, 0x24
jne 0x40ac4c
push 3
lea ecx, [esi + 0x24]
call fcn.0040d060
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40ac40
cmp byte [eax], 0x5c
jne 0x40ac3d
lea edx, [eax + 1]
cmp edx, ecx
je 0x40ac3d
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40ac27
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40ac3a
cmp bl, 0x29
je 0x40ac3a
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40ac3d
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40ac3a
cmp dl, 0x7d
jne 0x40ac3d
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040d600
jmp 0x40acee
cmp eax, 0x2a
je 0x40ad02
cmp eax, 0x2b
je 0x40ad02
cmp eax, 0x3f
je 0x40ad02
cmp eax, 0x7b
je 0x40ad02
cmp eax, 0x7d
jne 0x40ac84
test dword [esi + 0x50], 0x10000000
je 0x40ad14
jmp 0x40ac96
cmp eax, 0x5d
jne 0x40ac96
test dword [esi + 0x50], 0x10000000
je 0x40ad1d
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00409ea0
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x40acdd
cmp byte [eax], 0x5c
jne 0x40acdb
inc eax
cmp eax, ecx
je 0x40acdb
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40acca
mov dl, byte [eax]
cmp dl, 0x28
je 0x40acd9
cmp dl, 0x29
je 0x40acd9
test cl, 0x10
jne 0x40acdb
mov al, byte [eax]
cmp al, 0x7b
je 0x40acd9
cmp al, 0x7d
jne 0x40acdb
inc dword [esi]
inc dword [esi]
mov ecx, esi
call fcn.0040d600
mov ecx, esi
call fcn.0040d130
lea edi, [esi + 8]
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40a876
pop ebx
pop edi
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.0040c550
push 5
mov ecx, esi
call fcn.0040c550
push 6
mov ecx, esi
call fcn.0040c550
push 4
mov ecx, esi
call fcn.0040c550
int3