Function at 0x1400c35c0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rbx, rdx
movaps xmmword [rsp + 0x50], xmm6
mov rdx, rcx
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm8
xorps xmm6, xmm6
xorps xmm8, xmm8
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x38]
sub rcx, qword [rbx + 0x10]
add rcx, rax
cmp byte [rax], 0x2d
mov qword [rsp + 0x20], rcx
jne 0x1400c3621
mov rcx, rbx
call fcn.1400c1a90
mov rdx, qword [rsp + 0xb0]
mov r15b, 1
jmp 0x1400c3624
xor r15b, r15b
mov rcx, qword [rbx + 0x28]
xor r14d, r14d
movsd xmm7, qword [0x140585dd0]
mov esi, r14d
mov qword [rsp + 0x70], r12
mov ebp, r14d
mov byte [rsp + 0xc8], r15b
movsx edi, byte [rcx]
mov qword [rsp + 0x68], r13
mov byte [rsp + 0xb8], sil
cmp dil, 0x30
jne 0x1400c366f
mov rcx, rbx
mov r12d, r14d
call fcn.1400c1a90
xor r13b, r13b
jmp 0x1400c38b2
lea eax, [rdi - 0x31]
cmp al, 8
ja 0x1400c3c59
mov rcx, rbx
call fcn.1400c1a90
mov rax, qword [rbx + 0x28]
lea r12d, [rdi - 0x30]
mov rcx, rax
movzx edi, byte [rax]
test r15b, r15b
je 0x1400c3702
cmp dil, 0x30
jl 0x1400c3767
cmp dil, 0x39
jg 0x1400c3767
movzx edx, dil
nop dword [rax]
mov rcx, rax
cmp r12d, 0xccccccc
jb 0x1400c36cb
jne 0x1400c375c
cmp dl, 0x38
ja 0x1400c375c
mov rcx, rbx
call fcn.1400c1a90
lea ecx, [r12 - 6]
movzx eax, dil
lea ecx, [r12 + rcx*4]
inc ebp
lea r12d, [rax + rcx*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jl 0x1400c3767
mov rax, rcx
movzx edx, dil
cmp dil, 0x39
jle 0x1400c36b0
jmp 0x1400c3767
cmp dil, 0x30
jl 0x1400c3767
cmp dil, 0x39
jg 0x1400c3767
movzx edx, dil
mov rcx, rax
cmp r12d, 0x19999999
jb 0x1400c3725
jne 0x1400c375c
cmp dl, 0x35
ja 0x1400c375c
mov rcx, rbx
call fcn.1400c1a90
lea ecx, [r12 - 6]
movzx eax, dil
lea ecx, [r12 + rcx*4]
inc ebp
lea r12d, [rax + rcx*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jl 0x1400c3767
mov rax, rcx
movzx edx, dil
cmp dil, 0x39
jle 0x1400c3712
jmp 0x1400c3767
mov byte [rsp + 0xb8], 1
mov esi, r12d
xor r13b, r13b
cmp byte [rsp + 0xb8], r13b
je 0x1400c38b2
movzx edi, byte [rcx]
test r15b, r15b
je 0x1400c37fb
cmp dil, 0x30
jl 0x1400c38b2
cmp dil, 0x39
jg 0x1400c38b2
movzx eax, dil
movabs r15, 0xccccccccccccccc
cmp rsi, r15
jb 0x1400c37ad
jne 0x1400c37e6
cmp al, 0x38
ja 0x1400c37e6
mov rcx, rbx
call fcn.1400c1a90
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
inc ebp
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jl 0x1400c38b2
movzx eax, dil
cmp dil, 0x39
jle 0x1400c37a2
jmp 0x1400c38b2
mov rdx, rsi
mov r13b, 1
xorps xmm6, xmm6
test rdx, rdx
js 0x1400c3860
cvtsi2sd xmm6, rdx
jmp 0x1400c3875
cmp dil, 0x30
jl 0x1400c38b2
cmp dil, 0x39
jg 0x1400c38b2
movzx eax, dil
movabs r15, 0x1999999999999999
nop dword [rax]
mov rdx, rsi
cmp rsi, r15
jb 0x1400c382e
jne 0x1400c37e9
cmp al, 0x35
ja 0x1400c37e9
mov rcx, rbx
call fcn.1400c1a90
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
inc ebp
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jl 0x1400c38b2
movzx eax, dil
cmp dil, 0x39
jle 0x1400c3820
jmp 0x1400c38b2
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
cmp byte [rcx], 0x30
jl 0x1400c38b2
movzx edi, byte [rcx]
nop dword [rax]
cmp dil, 0x39
ja 0x1400c38b2
mov rcx, rbx
call fcn.1400c1a90
movzx eax, dil
sub eax, 0x30
mulsd xmm6, xmm7
movd xmm0, eax
mov rax, qword [rbx + 0x28]
cvtdq2pd xmm0, xmm0
movzx edi, byte [rax]
addsd xmm6, xmm0
cmp dil, 0x30
jge 0x1400c3880
mov rax, qword [rbx + 0x28]
mov r15d, r14d
cmp byte [rax], 0x2e
jne 0x1400c39cb
mov rcx, rbx
call fcn.1400c1a90
mov rdx, qword [rbx + 0x28]
movzx edi, byte [rdx]
cmp dil, 0x30
jl 0x1400c3a0c
cmp dil, 0x39
jg 0x1400c3a0c
test r13b, r13b
jne 0x1400c397c
cmp byte [rsp + 0xb8], r14b
jne 0x1400c38fb
mov esi, r12d
mov rax, rdx
movabs r13, 0x1fffffffffffff
nop dword [rax + rax]
mov rdx, rax
cmp dil, 0x39
ja 0x1400c394f
cmp rsi, r13
ja 0x1400c394f
mov rcx, rbx
call fcn.1400c1a90
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
dec r15d
lea rsi, [rcx + rax*2]
test rsi, rsi
je 0x1400c393f
inc ebp
mov rdx, qword [rbx + 0x28]
mov rax, rdx
movzx edi, byte [rdx]
cmp dil, 0x30
jge 0x1400c3910
xorps xmm6, xmm6
test rsi, rsi
js 0x1400c395e
cvtsi2sd xmm6, rsi
jmp 0x1400c3976
mov rax, rsi
mov rcx, rsi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
movzx edi, byte [rdx]
mov r13b, 1
cmp dil, 0x30
jl 0x1400c39cb
movzx edi, byte [rdx]
cmp dil, 0x39
jg 0x1400c39cb
mov rcx, rbx
call fcn.1400c1a90
cmp ebp, 0x11
jge 0x1400c39be
mulsd xmm6, xmm7
dec r15d
movsx eax, dil
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm8
movaps xmm6, xmm0
jbe 0x1400c39be
inc ebp
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x1400c3985
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x65
je 0x1400c39e0
cmp cl, 0x45
jne 0x1400c3b19
mov rcx, rbx
call fcn.1400c1a90
test r13b, r13b
jne 0x1400c3a44
mov rcx, rsi
cmp byte [rsp + 0xb8], r14b
jne 0x1400c39fd
mov ecx, r12d
xorps xmm6, xmm6
test rcx, rcx
js 0x1400c3a2c
cvtsi2sd xmm6, rcx
jmp 0x1400c3a41
sub rdx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xb0]
add rdx, qword [rbx + 0x38]
mov dword [rax + 0x30], 0xe
mov qword [rax + 0x38], rdx
jmp 0x1400c3c6c
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
mov r13b, 1
mov rcx, qword [rbx + 0x28]
xor bpl, bpl
movzx edi, byte [rcx]
cmp dil, 0x2b
jne 0x1400c3a5e
mov rcx, rbx
call fcn.1400c1a90
jmp 0x1400c3a6f
cmp dil, 0x2d
jne 0x1400c3a76
mov rcx, rbx
call fcn.1400c1a90
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x1400c3ba6
mov rcx, rbx
call fcn.1400c1a90
mov rax, qword [rbx + 0x28]
movsx r14d, dil
sub r14d, 0x30
movzx edi, byte [rax]
test bpl, bpl
je 0x1400c3b59
lea ecx, [r15 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov ebp, edx
sar ebp, 2
mov eax, ebp
shr eax, 0x1f
add ebp, eax
cmp dil, 0x30
jl 0x1400c3b16
cmp dil, 0x39
ja 0x1400c3b16
mov rcx, rbx
call fcn.1400c1a90
lea r14d, [r14 + r14*4]
movzx eax, dil
lea r14d, [r14 - 0x18]
lea r14d, [rax + r14*2]
cmp r14d, ebp
jle 0x1400c3b09
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x1400c3b09
cmp cl, 0x39
ja 0x1400c3b09
mov rcx, rbx
call fcn.1400c1a90
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x1400c3af0
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x1400c3ac1
neg r14d
test r13b, r13b
je 0x1400c3be9
lea edx, [r14 + r15]
movaps xmm0, xmm6
call fcn.140021370
comisd xmm0, xmmword [0x140585e48]
jbe 0x1400c3bc6
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x20]
mov dword [rax + 0x30], 0xd
mov qword [rax + 0x38], rcx
jmp 0x1400c3c6c
mov ebp, 0x134
sub ebp, r15d
cmp dil, 0x30
jl 0x1400c3b19
cmp dil, 0x39
jg 0x1400c3b19
nop dword [rax]
mov rcx, rbx
call fcn.1400c1a90
lea r14d, [r14 + r14*4]
movzx eax, dil
lea r14d, [r14 - 0x18]
lea r14d, [rax + r14*2]
cmp r14d, ebp
jg 0x1400c3b3c
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x1400c3b19
movzx edi, cl
cmp cl, 0x39
jle 0x1400c3b70
jmp 0x1400c3b19
sub rcx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xb0]
add rcx, qword [rbx + 0x38]
mov dword [rax + 0x30], 0xf
mov qword [rax + 0x38], rcx
jmp 0x1400c3c6c
cmp byte [rsp + 0xc8], 0
je 0x1400c3bd7
xorps xmm0, xmmword [0x1405861f0]
mov rcx, qword [rsp + 0xc0]
movaps xmm1, xmm0
call fcn.140024bc0
jmp 0x1400c3c3b
cmp byte [rsp + 0xb8], 0
mov rcx, qword [rsp + 0xc0]
je 0x1400c3c1c
cmp byte [rsp + 0xc8], 0
je 0x1400c3c12
neg rsi
mov rdx, rsi
call fcn.140024cb0
jmp 0x1400c3c3b
mov rdx, rsi
call fcn.140024c20
jmp 0x1400c3c3b
cmp byte [rsp + 0xc8], 0
je 0x1400c3c33
neg r12d
mov edx, r12d
call fcn.140024dc0
jmp 0x1400c3c3b
mov edx, r12d
call fcn.140024d60
test al, al
jne 0x1400c3c6c
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x20]
mov dword [rax + 0x30], 0x10
mov qword [rax + 0x38], rcx
jmp 0x1400c3c6c
sub rcx, qword [rbx + 0x10]
add rcx, qword [rbx + 0x38]
mov qword [rdx + 0x38], rcx
mov dword [rdx + 0x30], 3
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x30]
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret