Function at 0x40a030
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40a4ce
push edi
lea edi, [esi + 8]
push ebx
cmp eax, 0x7c
je 0x40a4cc
cmp eax, 0x29
jne 0x40a070
cmp dword [esi + 0x10], 0
jne 0x40a4cc
test dword [esi + 0x50], 0x10000000
je 0x40a4db
jmp 0x40a466
cmp eax, 0x2e
jne 0x40a0da
push 5
lea ecx, [esi + 0x24]
call fcn.0040c0c0
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a4ad
cmp byte [eax], 0x5c
jne 0x40a0d2
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a0d0
test byte [esi + 0x50], 8
jne 0x40a0af
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a0c5
cmp cl, 0x29
je 0x40a0c5
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a0d0
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a0c5
mov edx, ecx
cmp bl, 0x7d
jne 0x40a0d0
lea eax, [edx + 1]
inc eax
mov dword [esi], eax
jmp 0x40a4ad
mov eax, ecx
inc eax
mov dword [esi], eax
jmp 0x40a4ad
cmp eax, 0x5c
jne 0x40a229
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a12f
cmp byte [eax], 0x5c
jne 0x40a12c
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a12a
test byte [esi + 0x50], 8
jne 0x40a10f
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a125
cmp cl, 0x29
je 0x40a125
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a12a
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a125
mov edx, ecx
cmp bl, 0x7d
jne 0x40a12a
lea eax, [edx + 1]
jmp 0x40a12c
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
test byte [esi + 0x50], 0x80
je 0x40a21d
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x40a1b6
push 4
lea ecx, [esi + 0x24]
call fcn.0040c0c0
mov eax, dword [esi]
mov edx, dword [edi]
cmp eax, edx
je 0x40a1aa
cmp byte [eax], 0x5c
jne 0x40a1a7
lea ebx, [eax + 1]
mov ecx, eax
cmp ebx, edx
je 0x40a1a5
test byte [esi + 0x50], 8
jne 0x40a17d
mov cl, byte [ebx]
mov edx, eax
cmp cl, 0x28
je 0x40a193
cmp cl, 0x29
je 0x40a193
mov ecx, eax
test byte [esi + 0x50], 0x10
jne 0x40a1a5
mov bl, byte [ebx]
mov edx, eax
cmp bl, 0x7b
je 0x40a193
mov edx, ecx
cmp bl, 0x7d
jne 0x40a1a5
lea eax, [edx + 1]
mov ecx, esi
inc eax
mov dword [esi], eax
call fcn.0040c360
jmp 0x40a4be
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
jmp 0x40a4be
cmp al, 0x42
jne 0x40a21d
push 4
lea ecx, [esi + 0x24]
call fcn.0040c0c0
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a211
cmp byte [eax], 0x5c
jne 0x40a20e
lea ebx, [eax + 1]
cmp ebx, ecx
je 0x40a20e
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a1f8
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x28
je 0x40a20b
cmp dl, 0x29
je 0x40a20b
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a20e
mov dl, byte [ebx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a20b
cmp dl, 0x7d
jne 0x40a20e
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
jmp 0x40a4be
mov ecx, esi
call fcn.0040a5f0
jmp 0x40a4b4
cmp eax, 0x5b
jne 0x40a2db
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a278
cmp byte [eax], 0x5c
jne 0x40a275
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a275
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a25f
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a272
cmp bl, 0x29
je 0x40a272
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a275
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a272
cmp dl, 0x7d
jne 0x40a275
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
lea ecx, [esi + 0x24]
call fcn.00409890
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40a2a0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040c130
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x40a2be
cmp eax, 0x5d
jne 0x40a2be
push eax
lea ecx, [esi + 0x24]
call fcn.00409820
mov ecx, esi
call fcn.0040c130
mov ecx, esi
call fcn.0040b020
cmp dword [esi + 0x4c], 0x5d
jne 0x40a4ed
mov ecx, esi
call fcn.0040c130
jmp 0x40a4b4
cmp eax, 0x28
jne 0x40a354
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a326
cmp byte [eax], 0x5c
jne 0x40a323
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a323
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a30d
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a320
cmp bl, 0x29
je 0x40a320
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a323
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a320
cmp dl, 0x7d
jne 0x40a323
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
mov ecx, esi
call fcn.0040c560
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40a4db
mov ecx, esi
call fcn.0040c130
test bl, bl
je 0x40a4be
jmp 0x40a4b4
cmp eax, 0x5e
jne 0x40a3b8
push 2
lea ecx, [esi + 0x24]
call fcn.0040c0c0
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a3ac
cmp byte [eax], 0x5c
jne 0x40a3a9
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a3a9
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a393
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a3a6
cmp bl, 0x29
je 0x40a3a6
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a3a9
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a3a6
cmp dl, 0x7d
jne 0x40a3a9
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
jmp 0x40a4be
cmp eax, 0x24
jne 0x40a41c
push 3
lea ecx, [esi + 0x24]
call fcn.0040c0c0
mov eax, dword [esi]
lea edi, [esi + 8]
mov ecx, dword [edi]
cmp eax, ecx
je 0x40a410
cmp byte [eax], 0x5c
jne 0x40a40d
lea edx, [eax + 1]
cmp edx, ecx
je 0x40a40d
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a3f7
mov bl, byte [edx]
mov ecx, eax
cmp bl, 0x28
je 0x40a40a
cmp bl, 0x29
je 0x40a40a
mov ecx, dword [esi + 0x50]
test cl, 0x10
jne 0x40a40d
mov dl, byte [edx]
mov ecx, eax
cmp dl, 0x7b
je 0x40a40a
cmp dl, 0x7d
jne 0x40a40d
lea eax, [ecx + 1]
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040c360
jmp 0x40a4be
cmp eax, 0x2a
je 0x40a4d2
cmp eax, 0x2b
je 0x40a4d2
cmp eax, 0x3f
je 0x40a4d2
cmp eax, 0x7b
je 0x40a4d2
cmp eax, 0x7d
jne 0x40a454
test dword [esi + 0x50], 0x10000000
je 0x40a4e4
jmp 0x40a466
cmp eax, 0x5d
jne 0x40a466
test dword [esi + 0x50], 0x10000000
je 0x40a4ed
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00409670
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x40a4ad
cmp byte [eax], 0x5c
jne 0x40a4ab
inc eax
cmp eax, ecx
je 0x40a4ab
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x40a49a
mov dl, byte [eax]
cmp dl, 0x28
je 0x40a4a9
cmp dl, 0x29
je 0x40a4a9
test cl, 0x10
jne 0x40a4ab
mov al, byte [eax]
cmp al, 0x7b
je 0x40a4a9
cmp al, 0x7d
jne 0x40a4ab
inc dword [esi]
inc dword [esi]
mov ecx, esi
call fcn.0040c360
mov ecx, esi
call fcn.0040c190
lea edi, [esi + 8]
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40a046
pop ebx
pop edi
mov al, cl
pop esi
ret
push 0xa
mov ecx, esi
call fcn.0040b830
push 5
mov ecx, esi
call fcn.0040b830
push 6
mov ecx, esi
call fcn.0040b830
push 4
mov ecx, esi
call fcn.0040b830
int3