Function at 0x40c6a0
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x6c
mov dword [esp + 0x30], eax
mov byte [esp + 0x36], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x35], 1
mov byte [esp + 0x20], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x5f], 0
movzx eax, byte [edi]
cmp al, 0x20
jne 0x40c8ab
nop
lea esi, [esi]
add edi, 1
movzx eax, byte [edi]
cmp al, 9
je 0x40c6f0
cmp al, 0x20
je 0x40c6f0
cmp al, 0x21
mov byte [esp + 0x10], 0
je 0x40c9c1
movzx eax, byte [edi]
cmp al, 0x20
jne 0x40c9d4
add edi, 1
movzx eax, byte [edi]
cmp al, 9
je 0x40c716
cmp al, 0x20
je 0x40c716
cmp al, 0x25
je 0x40c984
cmp al, 0x2e
nop
je 0x40c9f2
xor ebx, ebx
cmp al, 0x2c
mov byte [esp + 0x14], 0
je 0x40c8b8
mov esi, edi
jmp 0x40c753
add esi, 1
movzx eax, byte [esi]
movzx edx, al
test word [edx + edx + 0x4d0620], 0x204
jne 0x40c750
lea edx, [eax - 0x2b]
cmp dl, 3
jbe 0x40c750
cmp al, 0x3d
je 0x40c750
cmp al, 0x40
je 0x40c750
xor ecx, ecx
cmp al, 0x2a
mov ebp, esi
je 0x40c9e1
cmp al, 0x20
jne 0x40c9b4
lea esi, [esi]
add ebp, 1
movzx eax, byte [ebp]
cmp al, 9
je 0x40c790
cmp al, 0x20
je 0x40c790
cmp al, 0x3a
je 0x40c8c5
jle 0x40c97a
cmp al, 0x7c
nop
je 0x40c8c5
cmp al, 0x7d
jne 0x40c955
cmp byte [esp + 0x18], 0
jne 0x40c955
cmp byte [esp + 0x1c], 0
jne 0x40c955
test bl, bl
jne 0x40c955
cmp byte [esp + 0x10], 0
jne 0x40c955
cmp edi, esi
je 0x40c955
cmp byte [esp + 0x14], 0
jne 0x40c955
movzx eax, cl
mov ecx, 0xffffffff
sub esi, edi
test eax, eax
mov dword [esp + 0x14], eax
mov eax, ecx
cmovne eax, esi
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [0x4d70e0]
test eax, eax
jle 0x40c87f
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov ebp, ebx
mov eax, dword [esp + 0x10]
shl ebp, 4
add ebp, dword [0x4d70e4]
mov edi, dword [ebp]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c870
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40c85a
cmp byte [edi + esi], 0
jne 0x40c870
mov edx, dword [esp + 0x18]
mov eax, ebx
call fcn.00401870
test eax, eax
je 0x40c870
mov byte [ebp + 0xe], 1
lea esi, [esi]
add ebx, 1
cmp ebx, dword [0x4d70e0]
jl 0x40c826
mov ebp, dword [esp + 0x1c]
cmp byte [ebp], 0x7d
je 0x40cb9b
lea edi, [ebp + 1]
mov byte [esp + 0x5f], 0
movzx eax, byte [edi]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x34], 1
mov byte [esp + 0x18], 0
cmp al, 0x20
je 0x40c6f0
cmp al, 9
je 0x40c6f0
jmp 0x40c6fe
add edi, 1
mov byte [esp + 0x14], 1
jmp 0x40c745
cmp byte [esp + 0x34], 0
jne 0x40c955
cmp edi, esi
sete byte [esp + 0x18]
test edi, edi
setne dl
and dl, byte [esp + 0x18]
mov byte [esp + 0x18], dl
je 0x40ca04
cmp byte [esp + 0x1c], 0
je 0x40c955
cmp byte [esp + 0x20], 0
jne 0x40c955
cmp al, 0x7c
je 0x40c955
test bl, bl
nop
jne 0x40c955
cmp byte [esp + 0x10], 0
jne 0x40c955
test cl, cl
jne 0x40c955
cmp byte [esp + 0x14], 0
jne 0x40c955
movzx eax, byte [esp + 0x36]
mov byte [esp + 0x35], 0
mov byte [esp + 0x28], 1
xor eax, 1
mov byte [esp + 0x20], al
movzx ecx, byte [ebp]
mov byte [esp + 0x18], 1
cmp cl, 0x3a
je 0x40cb3b
cmp cl, 0x7d
lea edi, [ebp + 1]
je 0x40cd5a
cmp byte [esp + 0x28], 0
je 0x40c6db
mov ebp, edi
movsx eax, byte [ebp]
mov dword [esp + 4], str.braced_spec__qs_is_invalid_at__qc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [0x4d9188]
mov dword [esp], eax
call fcn.004255a0
cmp al, 0x26
je 0x40c7be
jmp 0x40c955
xor ebx, ebx
cmp byte [edi + 1], 0x3a
mov byte [esp + 0x14], 0
jne 0x40c745
lea eax, [edi + 2]
xor esi, esi
lea edx, [esp + 0x5f]
xor edi, edi
call fcn.0040c2f0
xor ecx, ecx
mov ebp, eax
movzx eax, byte [eax]
cmp al, 0x20
je 0x40c790
cmp al, 9
je 0x40c790
jmp 0x40c79f
add edi, 1
movzx eax, byte [edi]
mov byte [esp + 0x10], 1
cmp al, 0x20
je 0x40c716
cmp al, 9
je 0x40c716
jmp 0x40c724
lea ebp, [esi + 1]
movzx eax, byte [esi + 1]
mov ecx, 1
jmp 0x40c781
add edi, 1
mov ebx, 1
mov byte [esp + 0x14], 0
jmp 0x40c745
cmp byte [esp + 0x14], 0
jne 0x40ca13
test bl, bl
je 0x40caaf
test cl, cl
jne 0x40c955
mov byte [esp + 0x35], 0
movzx edx, byte [esp + 0x36]
movzx eax, byte [esp + 0x20]
mov byte [esp + 0x28], 0
xor edx, 1
xor eax, 1
and dl, al
mov byte [esp + 0x37], dl
je 0x40c92a
test edi, edi
je 0x40ceb1
test bl, bl
jne 0x40cac2
cmp byte [esp + 0x14], 0
je 0x40cd64
mov eax, dword [0x4d7084]
test eax, eax
je 0x40cebf
mov edx, dword [eax]
xor ebx, ebx
test edx, edx
je 0x40caa5
cmp byte [edx], 0
je 0x40caa5
mov ecx, esi
sub ecx, edi
lea eax, [edx + 1]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call sub.msvcrt.dll_strncmp
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x40caa5
cmp byte [edx + ecx + 1], 0
sete bl
mov byte [esp + 0x5f], bl
mov byte [esp + 0x18], bl
jmp 0x40cb01
movzx eax, byte [esp + 0x35]
test cl, cl
cmove eax, ebx
mov byte [esp + 0x35], al
jmp 0x40ca20
mov ebx, dword [0x4d708c]
test ebx, ebx
je 0x40cf25
mov ecx, esi
sub ecx, edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x14], ecx
call sub.msvcrt.dll_strncmp
xor edx, edx
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x40caf9
cmp byte [ebx + ecx], 0
sete dl
mov byte [esp + 0x5f], dl
mov byte [esp + 0x18], dl
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x10]
mov byte [esp + 0x28], 0
mov byte [esp + 0x18], 1
cmp cl, al
movzx ecx, byte [ebp]
cmove esi, dword [esp + 0x2c]
cmove edi, dword [esp + 0x24]
setne byte [esp + 0x20]
cmp cl, 0x3a
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
jne 0x40c93c
movzx eax, byte [esp + 0x36]
lea edi, [ebp + 1]
xor ebx, ebx
movzx edx, byte [ebp + 1]
mov ecx, 1
mov ebp, edi
mov esi, 1
xor eax, 1
and al, byte [esp + 0x20]
jmp 0x40cb8d
cmp dl, 0x7d
je 0x40cc00
cmp dl, 0x3b
je 0x40cc50
cmp dl, 0x25
je 0x40cc60
test dl, dl
lea esi, [esi]
je 0x40cef1
movzx edx, byte [ebp + 1]
add ebp, 1
cmp dl, 0x7b
jne 0x40cb60
add ecx, 1
movzx edx, byte [ebp + 1]
jmp 0x40cb8a
mov eax, dword [0x4d70e0]
test eax, eax
jle 0x40cf1a
xor ebx, ebx
jmp 0x40cbb7
add ebx, 1
cmp ebx, dword [0x4d70e0]
jge 0x40cbe0
mov eax, ebx
shl eax, 4
add eax, dword [0x4d70e4]
cmp byte [eax + 0xe], 0
je 0x40cbac
mov byte [eax + 0xe], 0
xor edx, edx
mov eax, ebx
call fcn.0040c1e0
add ebx, 1
cmp ebx, dword [0x4d70e0]
jl 0x40cbb7
movzx ecx, byte [ebp]
mov byte [esp + 0x1c], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x34], 1
mov byte [esp + 0x28], 0
jmp 0x40c93c
sub ecx, 1
jne 0x40cb86
mov esi, 0x7d
movzx edx, byte [ebp - 1]
cmp dl, 0x20
jne 0x40cf0a
mov edx, ebp
sub edx, 1
movzx ecx, byte [edx - 1]
cmp cl, 9
je 0x40cc19
cmp cl, 0x20
je 0x40cc19
test bl, bl
jne 0x40cee6
test al, al
mov ecx, esi
jne 0x40cc78
cmp cl, 0x3b
je 0x40cd25
mov byte [esp + 0x18], 1
jmp 0x40c93c
cmp ecx, 1
jne 0x40cb86
mov esi, 0x3b
jmp 0x40cc0a
movzx edx, byte [ebp + 1]
cmp dl, 0x2a
jne 0x40cb8a
cmp ecx, 1
cmove ebx, esi
jmp 0x40cb8a
sub edx, edi
mov eax, edi
call fcn.004015c0
test bl, bl
mov edi, eax
je 0x40cec6
mov eax, dword [0x4d70e0]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
test eax, eax
jle 0x40cd14
xor ebx, ebx
mov dword [esp + 0x10], ebp
jmp 0x40ccaf
add ebx, 1
cmp ebx, dword [0x4d70e0]
jge 0x40cd10
mov eax, dword [esp + 0x24]
mov ebp, ebx
shl ebp, 4
add ebp, dword [0x4d70e4]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp]
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40cca4
mov edx, esi
mov eax, ebx
call fcn.00401870
test eax, eax
je 0x40cca4
mov ecx, dword [ebp]
xor edx, edx
mov eax, edi
add ecx, esi
call fcn.0040a640
test eax, eax
js 0x40ced7
mov edx, 1
mov eax, ebx
call fcn.0040c1e0
mov dword [0x4d7068], 0
jmp 0x40cca4
mov ebp, dword [esp + 0x10]
mov dword [esp], edi
call sub.msvcrt.dll_free
movzx ecx, byte [ebp]
jmp 0x40cc38
movzx eax, byte [esp + 0x20]
lea edi, [ebp + 1]
or byte [esp + 0x36], al
mov byte [esp + 0x1c], 1
mov byte [esp + 0x35], 1
mov byte [esp + 0x20], 0
mov byte [esp + 0x18], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jmp 0x40c948
mov eax, edi
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, cl
mov ebx, 0xffffffff
mov ecx, eax
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, edi
test ecx, ecx
mov ecx, ebx
mov ebx, dword [0x4d70e4]
cmovne ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [0x4d70e0]
mov dword [esp + 0x20], eax
sub eax, 1
mov dword [esp + 0x40], eax
lea eax, [edi + 1]
mov dword [esp + 0x14], 0
test ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
jg 0x40cdca
jmp 0x40cea3
add dword [esp + 0x14], 1
add ebx, 0x10
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x14], eax
je 0x40cea3
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 0x48], edx
call sub.msvcrt.dll_strncmp
mov edx, dword [esp + 0x48]
test eax, eax
jne 0x40ce13
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40cdfe
mov eax, dword [esp + 0x20]
cmp byte [edx + eax], 0
jne 0x40ce13
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
call fcn.00401870
test eax, eax
jne 0x40ce9a
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40cdb4
mov edx, dword [ebx]
movzx eax, byte [edx]
cmp al, 0x55
je 0x40ce27
cmp al, 0x44
jne 0x40cdb4
cmp al, byte [edi]
jne 0x40cdb4
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx]
mov dword [esp + 0x4c], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
test eax, eax
jne 0x40cdb4
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40ce84
cmp byte [edx + 1], 0
jne 0x40cdb4
mov eax, dword [esp + 0x20]
mov edx, 0xffffffff
cmp byte [ecx + eax - 1], 0
je 0x40ce89
jmp 0x40cdb4
mov edx, 1
mov eax, dword [esp + 0x14]
call fcn.00401870
test eax, eax
je 0x40cdb4
movzx eax, byte [esp + 0x37]
mov byte [esp + 0x18], al
movzx eax, byte [esp + 0x18]
mov byte [esp + 0x5f], al
jmp 0x40cb01
movzx eax, byte [esp + 0x5f]
mov byte [esp + 0x18], al
jmp 0x40cb01
xor ebx, ebx
jmp 0x40caa5
xor ecx, ecx
xor edx, edx
call fcn.0040a640
test eax, eax
jns 0x40cd14
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x40cd5c
cmp byte [esp + 0x35], 1
je 0x40cc32
mov eax, dword [0x4d9188]
mov dword [esp + 8], edi
mov dword [esp + 4], str.braced_spec_body__qs_is_invalid
mov dword [esp], eax
call fcn.004255a0
cmp dl, 9
je 0x40cc17
mov edx, ebp
jmp 0x40cc2a
lea eax, [ebp + 1]
lea esi, [esi]
jmp 0x40cd5c
xor edx, edx
jmp 0x40caf9