Function at 0x1400672e0
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 r12
push r13
push r15
sub rsp, 0x80
mov rbx, rdx
movaps xmmword [rsp + 0x60], xmm6
mov rdx, rcx
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], 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 + 0x30], rcx
jne 0x140067346
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rsp + 0xc0]
mov r13b, 1
jmp 0x140067349
xor r13b, r13b
mov rcx, qword [rbx + 0x28]
xor r15d, r15d
movsd xmm7, qword [0x140171158]
xor r12b, r12b
mov byte [rsp + 0xd8], r13b
mov edi, r15d
mov qword [rsp + 0x78], r14
mov ebp, r15d
movsx esi, byte [rcx]
mov byte [rsp + 0xc8], r12b
cmp sil, 0x30
jne 0x14006739d
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.140065100
mov rdx, qword [rbx + 0x28]
mov r14d, r15d
mov qword [rsp + 0x28], r15
jmp 0x140067558
lea eax, [rsi - 0x31]
cmp al, 8
ja 0x140067a0c
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rbx + 0x28]
lea r14d, [rsi - 0x30]
movzx esi, byte [rdx]
test r13b, r13b
je 0x140067414
cmp sil, 0x30
jl 0x140067466
nop word [rax + rax]
cmp sil, 0x39
ja 0x140067466
cmp r14d, 0xccccccc
jb 0x1400673eb
jne 0x140067460
cmp sil, 0x38
ja 0x140067460
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rbx + 0x28]
lea r14d, [r14 + r14*4]
movzx eax, sil
lea r14d, [r14 - 0x18]
inc ebp
movzx esi, byte [rdx]
lea r14d, [rax + r14*2]
cmp sil, 0x30
jge 0x1400673d0
jmp 0x140067466
cmp sil, 0x30
jl 0x140067466
nop word [rax + rax]
cmp sil, 0x39
ja 0x140067466
cmp r14d, 0x19999999
jb 0x140067437
jne 0x140067460
cmp sil, 0x35
ja 0x140067460
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rbx + 0x28]
lea r14d, [r14 + r14*4]
movzx eax, sil
lea r14d, [r14 - 0x18]
inc ebp
movzx esi, byte [rdx]
lea r14d, [rax + r14*2]
cmp sil, 0x30
jge 0x140067420
jmp 0x140067466
mov r12b, 1
mov edi, r14d
movzx ecx, r12b
mov dword [rsp + 0x20], r14d
xor r12b, r12b
mov byte [rsp + 0xc8], cl
test cl, cl
je 0x140067504
mov rax, qword [rbx + 0x28]
mov dword [rsp + 0x20], r14d
mov rdx, rax
mov byte [rsp + 0xc8], cl
movzx esi, byte [rax]
test r13b, r13b
je 0x140067648
cmp sil, 0x30
jl 0x140067504
mov dword [rsp + 0x20], r14d
movabs r13, 0xccccccccccccccc
mov byte [rsp + 0xc8], cl
nop dword [rax]
xor r12b, r12b
cmp sil, 0x39
ja 0x140067504
cmp rdi, r13
jb 0x1400674de
jne 0x140067613
cmp sil, 0x38
ja 0x140067613
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rbx + 0x28]
lea rax, [rdi + rdi*4]
movzx ecx, sil
inc ebp
sub ecx, 0x30
movzx esi, byte [rdx]
lea rdi, [rcx + rax*2]
cmp sil, 0x30
jge 0x1400674c0
mov qword [rsp + 0x28], rdi
mov rax, rdx
test r12b, r12b
je 0x140067558
cmp byte [rax], 0x30
mov rdx, rax
jl 0x140067558
movzx esi, byte [rax]
nop dword [rax]
mov rdx, rax
cmp sil, 0x39
ja 0x140067558
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rbx + 0x28]
movzx eax, sil
sub eax, 0x30
mulsd xmm6, xmm7
movzx esi, byte [rdx]
movd xmm0, eax
mov rax, rdx
cvtdq2pd xmm0, xmm0
addsd xmm6, xmm0
cmp sil, 0x30
jge 0x140067520
cmp byte [rdx], 0x2e
mov r13d, r15d
mov dword [rsp + 0x24], r15d
jne 0x140067727
mov rcx, rbx
call fcn.140065100
mov rcx, qword [rbx + 0x28]
movzx esi, byte [rcx]
lea eax, [rsi - 0x30]
cmp al, 9
ja 0x1400677c4
test r12b, r12b
jne 0x14006776b
mov edi, dword [rsp + 0x20]
mov r8, rcx
cmp byte [rsp + 0xc8], r15b
mov r13d, edi
movabs r14, 0x1fffffffffffff
cmovne rdi, qword [rsp + 0x28]
nop
mov r9, rcx
mov rdx, r8
cmp sil, 0x39
ja 0x1400675fd
cmp rdi, r14
ja 0x1400675fd
mov rcx, rbx
call fcn.140065100
dec dword [rsp + 0x24]
lea rax, [rdi + rdi*4]
movzx ecx, sil
sub ecx, 0x30
lea rdi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
test rdi, rdi
lea eax, [rbp + 1]
mov r8, rcx
mov r9, rcx
cmove eax, ebp
mov rdx, rcx
movzx esi, byte [rcx]
mov ebp, eax
cmp sil, 0x30
jge 0x1400675b0
xorps xmm6, xmm6
test rdi, rdi
js 0x1400676fa
cvtsi2sd xmm6, rdi
jmp 0x140067712
xorps xmm6, xmm6
test rdi, rdi
js 0x140067628
cvtsi2sd xmm6, rdi
mov r12b, 1
jmp 0x140067504
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
mov r12b, 1
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
jmp 0x140067504
cmp sil, 0x30
jl 0x140067504
mov dword [rsp + 0x20], r14d
movabs r13, 0x1999999999999999
mov byte [rsp + 0xc8], cl
nop dword [rax + rax]
xor r12b, r12b
mov qword [rsp + 0x28], rdi
cmp sil, 0x39
ja 0x140067504
cmp rdi, r13
jb 0x14006768f
jne 0x1400676bf
cmp sil, 0x35
ja 0x1400676bf
mov rcx, rbx
call fcn.140065100
mov rdx, qword [rbx + 0x28]
lea rax, [rdi + rdi*4]
movzx ecx, sil
inc ebp
sub ecx, 0x30
movzx esi, byte [rdx]
lea rdi, [rcx + rax*2]
mov qword [rsp + 0x28], rdi
cmp sil, 0x30
jge 0x140067670
jmp 0x140067558
xorps xmm6, xmm6
test rdi, rdi
js 0x1400676d7
cvtsi2sd xmm6, rdi
mov r12b, 1
mov rax, rdx
jmp 0x140067511
mov rax, rdi
mov rcx, rdi
and eax, 1
shr rcx, 1
or rcx, rax
mov r12b, 1
mov rax, rdx
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
jmp 0x140067511
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
movzx esi, byte [r9]
mov r12b, 1
mov r14, r13
cmp sil, 0x30
jge 0x140067771
mov r13d, dword [rsp + 0x24]
cmp byte [rdx], 0x65
je 0x140067735
cmp byte [rdx], 0x45
jne 0x1400678d9
mov rcx, rbx
call fcn.140065100
test r12b, r12b
jne 0x1400677fc
cmp byte [rsp + 0xc8], r15b
mov rcx, rdi
xorps xmm6, xmm6
cmove rcx, r14
test rcx, rcx
js 0x1400677e4
cvtsi2sd xmm6, rcx
jmp 0x1400677f9
mov r13d, r14d
mov rdx, rcx
mov r14, r13
cmp sil, 0x39
ja 0x140067722
mov rcx, rbx
cmp ebp, 0x11
jge 0x1400677ad
dec dword [rsp + 0x24]
mulsd xmm6, xmm7
movzx eax, sil
sub eax, 0x30
movd xmm0, eax
lea eax, [rbp + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm8
movaps xmm6, xmm0
cmovbe eax, ebp
mov ebp, eax
call fcn.140065100
mov rdx, qword [rbx + 0x28]
movzx esi, byte [rdx]
cmp sil, 0x30
jge 0x140067771
jmp 0x140067722
sub rcx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rax + 0x30], select
mov qword [rax + 0x38], rcx
jmp 0x140067a1f
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
mov r12b, 1
mov rcx, qword [rbx + 0x28]
xor bpl, bpl
movzx esi, byte [rcx]
cmp sil, 0x2b
jne 0x140067816
mov rcx, rbx
call fcn.140065100
jmp 0x140067827
cmp sil, 0x2d
jne 0x14006782e
mov rcx, rbx
call fcn.140065100
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx esi, byte [rcx]
lea eax, [rsi - 0x30]
cmp al, 9
ja 0x14006795c
mov rcx, rbx
call fcn.140065100
mov rax, qword [rbx + 0x28]
movsx r15d, sil
sub r15d, 0x30
movzx esi, byte [rax]
test bpl, bpl
je 0x140067919
lea ecx, [r13 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov ebp, edx
sar ebp, 2
mov eax, ebp
shr eax, 0x1f
add ebp, eax
cmp sil, 0x30
jl 0x1400678d6
nop dword [rax]
cmp sil, 0x39
ja 0x1400678d6
mov rcx, rbx
call fcn.140065100
lea r15d, [r15 + r15*4]
movzx eax, sil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jle 0x1400678c9
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x1400678c9
nop
cmp cl, 0x39
ja 0x1400678c9
mov rcx, rbx
call fcn.140065100
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x1400678b0
mov rax, qword [rbx + 0x28]
movzx esi, byte [rax]
cmp sil, 0x30
jge 0x140067880
neg r15d
test r12b, r12b
je 0x14006799f
lea edx, [r15 + r13]
movaps xmm0, xmm6
call fcn.14001fe50
comisd xmm0, xmmword [0x1401711b8]
jbe 0x14006797c
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
mov dword [rax + 0x30], select
mov qword [rax + 0x38], rcx
jmp 0x140067a1f
mov ebp, 0x134
sub ebp, r13d
cmp sil, 0x30
jl 0x1400678d9
cmp sil, 0x39
ja 0x1400678d9
mov rcx, rbx
call fcn.140065100
lea r15d, [r15 + r15*4]
movzx eax, sil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jg 0x1400678fc
mov rax, qword [rbx + 0x28]
movzx esi, byte [rax]
cmp sil, 0x30
jge 0x140067927
jmp 0x1400678d9
sub rcx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rax + 0x30], select
mov qword [rax + 0x38], rcx
jmp 0x140067a1f
cmp byte [rsp + 0xd8], 0
je 0x14006798d
xorps xmm0, xmmword [0x140171350]
mov rcx, qword [rsp + 0xd0]
movaps xmm1, xmm0
call fcn.140022330
jmp 0x1400679ee
cmp byte [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
je 0x1400679d2
cmp byte [rsp + 0xd8], 0
je 0x1400679c8
neg rdi
mov rdx, rdi
call fcn.140022420
jmp 0x1400679ee
mov rdx, rdi
call fcn.140022390
jmp 0x1400679ee
cmp byte [rsp + 0xd8], 0
mov edx, dword [rsp + 0x20]
je 0x1400679e9
neg edx
call fcn.140022530
jmp 0x1400679ee
call fcn.1400224d0
test al, al
jne 0x140067a1f
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
mov dword [rax + 0x30], shutdown
mov qword [rax + 0x38], rcx
jmp 0x140067a1f
sub rcx, qword [rbx + 0x10]
add rcx, qword [rbx + 0x38]
mov qword [rdx + 0x38], rcx
mov dword [rdx + 0x30], 3
mov r14, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
add rsp, 0x80
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret