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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push r13
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
movups xmm0, xmmword [rdx]
mov r11, rcx
movaps xmmword [rsp + 0x60], xmm6
xorps xmm1, xmm1
movq r8, xmm0
movaps xmmword [rsp + 0x50], xmm7
movsd xmm7, qword [rdx + 0x10]
mov rax, r8
movsd qword [rbp - 0x19], xmm7
xorps xmm6, xmm6
mov rdx, qword [rbp - 0x19]
sub rax, rdx
cmp byte [r8], 0x2d
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x31], rax
jne 0x18000a77a
inc r8
mov r13b, 1
mov qword [rbp - 0x29], r8
jmp 0x18000a77d
xor r13b, r13b
movsx ecx, byte [r8]
xor r15d, r15d
movsd xmm2, qword [0x1801b63c0]
xor r10b, r10b
mov qword [rsp + 0x90], rsi
mov ebx, r15d
mov qword [rsp + 0x88], rdi
mov r9d, r15d
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r14
mov byte [rbp - 0x39], r13b
mov byte [rbp + 0x7f], r10b
cmp cl, 0x30
jne 0x18000a7d4
inc r8
mov r12d, r15d
mov qword [rbp - 0x29], r8
xor dil, dil
mov esi, r15d
jmp 0x18000aa41
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x18000af88
lea rdx, [r8 + 1]
lea eax, [rcx - 0x30]
movzx ecx, byte [rdx]
test r13b, r13b
je 0x18000a845
cmp cl, 0x30
jl 0x18000a88b
mov r8, rdx
mov r10, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x18000a888
cmp eax, 0xccccccc
jb 0x18000a81a
jne 0x18000a83e
mov r8, r10
cmp cl, 0x38
ja 0x18000a83e
lea ecx, [rax + rax*4]
inc r9d
movsx eax, byte [r8]
lea rdx, [r8 + 1]
mov r8, rdx
mov r10, rdx
lea eax, [rax + rcx*2]
movzx ecx, byte [rdx]
add eax, 0xffffffd0
cmp cl, 0x30
jge 0x18000a800
jmp 0x18000a888
mov ebx, eax
mov r10b, 1
jmp 0x18000a88b
cmp cl, 0x30
jl 0x18000a88b
mov r8, rdx
mov r10, rdx
cmp cl, 0x39
ja 0x18000a888
cmp eax, 0x19999999
jb 0x18000a866
jne 0x18000a83e
mov r8, r10
cmp cl, 0x35
ja 0x18000a83e
lea ecx, [rax + rax*4]
inc r9d
movsx eax, byte [r8]
lea rdx, [r8 + 1]
mov r8, rdx
mov r10, rdx
lea eax, [rax + rcx*2]
movzx ecx, byte [rdx]
add eax, 0xffffffd0
cmp cl, 0x30
jge 0x18000a850
xor r10b, r10b
xor dil, dil
mov qword [rbp - 0x29], rdx
mov byte [rbp + 0x7f], r10b
mov r8, rdx
mov r12d, eax
test r10b, r10b
je 0x18000a9f6
movzx ecx, byte [rdx]
mov qword [rbp - 0x29], rdx
mov byte [rbp + 0x7f], r10b
test r13b, r13b
je 0x18000a95d
cmp cl, 0x30
jl 0x18000a9f6
mov r11, rdx
mov qword [rbp - 0x29], rdx
mov byte [rbp + 0x7f], r10b
movabs rsi, 0xccccccccccccccc
nop word [rax + rax]
xor dil, dil
cmp cl, 0x39
ja 0x18000a9f6
cmp rbx, rsi
jb 0x18000a8fb
jne 0x18000a928
mov rdx, r11
cmp cl, 0x38
ja 0x18000a928
movsx ecx, byte [rdx]
lea r8, [rdx + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
lea rax, [rbx + rbx*4]
inc r9d
mov rdx, r8
mov r11, r8
lea rbx, [rcx + rax*2]
movzx ecx, byte [r8]
cmp cl, 0x30
jge 0x18000a8e0
jmp 0x18000a9f6
xorps xmm1, xmm1
test rbx, rbx
js 0x18000a93d
cvtsi2sd xmm1, rbx
mov dil, 1
jmp 0x18000a9f6
mov rax, rbx
mov rcx, rbx
shr rcx, 1
and eax, 1
or rcx, rax
mov dil, 1
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
jmp 0x18000a9f6
cmp cl, 0x30
jl 0x18000a9f6
mov r11, rdx
mov qword [rbp - 0x29], rdx
mov byte [rbp + 0x7f], r10b
movabs r14, 0x1999999999999999
nop dword [rax + rax]
xor dil, dil
mov rsi, rbx
cmp cl, 0x39
ja 0x18000a9f6
cmp rbx, r14
jb 0x18000a99a
jne 0x18000a9c7
mov rdx, r11
cmp cl, 0x35
ja 0x18000a9c7
movsx ecx, byte [rdx]
lea r8, [rdx + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
lea rax, [rbx + rbx*4]
inc r9d
mov rdx, r8
mov r11, r8
lea rbx, [rcx + rax*2]
movzx ecx, byte [r8]
mov rsi, rbx
cmp cl, 0x30
jge 0x18000a980
jmp 0x18000aa3d
xorps xmm1, xmm1
test rbx, rbx
js 0x18000a9d9
cvtsi2sd xmm1, rbx
mov dil, 1
jmp 0x18000a9fe
mov rax, rbx
mov rcx, rbx
shr rcx, 1
and eax, 1
or rcx, rax
mov dil, 1
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
jmp 0x18000a9fe
mov rsi, rbx
test dil, dil
je 0x18000aa3d
movzx eax, byte [r8]
cmp al, 0x30
jl 0x18000aa3d
mov rcx, r8
nop dword [rax]
cmp al, 0x39
ja 0x18000aa3d
movsx eax, byte [rcx]
lea r8, [rcx + 1]
sub eax, 0x30
mulsd xmm1, xmm2
mov qword [rbp - 0x29], r8
mov rcx, r8
movd xmm0, eax
movzx eax, byte [r8]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x18000aa10
mov rdx, qword [rbp - 0x19]
cmp byte [r8], 0x2e
movzx r14d, r10b
mov r11d, r12d
movzx ecx, dil
mov r13d, r15d
jne 0x18000abd8
movzx eax, byte [r8 + 1]
inc r8
mov qword [rbp - 0x29], r8
cmp al, 0x30
jl 0x18000abca
cmp al, 0x39
jg 0x18000abca
mov byte [rbp + 0x7f], r10b
mov rdx, r8
mov r12d, r11d
test cl, cl
jne 0x18000ab1f
mov ebx, r11d
mov byte [rbp + 0x7f], r14b
test r14b, r14b
mov rdi, r8
mov r10, r8
movzx ecx, al
cmovne rbx, rsi
movabs r11, 0x1fffffffffffff
cmp cl, 0x39
jg 0x18000aaee
mov rdx, r10
cmp rbx, r11
ja 0x18000aaee
movsx ecx, byte [rdi]
lea r8, [rdi + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
lea rax, [rbx + rbx*4]
dec r13d
mov rdx, r8
mov rdi, r8
mov r10, r8
lea rbx, [rcx + rax*2]
movzx ecx, byte [r8]
test rbx, rbx
lea eax, [r9 + 1]
cmove eax, r9d
mov r9d, eax
cmp cl, 0x30
jge 0x18000aaa8
xorps xmm1, xmm1
test rbx, rbx
js 0x18000aafd
cvtsi2sd xmm1, rbx
jmp 0x18000ab15
mov rax, rbx
mov rcx, rbx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movzx eax, byte [rdx]
mov dil, 1
movzx r10d, r14b
cmp al, 0x30
jl 0x18000ab90
movzx ecx, byte [r8]
mov rax, rdx
mov r11, rdx
mov r10, rdx
mov rdx, r10
cmp cl, 0x39
jg 0x18000ab8b
cmp r9d, 0x11
jge 0x18000ab6f
lea rdx, [rax + 1]
mulsd xmm1, xmm2
movsx eax, byte [rax]
dec r13d
sub eax, 0x30
movd xmm0, eax
lea eax, [r9 + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
comisd xmm0, xmm6
movaps xmm1, xmm0
cmovbe eax, r9d
mov r9d, eax
jmp 0x18000ab73
lea rdx, [r11 + 1]
mov rcx, rdx
mov qword [rbp - 0x29], rdx
movzx ecx, byte [rdx]
mov rax, rdx
mov r11, rdx
mov r10, rdx
cmp cl, 0x30
jge 0x18000ab30
movzx r10d, byte [rbp + 0x7f]
cmp byte [rdx], 0x65
je 0x18000aba2
cmp byte [rdx], 0x45
jne 0x18000acbc
mov byte [rbp + 0x7f], r10b
inc rdx
mov qword [rbp - 0x29], rdx
test dil, dil
jne 0x18000abf5
test r10b, r10b
mov eax, r12d
mov rcx, rbx
xorps xmm1, xmm1
cmove rcx, rax
test rcx, rcx
js 0x18000abdd
cvtsi2sd xmm1, rcx
jmp 0x18000abf2
mov r11, qword [rbp + 0x67]
mov ecx, 0xe
jmp 0x18000af8d
mov rdx, r8
jmp 0x18000ab90
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov dil, 1
movzx ecx, byte [rdx]
xor r10b, r10b
cmp cl, 0x2b
je 0x18000ac08
cmp cl, 0x2d
jne 0x18000ac13
mov r10b, 1
movzx ecx, byte [rdx + 1]
inc rdx
mov qword [rbp - 0x29], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18000ad7c
movzx r9d, byte [rdx + 1]
lea r8, [rdx + 1]
movsx r15d, cl
sub r15d, 0x30
mov qword [rbp - 0x29], r8
test r10b, r10b
je 0x18000ad30
lea ecx, [r13 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r10d, edx
sar r10d, 2
mov eax, r10d
shr eax, 0x1f
add r10d, eax
cmp r9b, 0x30
jl 0x18000acb4
cmp r9b, 0x39
ja 0x18000acb4
movsx eax, byte [r8]
lea r15d, [r15 + r15*4]
lea rdx, [r8 + 1]
lea r15d, [r15 - 0x18]
mov qword [rbp - 0x29], rdx
mov r8, rdx
lea r15d, [rax + r15*2]
cmp r15d, r10d
jle 0x18000acaa
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x18000acaa
mov rcx, rdx
cmp al, 0x39
ja 0x18000aca6
movzx eax, byte [rcx + 1]
lea r8, [rcx + 1]
mov rdx, r8
mov rcx, r8
cmp al, 0x30
jge 0x18000ac90
mov qword [rbp - 0x29], rdx
movzx r9d, byte [rdx]
cmp r9b, 0x30
jge 0x18000ac60
neg r15d
movzx r10d, byte [rbp + 0x7f]
test dil, dil
je 0x18000ae07
lea ecx, [r15 + r13]
cmp ecx, 0xfffffecc
jge 0x18000ad94
mulsd xmm1, qword [0x1801b5dc8]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x18000adbb
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x1801af110]
movaps xmm6, xmm1
sub rcx, rax
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x1801b6608]
jbe 0x18000adbb
mov rax, qword [rbp + 0x67]
mov rcx, qword [rbp - 0x31]
mov dword [rax + 0x30], 0xd
mov qword [rax + 0x38], rcx
jmp 0x18000afa0
mov r10d, 0x134
sub r10d, r13d
cmp r9b, 0x30
jl 0x18000acb7
cmp r9b, 0x39
ja 0x18000acb7
movsx eax, byte [r8]
lea r15d, [r15 + r15*4]
lea r15d, [r15 - 0x18]
lea rdx, [r8 + 1]
mov qword [rbp - 0x29], rdx
lea r15d, [rax + r15*2]
cmp r15d, r10d
jg 0x18000ad18
cmp byte [rdx], 0x30
mov r8, rdx
jl 0x18000acb7
movzx r9d, byte [rdx]
jmp 0x18000ad43
mov rax, qword [rbp + 0x67]
sub rdx, qword [rbp - 0x19]
mov dword [rax + 0x30], 0xf
mov qword [rax + 0x38], rdx
jmp 0x18000afa0
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x18000acf9
lea rcx, [0x1801af110]
movaps xmm6, xmm1
mulsd xmm6, qword [rax + rcx]
jmp 0x18000ad0a
cmp byte [rbp - 0x39], 0
je 0x18000adc8
xorps xmm6, xmmword [0x1801b6ee0]
mov rbx, qword [rbp + 0x77]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x18000ade3
lea rcx, [rbx + 0x20]
call fcn.18000b3c0
mov rcx, qword [rbx + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbx + 0x38], rax
mov eax, 0x216
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
movsd qword [rcx], xmm6
jmp 0x18000afa0
mov rsi, qword [rbp + 0x77]
mov rax, qword [rsi + 0x40]
sub rax, qword [rsi + 0x38]
test r10b, r10b
je 0x18000aefd
cmp byte [rbp - 0x39], 0
je 0x18000ae91
neg rbx
cmp rax, 0x10
jge 0x18000ae34
lea rcx, [rsi + 0x20]
call fcn.18000b3c0
mov rcx, qword [rsi + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rsi + 0x38], rax
mov eax, 0x96
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
mov qword [rcx], rbx
test rbx, rbx
js 0x18000ae76
movabs rdx, 0xffffffff00000000
mov eax, 0x196
mov word [rcx + 0xe], ax
test rdx, rbx
jne 0x18000aee3
mov eax, 0x1d6
jmp 0x18000aedf
cmp rbx, 0xffffffff80000000
jl 0x18000afa0
mov eax, 0xb6
mov word [rcx + 0xe], ax
jmp 0x18000afa0
cmp rax, 0x10
jge 0x18000aea0
lea rcx, [rsi + 0x20]
call fcn.18000b3c0
mov rcx, qword [rsi + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rsi + 0x38], rax
mov eax, 0x116
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
mov qword [rcx], rbx
test rbx, rbx
js 0x18000aecc
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rbx
jne 0x18000aee3
or ax, 0x40
mov word [rcx + 0xe], ax
test rbx, 0xffffffff80000000
jne 0x18000afa0
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x18000afa0
cmp byte [rbp - 0x39], 0
je 0x18000af44
neg r12d
cmp rax, 0x10
jge 0x18000af15
lea rcx, [rsi + 0x20]
call fcn.18000b3c0
mov rcx, qword [rsi + 0x38]
xorps xmm0, xmm0
test r12d, r12d
mov edx, 0x1f6
lea rax, [rcx + 0x10]
mov qword [rsi + 0x38], rax
movsxd rax, r12d
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov eax, 0xb6
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x18000afa0
cmp rax, 0x10
jge 0x18000af53
lea rcx, [rsi + 0x20]
call fcn.18000b3c0
mov rcx, qword [rsi + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rsi + 0x38], rax
mov eax, r12d
shr r12d, 0x1a
not r12w
movups xmmword [rcx], xmm0
mov qword [rcx], rax
and r12w, 0x20
mov eax, 0x1d6
or r12w, ax
mov word [rcx + 0xe], r12w
jmp 0x18000afa0
mov ecx, 3
sub r8, rdx
mov eax, 0x30
mov rdx, r11
mov dword [rax + r11], ecx
mov qword [rdx + 0x38], r8
mov rax, qword [rbp + 0x6f]
movups xmm0, xmmword [rbp - 0x29]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x60]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm7
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x98
pop r15
pop r13
pop rbx
pop rbp
ret