Function at 0x7ff65ed5c0e0
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 r13
push r15
sub rsp, 0x78
mov rbx, rdx
movaps xmmword [rsp + 0x50], xmm6
mov rdx, qword [rdx + 0x28]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm8
xorps xmm8, xmm8
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
movzx edi, byte [rdx]
add rax, rdx
mov qword [rsp + 0x20], rax
cmp dil, 0x2d
jne 0x7ff65ed5c149
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rdx, qword [rbx + 0x28]
mov r13b, 1
mov rcx, qword [rsp + 0xb0]
movzx edi, byte [rdx]
jmp 0x7ff65ed5c14c
xor r13b, r13b
movsd xmm7, qword [0x7ff65f153800]
xor ebp, ebp
mov qword [rsp + 0x70], r12
mov esi, ebp
mov byte [rsp + 0xb8], sil
mov r15d, ebp
mov byte [rsp + 0xc8], r13b
mov qword [rsp + 0x68], r14
cmp dil, 0x30
jne 0x7ff65ed5c192
mov rcx, rbx
mov r14d, ebp
call fcn.7ff65ed5a6e0
mov rdx, qword [rbx + 0x28]
xor r12b, r12b
jmp 0x7ff65ed5c31d
lea eax, [rdi - 0x31]
cmp al, 8
ja 0x7ff65ed5c7a7
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rax, qword [rbx + 0x28]
movsx r14d, dil
sub r14d, 0x30
movzx edi, byte [rax]
test r13b, r13b
je 0x7ff65ed5c208
cmp dil, 0x30
jl 0x7ff65ed5c25c
cmp dil, 0x39
ja 0x7ff65ed5c25c
cmp r14d, 0xccccccc
jb 0x7ff65ed5c1de
jne 0x7ff65ed5c251
cmp dil, 0x38
ja 0x7ff65ed5c251
mov rcx, rbx
call fcn.7ff65ed5a6e0
movzx eax, dil
lea r14d, [r14 + r14*4]
lea r14d, [r14 - 0x18]
inc r15d
lea r14d, [rax + r14*2]
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x7ff65ed5c1c3
jmp 0x7ff65ed5c25c
cmp dil, 0x30
jl 0x7ff65ed5c25c
nop
cmp dil, 0x39
ja 0x7ff65ed5c25c
cmp r14d, 0x19999999
jb 0x7ff65ed5c227
jne 0x7ff65ed5c251
cmp dil, 0x35
ja 0x7ff65ed5c251
mov rcx, rbx
call fcn.7ff65ed5a6e0
movzx eax, dil
lea r14d, [r14 + r14*4]
lea r14d, [r14 - 0x18]
inc r15d
lea r14d, [rax + r14*2]
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x7ff65ed5c210
jmp 0x7ff65ed5c25c
mov byte [rsp + 0xb8], 1
mov esi, r14d
xor r12b, r12b
mov rdx, rax
cmp byte [rsp + 0xb8], bpl
je 0x7ff65ed5c2d2
movzx ecx, byte [rax]
test r13b, r13b
je 0x7ff65ed5c40e
cmp cl, 0x30
jl 0x7ff65ed5c2d2
movzx edi, cl
movabs r13, 0xccccccccccccccc
nop word [rax + rax]
cmp dil, 0x39
ja 0x7ff65ed5c2d2
cmp rsi, r13
jb 0x7ff65ed5c2ab
jne 0x7ff65ed5c3d9
cmp dil, 0x38
ja 0x7ff65ed5c3d9
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movzx ecx, dil
inc r15d
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jge 0x7ff65ed5c290
mov rax, rdx
test r12b, r12b
je 0x7ff65ed5c31d
cmp byte [rax], 0x30
mov rdx, rax
jl 0x7ff65ed5c31d
movzx edi, byte [rax]
mov rdx, rax
cmp dil, 0x39
ja 0x7ff65ed5c31d
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rdx, qword [rbx + 0x28]
movzx eax, dil
sub eax, 0x30
mulsd xmm6, xmm7
movzx edi, byte [rdx]
movd xmm0, eax
mov rax, rdx
cvtdq2pd xmm0, xmm0
addsd xmm6, xmm0
cmp dil, 0x30
jge 0x7ff65ed5c2e5
cmp byte [rdx], 0x2e
mov r13d, ebp
jne 0x7ff65ed5c4c3
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x7ff65ed5c563
test r12b, r12b
jne 0x7ff65ed5c509
cmp byte [rsp + 0xb8], bpl
mov r8, rcx
mov eax, r14d
movabs r12, 0x1fffffffffffff
cmovne rax, rsi
mov rsi, rax
nop dword [rax + rax]
mov r9, rcx
mov rdx, r8
cmp dil, 0x39
ja 0x7ff65ed5c3bf
cmp rsi, r12
ja 0x7ff65ed5c3bf
mov rcx, rbx
call fcn.7ff65ed5a6e0
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
dec r13d
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
test rsi, rsi
lea eax, [r15 + 1]
mov r8, rcx
mov r9, rcx
cmove eax, r15d
mov rdx, rcx
movzx edi, byte [rcx]
mov r15d, eax
cmp dil, 0x30
jge 0x7ff65ed5c370
movzx edi, byte [r9]
xorps xmm6, xmm6
test rsi, rsi
js 0x7ff65ed5c4a2
cvtsi2sd xmm6, rsi
jmp 0x7ff65ed5c4ba
xorps xmm6, xmm6
test rsi, rsi
js 0x7ff65ed5c3ee
cvtsi2sd xmm6, rsi
mov r12b, 1
jmp 0x7ff65ed5c2d2
mov rax, rsi
mov rcx, rsi
shr rcx, 1
and eax, 1
or rcx, rax
mov r12b, 1
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
jmp 0x7ff65ed5c2d2
cmp cl, 0x30
jl 0x7ff65ed5c2d2
movzx edi, cl
movabs r13, 0x1999999999999999
cmp dil, 0x39
jg 0x7ff65ed5c2d2
cmp rsi, r13
jb 0x7ff65ed5c43b
jne 0x7ff65ed5c467
cmp dil, 0x35
jg 0x7ff65ed5c467
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc r15d
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jge 0x7ff65ed5c424
jmp 0x7ff65ed5c31d
xorps xmm6, xmm6
test rsi, rsi
js 0x7ff65ed5c47f
cvtsi2sd xmm6, rsi
mov r12b, 1
mov rax, rdx
jmp 0x7ff65ed5c2da
mov rax, rsi
mov rcx, rsi
and eax, 1
shr rcx, 1
or rcx, rax
mov r12b, 1
mov rax, rdx
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
jmp 0x7ff65ed5c2da
mov rax, rsi
mov rcx, rsi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
mov r12b, 1
cmp dil, 0x30
jge 0x7ff65ed5c510
movzx eax, byte [rdx]
sub al, 0x45
test al, 0xdf
jne 0x7ff65ed5c678
mov rcx, rbx
call fcn.7ff65ed5a6e0
test r12b, r12b
jne 0x7ff65ed5c59e
cmp byte [rsp + 0xb8], bpl
mov rcx, rsi
mov eax, r14d
xorps xmm6, xmm6
cmove rcx, rax
test rcx, rcx
js 0x7ff65ed5c586
cvtsi2sd xmm6, rcx
jmp 0x7ff65ed5c59b
mov rdx, rcx
nop dword [rax]
cmp dil, 0x39
jg 0x7ff65ed5c4c3
cmp r15d, 0x11
jge 0x7ff65ed5c549
mulsd xmm6, xmm7
dec r13d
movsx eax, dil
sub eax, 0x30
movd xmm0, eax
lea eax, [r15 + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm8
movaps xmm6, xmm0
cmovbe eax, r15d
mov r15d, eax
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rdx, qword [rbx + 0x28]
movzx edi, byte [rdx]
cmp dil, 0x30
jge 0x7ff65ed5c510
jmp 0x7ff65ed5c4c3
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0xb0]
add rax, rcx
mov qword [rdx + 0x38], rax
mov dword [rdx + 0x30], 0xe
jmp 0x7ff65ed5c7ba
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 r15b, r15b
movzx edi, byte [rcx]
cmp dil, 0x2b
jne 0x7ff65ed5c5b8
mov rcx, rbx
call fcn.7ff65ed5a6e0
jmp 0x7ff65ed5c5c9
cmp dil, 0x2d
jne 0x7ff65ed5c5d0
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov r15b, 1
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x7ff65ed5c6f4
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rax, qword [rbx + 0x28]
movsx ebp, dil
sub ebp, 0x30
movzx edi, byte [rax]
test r15b, r15b
je 0x7ff65ed5c6b5
lea ecx, [r13 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r15d, edx
sar r15d, 2
mov eax, r15d
shr eax, 0x1f
add r15d, eax
cmp dil, 0x30
jl 0x7ff65ed5c676
nop
cmp dil, 0x39
ja 0x7ff65ed5c676
mov rcx, rbx
call fcn.7ff65ed5a6e0
lea ebp, [rbp + rbp*4]
movzx eax, dil
lea ebp, [rbp - 0x18]
lea ebp, [rax + rbp*2]
cmp ebp, r15d
jle 0x7ff65ed5c669
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x7ff65ed5c669
nop dword [rax]
cmp cl, 0x39
ja 0x7ff65ed5c669
mov rcx, rbx
call fcn.7ff65ed5a6e0
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x7ff65ed5c650
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x7ff65ed5c620
neg ebp
test r12b, r12b
je 0x7ff65ed5c737
mov edx, ebp
movaps xmm0, xmm6
add edx, r13d
call fcn.7ff65eca1de0
comisd xmm0, xmmword [0x7ff65f153888]
jbe 0x7ff65ed5c714
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x20]
mov dword [rdx + 0x30], 0xd
mov qword [rdx + 0x38], rax
jmp 0x7ff65ed5c7ba
mov r15d, 0x134
sub r15d, r13d
cmp dil, 0x30
jl 0x7ff65ed5c678
cmp dil, 0x39
ja 0x7ff65ed5c678
mov rcx, rbx
call fcn.7ff65ed5a6e0
lea ebp, [rbp + rbp*4]
movzx eax, dil
lea ebp, [rbp - 0x18]
lea ebp, [rax + rbp*2]
cmp ebp, r15d
jg 0x7ff65ed5c698
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x7ff65ed5c6c4
jmp 0x7ff65ed5c678
sub rcx, qword [rbx + 0x10]
mov rdx, qword [rsp + 0xb0]
add rcx, qword [rbx + 0x38]
mov dword [rdx + 0x30], 0xf
mov qword [rdx + 0x38], rcx
jmp 0x7ff65ed5c7ba
cmp byte [rsp + 0xc8], 0
je 0x7ff65ed5c725
xorps xmm0, xmmword [0x7ff65f153e20]
mov rcx, qword [rsp + 0xc0]
movaps xmm1, xmm0
call fcn.7ff65eca55f0
jmp 0x7ff65ed5c789
cmp byte [rsp + 0xb8], 0
mov rcx, qword [rsp + 0xc0]
je 0x7ff65ed5c76a
cmp byte [rsp + 0xc8], 0
je 0x7ff65ed5c760
neg rsi
mov rdx, rsi
call fcn.7ff65eca56e0
jmp 0x7ff65ed5c789
mov rdx, rsi
call fcn.7ff65eca5650
jmp 0x7ff65ed5c789
cmp byte [rsp + 0xc8], 0
je 0x7ff65ed5c781
neg r14d
mov edx, r14d
call fcn.7ff65eca57a0
jmp 0x7ff65ed5c789
mov edx, r14d
call fcn.7ff65eca5730
test al, al
jne 0x7ff65ed5c7ba
mov rdx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x20]
mov dword [rdx + 0x30], 0x10
mov qword [rdx + 0x38], rax
jmp 0x7ff65ed5c7ba
sub rdx, qword [rbx + 0x10]
add rdx, qword [rbx + 0x38]
mov qword [rcx + 0x38], rdx
mov dword [rcx + 0x30], 3
mov r14, 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 r13
pop rdi
pop rsi
pop rbp
pop rbx
ret