Function at 0x180085bc0
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 rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
movups xmm0, xmmword [rdx]
mov r10, 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 rdi, qword [rbp - 0x19]
sub rax, rdi
cmp byte [r8], 0x2d
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x31], rax
jne 0x180085c2c
inc r8
mov r9b, 1
mov qword [rbp - 0x29], r8
jmp 0x180085c2f
xor r9b, r9b
movsx ecx, byte [r8]
xor r13d, r13d
movsd xmm2, qword [0x180198d78]
xor sil, sil
mov qword [rsp + 0x80], r12
mov ebx, r13d
mov byte [rbp + 0x7f], r9b
mov r14d, r13d
mov qword [rsp + 0x78], r15
cmp cl, 0x30
jne 0x180085c70
lea rdx, [r8 + 1]
mov r12d, r13d
mov qword [rbp - 0x29], rdx
xor r15b, r15b
jmp 0x180085e3a
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x1800863ad
inc r8
lea eax, [rcx - 0x30]
movzx ecx, byte [r8]
test r9b, r9b
je 0x180085cda
cmp cl, 0x30
jl 0x180085d29
mov rdx, r8
mov r9, r8
nop dword [rax]
cmp cl, 0x39
ja 0x180085d24
cmp eax, 0xccccccc
jb 0x180085cb6
jne 0x180085d1f
mov rdx, r9
cmp cl, 0x38
ja 0x180085d1f
lea ecx, [rax + rax*4]
inc r14d
movsx eax, byte [rdx]
lea r8, [rdx + 1]
mov rdx, r8
mov r9, r8
lea eax, [rax + rcx*2]
movzx ecx, byte [r8]
add eax, 0xffffffd0
cmp cl, 0x30
jge 0x180085ca0
jmp 0x180085d24
cmp cl, 0x30
jl 0x180085d29
mov rdx, r8
mov r9, r8
cmp cl, 0x39
ja 0x180085d24
cmp eax, 0x19999999
jb 0x180085cfb
jne 0x180085d1f
mov rdx, r9
cmp cl, 0x35
ja 0x180085d1f
lea ecx, [rax + rax*4]
inc r14d
movsx eax, byte [rdx]
lea r8, [rdx + 1]
mov rdx, r8
mov r9, r8
lea eax, [rax + rcx*2]
movzx ecx, byte [r8]
add eax, 0xffffffd0
cmp cl, 0x30
jge 0x180085ce5
jmp 0x180085d24
mov sil, 1
mov ebx, eax
movzx r9d, byte [rbp + 0x7f]
xor r15b, r15b
mov rdx, r8
mov qword [rbp - 0x29], rdx
movzx r10d, sil
mov r12d, eax
test sil, sil
je 0x180085e32
mov qword [rbp - 0x29], rdx
test r9b, r9b
je 0x180085dbd
movzx ecx, byte [r8]
cmp cl, 0x30
jl 0x180085e32
mov r9, r8
mov qword [rbp - 0x29], rdx
movabs r10, 0xccccccccccccccc
nop word [rax + rax]
xor r15b, r15b
cmp cl, 0x39
ja 0x180085e32
cmp rbx, r10
jb 0x180085d8b
jne 0x180085db5
mov r8, r9
cmp cl, 0x38
ja 0x180085db5
movsx ecx, byte [r8]
lea rdx, [r8 + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], rdx
lea rax, [rbx + rbx*4]
inc r14d
mov r8, rdx
mov r9, rdx
lea rbx, [rcx + rax*2]
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x180085d70
jmp 0x180085e32
mov rcx, rbx
jmp 0x180085eda
movzx r9d, byte [r8]
cmp r9b, 0x30
jl 0x180085e32
mov byte [rbp - 0x39], r10b
mov rsi, r8
movabs r10, 0x1999999999999999
mov qword [rbp - 0x29], rdx
nop dword [rax]
xor r15b, r15b
mov rcx, rbx
cmp r9b, 0x39
ja 0x180085e2e
cmp rbx, r10
jb 0x180085e04
jne 0x180085ed6
mov r8, rsi
cmp r9b, 0x35
ja 0x180085ed6
movsx ecx, byte [r8]
lea rdx, [r8 + 1]
movzx r9d, byte [rdx]
lea rax, [rbx + rbx*4]
sub ecx, 0x30
mov qword [rbp - 0x29], rdx
inc r14d
mov r8, rdx
mov rsi, rdx
lea rbx, [rcx + rax*2]
cmp r9b, 0x30
jge 0x180085de0
movzx esi, byte [rbp - 0x39]
mov r10, qword [rbp + 0x67]
mov rdi, qword [rbp - 0x19]
cmp byte [rdx], 0x2e
mov r11d, r13d
jne 0x180085fd0
movzx eax, byte [rdx + 1]
lea r8, [rdx + 1]
mov qword [rbp - 0x29], r8
cmp al, 0x30
jl 0x180086004
cmp al, 0x39
jg 0x180086004
mov rdx, r8
test r15b, r15b
jne 0x180085f63
test sil, sil
jne 0x180085e76
mov ebx, r12d
mov rax, r8
mov rcx, r8
movabs r9, 0x1fffffffffffff
cmp byte [r8], 0x39
jg 0x180085ec4
mov rdx, rcx
cmp rbx, r9
ja 0x180085ec4
movsx ecx, byte [rax]
lea r8, [rax + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
lea rax, [rbx + rbx*4]
dec r11d
mov rdx, r8
lea rbx, [rcx + rax*2]
test rbx, rbx
je 0x180085eb8
inc r14d
cmp byte [r8], 0x30
mov rax, r8
mov rcx, rdx
jge 0x180085e86
xorps xmm1, xmm1
test rbx, rbx
js 0x180085f45
cvtsi2sd xmm1, rbx
jmp 0x180085f5d
movzx esi, byte [rbp - 0x39]
mov r15b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x180085eec
cvtsi2sd xmm1, rcx
jmp 0x180085f01
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x180085e32
mov rcx, rdx
nop
cmp al, 0x39
ja 0x180085e32
movsx eax, byte [rcx]
lea rdx, [rcx + 1]
sub eax, 0x30
mulsd xmm1, xmm2
mov qword [rbp - 0x29], rdx
mov rcx, rdx
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x180085f10
jmp 0x180085e32
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 r15b, 1
cmp al, 0x30
jl 0x180085fd0
movzx ecx, byte [r8]
mov rax, rdx
mov r10, rdx
mov r9, rdx
mov rdx, r9
cmp cl, 0x39
jg 0x180085fd0
cmp r14d, 0x11
jge 0x180085fb4
lea rdx, [rax + 1]
mulsd xmm1, xmm2
movsx eax, byte [rax]
dec r11d
sub eax, 0x30
mov qword [rbp - 0x29], rdx
mov rcx, rdx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
comisd xmm0, xmm6
movaps xmm1, xmm0
jbe 0x180085fbf
inc r14d
jmp 0x180085fbf
lea rdx, [r10 + 1]
mov rcx, rdx
mov qword [rbp - 0x29], rdx
movzx ecx, byte [rcx]
mov rax, rdx
mov r10, rdx
mov r9, rdx
cmp cl, 0x30
jge 0x180085f74
cmp byte [rdx], 0x65
je 0x180085fde
cmp byte [rdx], 0x45
jne 0x1800860e9
inc rdx
mov qword [rbp - 0x29], rdx
test r15b, r15b
jne 0x180086026
mov rcx, rbx
test sil, sil
jne 0x180085ff5
mov ecx, r12d
xorps xmm1, xmm1
test rcx, rcx
js 0x18008600e
cvtsi2sd xmm1, rcx
jmp 0x180086023
mov ecx, 0xe
jmp 0x1800863b2
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r15b, 1
movzx ecx, byte [rdx]
xor r10b, r10b
cmp cl, 0x2b
je 0x180086039
cmp cl, 0x2d
jne 0x180086044
mov r10b, 1
movzx ecx, byte [rdx + 1]
inc rdx
mov qword [rbp - 0x29], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1800861ab
movzx r9d, byte [rdx + 1]
lea r8, [rdx + 1]
movsx r13d, cl
sub r13d, 0x30
mov qword [rbp - 0x29], r8
test r10b, r10b
je 0x18008615d
lea ecx, [r11 + 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 0x1800860e6
cmp r9b, 0x39
ja 0x1800860e6
movsx eax, byte [r8]
lea r13d, [r13 + r13*4]
lea rdx, [r8 + 1]
lea r13d, [r13 - 0x18]
mov qword [rbp - 0x29], rdx
mov r8, rdx
lea r13d, [rax + r13*2]
cmp r13d, r10d
jle 0x1800860dc
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x1800860dc
mov rcx, rdx
cmp al, 0x39
ja 0x1800860d8
movzx eax, byte [rcx + 1]
lea r8, [rcx + 1]
mov rdx, r8
mov rcx, r8
cmp al, 0x30
jge 0x1800860c2
mov qword [rbp - 0x29], rdx
movzx r9d, byte [rdx]
cmp r9b, 0x30
jge 0x180086091
neg r13d
test r15b, r15b
je 0x180086232
lea ecx, [r11 + r13]
cmp ecx, 0xfffffecc
jge 0x1800861c2
mulsd xmm1, qword [0x1801987b8]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x1800861e9
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x180197b20]
movaps xmm6, xmm1
sub rcx, rax
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x180198f60]
jbe 0x1800861e9
mov rax, qword [rbp + 0x67]
mov rcx, qword [rbp - 0x31]
mov dword [rax + 0x30], 0xd
mov qword [rax + 0x38], rcx
jmp 0x1800863c5
mov edx, 0x134
sub edx, r11d
cmp r9b, 0x30
jl 0x1800860e9
nop
cmp r9b, 0x39
ja 0x1800860e9
movsx eax, byte [r8]
lea r13d, [r13 + r13*4]
lea r13d, [r13 - 0x18]
lea r9, [r8 + 1]
mov qword [rbp - 0x29], r9
lea r13d, [rax + r13*2]
cmp r13d, edx
jg 0x180086145
cmp byte [r9], 0x30
mov r8, r9
jl 0x1800860e9
movzx r9d, byte [r9]
jmp 0x180086170
mov rax, qword [rbp + 0x67]
sub rdx, rdi
mov dword [rax + 0x30], 0xf
mov qword [rax + 0x38], rdx
jmp 0x1800863c5
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x180086126
lea rcx, [0x180197b20]
movaps xmm6, xmm1
mulsd xmm6, qword [rax + rcx]
jmp 0x180086137
cmp byte [rbp + 0x7f], 0
je 0x1800861f6
xorps xmm6, xmmword [0x180199610]
mov rbx, qword [rbp + 0x77]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x180086211
lea rcx, [rbx + 0x20]
call fcn.1800867d0
mov rcx, qword [rbx + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbx + 0x38], rax
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], 0x216
movsd qword [rcx], xmm6
jmp 0x1800863c5
mov r14, qword [rbp + 0x77]
mov rax, qword [r14 + 0x40]
sub rax, qword [r14 + 0x38]
test sil, sil
je 0x180086322
cmp byte [rbp + 0x7f], 0
je 0x1800862b6
neg rbx
cmp rax, 0x10
jge 0x18008625f
lea rcx, [r14 + 0x20]
call fcn.1800867d0
mov rcx, qword [r14 + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [r14 + 0x38], rax
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov word [rcx + 0xe], 0x96
test rbx, rbx
js 0x18008629e
movabs rdx, 0xffffffff00000000
mov eax, 0x196
mov word [rcx + 0xe], ax
test rdx, rbx
jne 0x180086308
mov eax, 0x1d6
jmp 0x180086304
cmp rbx, 0xffffffff80000000
jl 0x1800863c5
mov word [rcx + 0xe], 0xb6
jmp 0x1800863c5
cmp rax, 0x10
jge 0x1800862c5
lea rcx, [r14 + 0x20]
call fcn.1800867d0
mov rcx, qword [r14 + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [r14 + 0x38], rax
mov eax, 0x116
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
mov qword [rcx], rbx
test rbx, rbx
js 0x1800862f1
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rbx
jne 0x180086308
or ax, 0x40
mov word [rcx + 0xe], ax
test rbx, 0xffffffff80000000
jne 0x1800863c5
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x1800863c5
cmp byte [rbp + 0x7f], 0
je 0x180086369
neg r12d
cmp rax, 0x10
jge 0x18008633a
lea rcx, [r14 + 0x20]
call fcn.1800867d0
mov rcx, qword [r14 + 0x38]
xorps xmm0, xmm0
test r12d, r12d
mov edx, 0x1f6
lea rax, [rcx + 0x10]
mov qword [r14 + 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 0x1800863c5
cmp rax, 0x10
jge 0x180086378
lea rcx, [r14 + 0x20]
call fcn.1800867d0
mov rcx, qword [r14 + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [r14 + 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 0x1800863c5
mov ecx, 3
mov eax, 0x30
mov rdx, r10
sub r8, rdi
mov dword [r10 + rax], ecx
mov qword [rdx + 0x38], r8
mov rax, qword [rbp + 0x6f]
movups xmm0, xmmword [rbp - 0x29]
mov r15, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x60]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm7
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x88
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret