Function at 0x40a530
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40a9ce
push edi
lea edi, [esi + 8]
push ebx
cmp eax, 0x7c
je 0x40a9cc
cmp eax, 0x29
jne 0x40a570
cmp dword [esi + 0x10], 0
jne 0x40a9cc
test dword [esi + 0x50], 0x10000000
je 0x40a9db
jmp 0x40a966
cmp eax, 0x2e
jne 0x40a5da
push 5
lea ecx, [esi + 0x24]
call fcn.0040d370
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a9ad
cmp byte [eax], 0x5c
jne 0x40a5d2
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a5d0
test byte [esi + 0x50], 8
jne 0x40a5af
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a5c5
cmp cl, 0x29
je 0x40a5c5
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a5d0
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a5c5
mov edx, ecx
cmp bl, 0x7d
jne 0x40a5d0
lea eax, [edx + 1]
inc eax
mov dword [esi], eax
jmp 0x40a9ad
mov eax, ecx
inc eax
mov dword [esi], eax
jmp 0x40a9ad
cmp eax, 0x5c
jne 0x40a729
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a62f
cmp byte [eax], 0x5c
jne 0x40a62c
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a62a
test byte [esi + 0x50], 8
jne 0x40a60f
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a625
cmp cl, 0x29
je 0x40a625
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a62a
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a625
mov edx, ecx
cmp bl, 0x7d
jne 0x40a62a
lea eax, [edx + 1]
jmp 0x40a62c
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
test byte [esi + 0x50], 0x80
je 0x40a71d
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x40a6b6
push 4
lea ecx, [esi + 0x24]
call fcn.0040d370
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a6aa
cmp byte [eax], 0x5c
jne 0x40a6a7
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a6a5
test byte [esi + 0x50], 8
jne 0x40a67d
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a693
cmp cl, 0x29
je 0x40a693
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a6a5
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a693
mov edx, ecx
cmp bl, 0x7d
jne 0x40a6a5
lea eax, [edx + 1]
mov ecx, esi
inc eax
mov dword [esi], eax
call fcn.0040da60
jmp 0x40a9be
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
jmp 0x40a9be
cmp al, 0x42
jne 0x40a71d
push 4
lea ecx, [esi + 0x24]
call fcn.0040d370
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a711
cmp byte [eax], 0x5c
jne 0x40a70e
lea ebx, [eax + 1]
cmp ebx, ecx
je 0x40a70e
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a6f8
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x28
je 0x40a70b
cmp dl, 0x29
je 0x40a70b
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a70e
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a70b
cmp dl, 0x7d
jne 0x40a70e
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
jmp 0x40a9be
mov ecx, esi
call fcn.0040aa00
jmp 0x40a9b4
cmp eax, 0x5b
jne 0x40a7db
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a778
cmp byte [eax], 0x5c
jne 0x40a775
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a775
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a75f
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a772
cmp bl, 0x29
je 0x40a772
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a775
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a772
cmp dl, 0x7d
jne 0x40a775
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
lea ecx, [esi + 0x24]
call fcn.00409d90
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40a7a0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040d3e0
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x40a7be
cmp eax, 0x5d
jne 0x40a7be
push eax
lea ecx, [esi + 0x24]
call fcn.00409d20
mov ecx, esi
call fcn.0040d3e0
mov ecx, esi
call fcn.0040b520
cmp dword [esi + 0x4c], 0x5d
jne 0x40a9ed
mov ecx, esi
call fcn.0040d3e0
jmp 0x40a9b4
cmp eax, 0x28
jne 0x40a854
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a826
cmp byte [eax], 0x5c
jne 0x40a823
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a823
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a80d
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a820
cmp bl, 0x29
je 0x40a820
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a823
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a820
cmp dl, 0x7d
jne 0x40a823
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
mov ecx, esi
call fcn.0040dc70
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40a9db
mov ecx, esi
call fcn.0040d3e0
test bl, bl
je 0x40a9be
jmp 0x40a9b4
cmp eax, 0x5e
jne 0x40a8b8
push 2
lea ecx, [esi + 0x24]
call fcn.0040d370
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a8ac
cmp byte [eax], 0x5c
jne 0x40a8a9
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a8a9
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a893
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a8a6
cmp bl, 0x29
je 0x40a8a6
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a8a9
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a8a6
cmp dl, 0x7d
jne 0x40a8a9
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
jmp 0x40a9be
cmp eax, 0x24
jne 0x40a91c
push 3
lea ecx, [esi + 0x24]
call fcn.0040d370
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a910
cmp byte [eax], 0x5c
jne 0x40a90d
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a90d
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a8f7
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a90a
cmp bl, 0x29
je 0x40a90a
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a90d
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a90a
cmp dl, 0x7d
jne 0x40a90d
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040da60
jmp 0x40a9be
cmp eax, 0x2a
je 0x40a9d2
cmp eax, 0x2b
je 0x40a9d2
cmp eax, 0x3f
je 0x40a9d2
cmp eax, 0x7b
je 0x40a9d2
cmp eax, 0x7d
jne 0x40a954
test dword [esi + 0x50], 0x10000000
je 0x40a9e4
jmp 0x40a966
cmp eax, 0x5d
jne 0x40a966
test dword [esi + 0x50], 0x10000000
je 0x40a9ed
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00409b70
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x40a9ad
cmp byte [eax], 0x5c
jne 0x40a9ab
inc eax
cmp eax, ecx
je 0x40a9ab
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a99a
mov dl, byte [eax]
cmp dl, 0x28
je 0x40a9a9
cmp dl, 0x29
je 0x40a9a9
test cl, 0x10
jne 0x40a9ab
mov al, byte [eax]
cmp al, 0x7b
je 0x40a9a9
cmp al, 0x7d
jne 0x40a9ab
inc dword [esi]
inc dword [esi]
mov ecx, esi
call fcn.0040da60
mov ecx, esi
call fcn.0040d440
lea edi, [esi + 8]
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40a546
pop ebx
pop edi
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.0040c6a0
push 5
mov ecx, esi
call fcn.0040c6a0
push 6
mov ecx, esi
call fcn.0040c6a0
push 4
mov ecx, esi
call fcn.0040c6a0
int3