Function at 0x180007790
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 rbx, qword [rbp - 0x19]
sub rax, rbx
cmp byte [r8], 0x2d
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x31], rax
jne 0x1800077fc
inc r8
mov r9b, 1
mov qword [rbp - 0x29], r8
jmp 0x1800077ff
xor r9b, r9b
movsx ecx, byte [r8]
xor r13d, r13d
movsd xmm2, qword [0x1802714c0]
xor sil, sil
mov qword [rsp + 0x80], r12
mov edi, r13d
mov byte [rbp + 0x7f], r9b
mov r14d, r13d
mov qword [rsp + 0x78], r15
cmp cl, 0x30
jne 0x18000783f
inc r8
mov r12d, r13d
mov qword [rbp - 0x29], r8
xor r15b, r15b
jmp 0x180007a05
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x180007f92
lea rdx, [r8 + 1]
lea eax, [rcx - 0x30]
movzx ecx, byte [rdx]
test r9b, r9b
je 0x1800078ae
cmp cl, 0x30
jl 0x180007904
mov r8, rdx
mov r9, rdx
nop dword [rax + rax]
cmp cl, 0x39
ja 0x1800078ff
cmp eax, 0xccccccc
jb 0x18000788a
jne 0x1800078fa
mov r8, r9
cmp cl, 0x38
ja 0x1800078fa
lea ecx, [rax + rax*4]
inc r14d
movsx eax, byte [r8]
lea rdx, [r8 + 1]
mov r8, rdx
mov r9, rdx
lea eax, [rax + rcx*2]
movzx ecx, byte [rdx]
add eax, 0xffffffd0
cmp cl, 0x30
jge 0x180007870
jmp 0x1800078ff
cmp cl, 0x30
jl 0x180007904
mov r8, rdx
mov r9, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x1800078ff
cmp eax, 0x19999999
jb 0x1800078d6
jne 0x1800078fa
mov r8, r9
cmp cl, 0x35
ja 0x1800078fa
lea ecx, [rax + rax*4]
inc r14d
movsx eax, byte [r8]
lea rdx, [r8 + 1]
mov r8, rdx
mov r9, rdx
lea eax, [rax + rcx*2]
movzx ecx, byte [rdx]
add eax, 0xffffffd0
cmp cl, 0x30
jge 0x1800078c0
jmp 0x1800078ff
mov sil, 1
mov edi, eax
movzx r9d, byte [rbp + 0x7f]
xor r15b, r15b
mov qword [rbp - 0x29], rdx
movzx r10d, sil
mov r8, rdx
mov r12d, eax
test sil, sil
je 0x180007a01
mov qword [rbp - 0x29], rdx
test r9b, r9b
je 0x180007991
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x180007a01
mov r9, rdx
mov qword [rbp - 0x29], rdx
movabs r10, 0xccccccccccccccc
xor r15b, r15b
cmp cl, 0x39
ja 0x180007a01
cmp rdi, r10
jb 0x18000795f
jne 0x180007989
mov rdx, r9
cmp cl, 0x38
ja 0x180007989
movsx ecx, byte [rdx]
lea r8, [rdx + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
lea rax, [rdi + rdi*4]
inc r14d
mov rdx, r8
mov r9, r8
lea rdi, [rcx + rax*2]
movzx ecx, byte [r8]
cmp cl, 0x30
jge 0x180007944
jmp 0x180007a01
mov rcx, rdi
jmp 0x180007aa7
movzx r9d, byte [rdx]
cmp r9b, 0x30
jl 0x180007a01
mov byte [rbp - 0x39], r10b
mov rsi, rdx
movabs r10, 0x1999999999999999
mov qword [rbp - 0x29], rdx
xor r15b, r15b
mov rcx, rdi
cmp r9b, 0x39
ja 0x1800079fd
cmp rdi, r10
jb 0x1800079d4
jne 0x180007aa3
mov rdx, rsi
cmp r9b, 0x35
ja 0x180007aa3
movsx ecx, byte [rdx]
lea r8, [rdx + 1]
movzx r9d, byte [r8]
lea rax, [rdi + rdi*4]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
inc r14d
mov rdx, r8
mov rsi, r8
lea rdi, [rcx + rax*2]
cmp r9b, 0x30
jge 0x1800079b0
movzx esi, byte [rbp - 0x39]
mov rbx, qword [rbp - 0x19]
cmp byte [r8], 0x2e
mov r11d, r13d
mov r10d, r12d
jne 0x180007bbd
movzx ecx, byte [r8 + 1]
inc r8
mov qword [rbp - 0x29], r8
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x180007baf
mov rdx, r8
mov r12d, r10d
test r15b, r15b
jne 0x180007b34
test sil, sil
jne 0x180007a43
mov edi, r10d
mov rax, r8
mov rcx, r8
movabs r9, 0x1fffffffffffff
cmp byte [r8], 0x39
jg 0x180007a91
mov rdx, rcx
cmp rdi, r9
ja 0x180007a91
movsx ecx, byte [rax]
lea r8, [rax + 1]
sub ecx, 0x30
mov qword [rbp - 0x29], r8
lea rax, [rdi + rdi*4]
dec r11d
mov rdx, r8
lea rdi, [rcx + rax*2]
test rdi, rdi
je 0x180007a85
inc r14d
cmp byte [r8], 0x30
mov rax, r8
mov rcx, rdx
jge 0x180007a53
xorps xmm1, xmm1
test rdi, rdi
js 0x180007b16
cvtsi2sd xmm1, rdi
jmp 0x180007b2e
movzx esi, byte [rbp - 0x39]
mov r15b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x180007ab9
cvtsi2sd xmm1, rcx
jmp 0x180007ace
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx eax, byte [r8]
cmp al, 0x30
jl 0x180007a01
mov rcx, r8
nop dword [rax]
cmp al, 0x39
ja 0x180007a01
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 0x180007ae0
jmp 0x180007a01
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movzx ecx, byte [rdx]
mov r15b, 1
cmp cl, 0x30
jl 0x180007bc0
movzx r10d, byte [r8]
mov rcx, rdx
mov r9, rdx
cmp r10b, 0x39
jg 0x180007bc0
cmp r14d, 0x11
jge 0x180007b85
lea rax, [rcx + 1]
mulsd xmm1, xmm2
mov qword [rbp - 0x29], rax
dec r11d
movsx eax, byte [rcx]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
comisd xmm0, xmm6
movaps xmm1, xmm0
jbe 0x180007b80
inc r14d
mov r9, rcx
jmp 0x180007b90
lea rax, [r9 + 1]
mov rcx, r9
mov qword [rbp - 0x29], rax
movzx r10d, byte [r9 + 1]
lea rax, [r9 + 1]
mov qword [rbp - 0x29], rax
lea rdx, [rcx + 1]
mov rcx, rdx
mov r9, rdx
cmp r10b, 0x30
jge 0x180007b47
jmp 0x180007bc0
mov r10, qword [rbp + 0x67]
mov edx, 0xe
jmp 0x180007f97
mov rdx, r8
cmp byte [rdx], 0x65
je 0x180007bce
cmp byte [rdx], 0x45
jne 0x180007ccf
inc rdx
mov qword [rbp - 0x29], rdx
test r15b, r15b
jne 0x180007c0c
mov rcx, rdi
test sil, sil
jne 0x180007be5
mov ecx, r12d
xorps xmm1, xmm1
test rcx, rcx
js 0x180007bf4
cvtsi2sd xmm1, rcx
jmp 0x180007c09
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 0x180007c1f
cmp cl, 0x2d
jne 0x180007c2a
mov r10b, 1
movzx ecx, byte [rdx + 1]
inc rdx
mov qword [rbp - 0x29], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x180007d90
movzx r9d, byte [rdx + 1]
lea r8, [rdx + 1]
movsx r13d, cl
sub r13d, 0x30
mov qword [rbp - 0x29], r8
test r10b, r10b
je 0x180007d43
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 0x180007ccc
cmp r9b, 0x39
ja 0x180007ccc
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 0x180007cc2
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x180007cc2
mov rcx, rdx
cmp al, 0x39
ja 0x180007cbe
movzx eax, byte [rcx + 1]
lea r8, [rcx + 1]
mov rdx, r8
mov rcx, r8
cmp al, 0x30
jge 0x180007ca8
mov qword [rbp - 0x29], rdx
movzx r9d, byte [rdx]
cmp r9b, 0x30
jge 0x180007c77
neg r13d
test r15b, r15b
je 0x180007e17
lea ecx, [r11 + r13]
cmp ecx, 0xfffffecc
jge 0x180007da7
mulsd xmm1, qword [0x180270f58]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x180007dce
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x18026b8a0]
movaps xmm6, xmm1
sub rcx, rax
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x180271690]
jbe 0x180007dce
mov rax, qword [rbp + 0x67]
mov rcx, qword [rbp - 0x31]
mov dword [rax + 0x30], 0xd
mov qword [rax + 0x38], rcx
jmp 0x180007faf
mov edx, 0x134
sub edx, r11d
cmp r9b, 0x30
jl 0x180007ccf
cmp r9b, 0x39
ja 0x180007ccf
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 0x180007d2b
cmp byte [r9], 0x30
mov r8, r9
jl 0x180007ccf
movzx r9d, byte [r9]
jmp 0x180007d55
mov rax, qword [rbp + 0x67]
sub rdx, rbx
mov dword [rax + 0x30], 0xf
mov qword [rax + 0x38], rdx
jmp 0x180007faf
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x180007d0c
lea rcx, [0x18026b8a0]
movaps xmm6, xmm1
mulsd xmm6, qword [rax + rcx]
jmp 0x180007d1d
cmp byte [rbp + 0x7f], 0
je 0x180007ddb
xorps xmm6, xmmword [0x180271cd0]
mov rbx, qword [rbp + 0x77]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x180007df6
lea rcx, [rbx + 0x20]
call fcn.1800083c0
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 0x180007faf
mov r14, qword [rbp + 0x77]
mov rax, qword [r14 + 0x40]
sub rax, qword [r14 + 0x38]
test sil, sil
je 0x180007f07
cmp byte [rbp + 0x7f], 0
je 0x180007e9b
neg rdi
cmp rax, 0x10
jge 0x180007e44
lea rcx, [r14 + 0x20]
call fcn.1800083c0
mov rcx, qword [r14 + 0x38]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [r14 + 0x38], rax
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov word [rcx + 0xe], 0x96
test rdi, rdi
js 0x180007e83
movabs rdx, 0xffffffff00000000
mov eax, 0x196
mov word [rcx + 0xe], ax
test rdx, rdi
jne 0x180007eed
mov eax, 0x1d6
jmp 0x180007ee9
cmp rdi, 0xffffffff80000000
jl 0x180007faf
mov word [rcx + 0xe], 0xb6
jmp 0x180007faf
cmp rax, 0x10
jge 0x180007eaa
lea rcx, [r14 + 0x20]
call fcn.1800083c0
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], rdi
test rdi, rdi
js 0x180007ed6
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x180007eed
or ax, 0x40
mov word [rcx + 0xe], ax
test rdi, 0xffffffff80000000
jne 0x180007faf
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x180007faf
cmp byte [rbp + 0x7f], 0
je 0x180007f4e
neg r12d
cmp rax, 0x10
jge 0x180007f1f
lea rcx, [r14 + 0x20]
call fcn.1800083c0
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 0x180007faf
cmp rax, 0x10
jge 0x180007f5d
lea rcx, [r14 + 0x20]
call fcn.1800083c0
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 0x180007faf
mov edx, 3
mov ecx, 0x30
mov eax, 0x38
sub r8, rbx
mov r9, r10
mov dword [r10 + rcx], edx
mov qword [r10 + rax], 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