Function at 0x40c1e0
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
mov edx, eax
push esi
push ebx
mov edi, 0x24000f
sub esp, 0x6c
mov dword [esp + 0x34], eax
mov byte [esp + 0x33], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x32], 1
mov byte [esp + 0x24], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x31], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x5f], 0
movzx eax, byte [edx]
cmp al, 0x20
jne 0x40c23a
lea esi, [esi]
add edx, 1
movzx eax, byte [edx]
cmp al, 0x20
je 0x40c230
cmp al, 9
je 0x40c230
cmp al, 0x21
jne 0x40c640
lea eax, [edx + 1]
mov esi, eax
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 1]
cmp al, 9
je 0x40c45e
cmp al, 0x20
jne 0x40ca7b
mov edx, esi
add edx, 1
movzx eax, byte [edx]
cmp al, 0x20
je 0x40c265
cmp al, 9
je 0x40c265
mov dword [esp + 0x10], edx
mov byte [esp + 0x18], 1
cmp al, 0x25
je 0x40c524
cmp al, 0x2e
je 0x40c56b
cmp al, 0x2c
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 0
jne 0x40c2a4
add dword [esp + 0x10], 1
mov byte [esp + 0x14], 1
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
test word [eax + eax + 0x4bdf60], 0x204
lea ecx, [eax - 0x2b]
mov edx, eax
mov eax, 1
sete bl
cmp cl, 0x15
ja 0x40c2d4
mov eax, edi
shr eax, cl
and eax, 1
xor eax, 1
and eax, 1
test bl, bl
mov ebx, dword [esp + 0x10]
jne 0x40c317
lea esi, [esi]
add ebx, 1
movzx eax, byte [ebx]
test word [eax + eax + 0x4bdf60], 0x204
mov edx, eax
lea ecx, [edx - 0x2b]
sete al
cmp cl, 0x15
mov esi, eax
mov eax, 1
ja 0x40c311
mov eax, edi
shr eax, cl
and eax, 1
xor eax, 1
and eax, 1
mov ecx, esi
test cl, cl
je 0x40c2e0
test al, al
je 0x40c2e0
cmp dl, 0x2a
mov ebp, ebx
mov byte [esp + 0x22], 0
je 0x40c55e
movzx eax, byte [ebp]
cmp al, 9
je 0x40c340
cmp al, 0x20
jne 0x40c34f
mov esi, esi
lea edi, [edi]
add ebp, 1
movzx eax, byte [ebp]
cmp al, 0x20
je 0x40c340
cmp al, 9
je 0x40c340
cmp al, 0x3a
je 0x40c494
jle 0x40c467
cmp al, 0x7c
je 0x40c494
cmp al, 0x7d
jne 0x40c46f
cmp byte [esp + 0x23], 0
jne 0x40c46f
cmp byte [esp + 0x30], 0
jne 0x40c46f
cmp byte [esp + 0x1c], 0
jne 0x40c46f
cmp byte [esp + 0x18], 0
jne 0x40c46f
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40c46f
cmp byte [esp + 0x14], 0
jne 0x40c46f
sub ebx, esi
cmp byte [esp + 0x22], 0
mov eax, 0xffffffff
mov dword [esp + 0x14], ebx
cmovne eax, ebx
mov ebx, dword [0x4c60dc]
mov dword [esp + 0x18], eax
test ebx, ebx
jle 0x40c833
xor ebx, ebx
mov dword [esp + 0x1c], ebp
nop
lea esi, [esi]
mov esi, ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
shl esi, 4
add esi, dword [0x4c60e0]
mov ebp, dword [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebp
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c42e
cmp byte [esp + 0x22], 0
jne 0x40c41b
mov eax, dword [esp + 0x14]
cmp byte [ebp + eax], 0
jne 0x40c42e
mov edx, dword [esp + 0x18]
mov eax, ebx
call fcn.00401590
test eax, eax
je 0x40c42e
mov byte [esi + 0xe], 1
add ebx, 1
cmp dword [0x4c60dc], ebx
jg 0x40c3e0
mov ebp, dword [esp + 0x1c]
cmp byte [ebp], 0x7d
je 0x40c7d0
lea edx, [ebp + 1]
mov byte [esp + 0x30], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x31], 1
jmp 0x40c220
mov edx, dword [esp + 0x10]
jmp 0x40c265
cmp al, 0x26
je 0x40c36d
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 + 0x34]
mov dword [esp + 8], eax
mov eax, dword [0x4c7b9c]
mov dword [esp], eax
call fcn.00422700
cmp byte [esp + 0x31], 0
jne 0x40c46f
mov esi, dword [esp + 0x10]
test esi, esi
setne cl
cmp esi, ebx
sete dl
and cl, dl
mov byte [esp + 0x23], cl
je 0x40c57f
cmp al, 0x7c
je 0x40c46f
movzx ebx, byte [esp + 0x30]
cmp byte [esp + 0x24], bl
jae 0x40c46f
cmp byte [esp + 0x1c], 0
jne 0x40c46f
cmp byte [esp + 0x18], 0
jne 0x40c46f
cmp byte [esp + 0x14], 0
jne 0x40c46f
cmp byte [esp + 0x22], 0
jne 0x40c46f
movzx eax, byte [esp + 0x33]
mov byte [esp + 0x32], 0
mov byte [esp + 0x38], 1
xor eax, 1
mov byte [esp + 0x24], al
movzx ecx, byte [ebp]
cmp cl, 0x3a
je 0x40c6df
cmp cl, 0x7d
lea edx, [ebp + 1]
je 0x40c8fc
cmp byte [esp + 0x38], 0
jne 0x40ca9d
mov byte [esp + 0x23], 1
jmp 0x40c220
mov eax, dword [esp + 0x10]
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 0
cmp byte [eax + 1], 0x3a
jne 0x40c2a4
lea edx, [esp + 0x5f]
add eax, 2
xor ebx, ebx
call fcn.0040be20
mov byte [esp + 0x22], 0
mov ebp, eax
mov dword [esp + 0x10], 0
jmp 0x40c32b
lea ebp, [ebx + 1]
mov byte [esp + 0x22], 1
jmp 0x40c32b
add dword [esp + 0x10], 1
mov byte [esp + 0x14], 0
mov byte [esp + 0x1c], 1
jmp 0x40c2a4
cmp byte [esp + 0x1c], 0
jne 0x40c651
cmp byte [esp + 0x14], 0
jne 0x40c651
movzx eax, byte [esp + 0x32]
cmp byte [esp + 0x22], 0
movzx esi, byte [esp + 0x14]
cmove eax, esi
mov byte [esp + 0x32], al
movzx eax, byte [esp + 0x33]
mov byte [esp + 0x38], 0
xor eax, 1
cmp al, byte [esp + 0x24]
jbe 0x40c4f6
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40c906
cmp byte [esp + 0x1c], 0
jne 0x40c666
cmp byte [esp + 0x14], 0
je 0x40c914
mov eax, dword [0x4c6084]
test eax, eax
je 0x40c69d
mov edx, dword [eax]
test edx, edx
je 0x40c69d
cmp byte [edx], 0
je 0x40c69d
mov eax, dword [esp + 0x10]
mov esi, ebx
mov dword [esp + 0x14], edx
sub esi, eax
mov dword [esp + 4], eax
lea eax, [edx + 1]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c69d
mov edx, dword [esp + 0x14]
cmp byte [edx + esi + 1], 0
sete byte [esp + 0x23]
jmp 0x40c69d
movzx eax, byte [edx]
mov dword [esp + 0x10], edx
mov byte [esp + 0x18], 0
jmp 0x40c27c
cmp byte [esp + 0x22], 0
jne 0x40c46f
mov byte [esp + 0x32], 0
jmp 0x40c5ab
mov edx, dword [0x4c6088]
test edx, edx
je 0x40c69d
mov eax, dword [esp + 0x10]
mov esi, ebx
mov dword [esp], edx
mov dword [esp + 0x14], edx
sub esi, eax
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c69d
mov edx, dword [esp + 0x14]
cmp byte [edx + esi], 0
sete byte [esp + 0x23]
movzx eax, byte [esp + 0x23]
mov byte [esp + 0x5f], al
movzx eax, byte [esp + 0x18]
movzx edx, byte [esp + 0x23]
movzx ecx, byte [ebp]
mov byte [esp + 0x38], 0
cmp al, dl
mov eax, dword [esp + 0x28]
cmove ebx, dword [esp + 0x2c]
cmovne eax, dword [esp + 0x10]
setne byte [esp + 0x24]
cmp cl, 0x3a
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
jne 0x40c503
lea esi, [ebp + 1]
movzx ecx, byte [ebp + 1]
xor ebx, ebx
mov eax, 1
mov ebp, esi
jmp 0x40c717
cmp cl, 0x7d
je 0x40c725
cmp cl, 0x3b
je 0x40c7a1
cmp cl, 0x25
je 0x40c7b0
test cl, cl
je 0x40ca62
movzx ecx, byte [ebp + 1]
add ebp, 1
cmp cl, 0x7b
jne 0x40c6f1
add eax, 1
movzx ecx, byte [ebp + 1]
jmp 0x40c714
sub eax, 1
jne 0x40c710
movzx eax, byte [ebp - 1]
cmp al, 9
je 0x40c73a
cmp al, 0x20
jne 0x40caad
mov edx, ebp
sub edx, 1
movzx eax, byte [edx - 1]
cmp al, 0x20
je 0x40c73c
cmp al, 9
je 0x40c73c
mov dword [esp + 0x10], edx
cmp byte [esp + 0x32], bl
jb 0x40ca62
movzx edx, byte [esp + 0x33]
cmp byte [esp + 0x24], dl
ja 0x40c845
cmp cl, 0x3b
jne 0x40c503
movzx eax, byte [esp + 0x24]
lea edx, [ebp + 1]
mov byte [esp + 0x30], 1
or byte [esp + 0x33], al
mov byte [esp + 0x32], 1
mov byte [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
jmp 0x40c50f
cmp eax, 1
jne 0x40c710
jmp 0x40c72a
cmp eax, 1
movzx ecx, byte [ebp + 1]
jne 0x40c714
cmp cl, 0x2a
jne 0x40c714
mov ebx, 1
jmp 0x40c714
mov ecx, dword [0x4c60dc]
test ecx, ecx
jle 0x40c83d
xor ebx, ebx
jmp 0x40c7e9
add ebx, 1
cmp dword [0x4c60dc], ebx
jle 0x40c812
mov eax, ebx
shl eax, 4
add eax, dword [0x4c60e0]
cmp byte [eax + 0xe], 0
je 0x40c7de
mov byte [eax + 0xe], 0
xor edx, edx
mov eax, ebx
call fcn.0040bd10
add ebx, 1
cmp dword [0x4c60dc], ebx
jg 0x40c7e9
cmp byte [ebp], 0x7d
lea edx, [ebp + 1]
je 0x40c8fc
mov byte [esp + 0x30], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x31], 1
jmp 0x40c220
cmp byte [ebp], 0x7d
jne 0x40c447
lea eax, [ebp + 1]
jmp 0x40c8fe
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
call fcn.00401550
test bl, bl
mov dword [esp + 0x10], eax
je 0x40ca85
mov eax, dword [0x4c60dc]
mov esi, dword [esp + 0x2c]
xor ebx, ebx
sub esi, dword [esp + 0x28]
test eax, eax
jle 0x40c8f3
mov dword [esp + 0x14], ebp
jmp 0x40c88b
add ebx, 1
cmp dword [0x4c60dc], ebx
jle 0x40c8ef
mov ecx, ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 8], esi
shl ecx, 4
add ecx, dword [0x4c60e0]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov ebp, ecx
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c880
mov edx, esi
mov eax, ebx
call fcn.00401590
test eax, eax
je 0x40c880
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
xor edx, edx
add ecx, esi
call fcn.0040a1e0
test eax, eax
js 0x40ca96
mov edx, 1
mov eax, ebx
call fcn.0040bd10
mov dword [0x4c6068], 0
jmp 0x40c880
mov ebp, dword [esp + 0x14]
movzx ecx, byte [ebp]
jmp 0x40c768
mov eax, edx
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esp + 0x5f]
mov byte [esp + 0x23], al
jmp 0x40c6a6
movzx edx, byte [esp + 0x22]
mov ecx, dword [esp + 0x10]
mov esi, ebx
mov eax, 0xffffffff
sub esi, ecx
test dl, dl
cmovne eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [0x4c60dc]
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x40c69d
cmp dl, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
sbb eax, eax
or eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [0x4c60e0]
mov edx, eax
lea eax, [esi - 1]
mov ebx, edx
mov dword [esp + 0x44], eax
mov eax, ecx
add eax, 1
mov dword [esp + 0x48], eax
jmp 0x40c98d
cmp al, 0x55
je 0x40c9e5
add dword [esp + 0x14], 1
add ebx, 0x10
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x3c]
je 0x40caa4
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x38], edx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c9d1
cmp byte [esp + 0x22], 0
jne 0x40c9bc
mov edx, dword [esp + 0x38]
cmp byte [edx + esi], 0
jne 0x40c9d1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
call fcn.00401590
test eax, eax
jne 0x40ca54
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x38], eax
je 0x40c977
mov edx, dword [ebx]
movzx eax, byte [edx]
cmp al, 0x44
jne 0x40c973
mov ecx, dword [esp + 0x10]
cmp al, byte [ecx]
jne 0x40c977
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c977
cmp byte [esp + 0x22], 0
jne 0x40ca3f
mov edx, dword [esp + 0x4c]
cmp byte [edx + 1], 0
jne 0x40c977
mov ecx, dword [esp + 0x38]
cmp byte [ecx + esi - 1], 0
jne 0x40c977
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
call fcn.00401590
test eax, eax
je 0x40c977
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x23], 1
jmp 0x40c69d
mov eax, dword [0x4c7b9c]
mov dword [esp + 8], esi
mov dword [esp + 4], str.braced_spec_body__qs_is_invalid
mov dword [esp], eax
call fcn.00422700
mov byte [esp + 0x18], 1
jmp 0x40c27c
xor ecx, ecx
xor edx, edx
call fcn.0040a1e0
test eax, eax
jns 0x40c8f3
xor eax, eax
jmp 0x40c8fe
mov ebp, edx
jmp 0x40c46f
mov ebx, dword [esp + 0x1c]
jmp 0x40c69d
mov dword [esp + 0x10], ebp
jmp 0x40c74f