Function at 0x140010800
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 r15
sub rsp, 0x78
mov rbx, rdx
movaps xmmword [rsp + 0x50], xmm6
mov rdx, rcx
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm8
xorps xmm7, xmm7
xorps xmm6, xmm6
mov rax, qword [rbx + 0x28]
mov rcx, rax
sub rcx, qword [rbx + 0x10]
add rcx, qword [rbx + 0x38]
cmp byte [rax], 0x2d
mov qword [rsp + 0x20], rcx
jne 0x140010860
mov rcx, rbx
call fcn.140013480
mov rdx, qword [rsp + 0xb0]
mov r15b, 1
jmp 0x140010863
xor r15b, r15b
mov rcx, qword [rbx + 0x28]
xor r12d, r12d
movsd xmm8, qword [0x140049b10]
mov esi, r12d
mov qword [rsp + 0x70], r13
mov ebp, r12d
mov byte [rsp + 0xc8], r15b
movsx edi, byte [rcx]
mov qword [rsp + 0x68], r14
mov byte [rsp + 0xb8], sil
cmp dil, 0x30
jne 0x1400108af
mov rcx, rbx
mov r14d, r12d
call fcn.140013480
xor r13b, r13b
jmp 0x140010aa3
lea eax, [rdi - 0x31]
cmp al, 8
ja 0x140010ffe
mov rcx, rbx
call fcn.140013480
mov rcx, qword [rbx + 0x28]
lea r14d, [rdi - 0x30]
movzx edi, byte [rcx]
test r15b, r15b
je 0x140010924
cmp dil, 0x30
jl 0x14001097b
nop dword [rax]
cmp dil, 0x39
ja 0x14001097b
cmp r14d, 0xccccccc
jb 0x1400108fb
jne 0x140010970
cmp dil, 0x38
ja 0x140010970
mov rcx, rbx
call fcn.140013480
lea ecx, [r14 - 6]
movzx eax, dil
lea ecx, [r14 + rcx*4]
inc ebp
lea r14d, [rax + rcx*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x1400108e0
jmp 0x14001097b
cmp dil, 0x30
jl 0x14001097b
nop word [rax + rax]
cmp dil, 0x39
ja 0x14001097b
cmp r14d, 0x19999999
jb 0x140010947
jne 0x140010970
cmp dil, 0x35
ja 0x140010970
mov rcx, rbx
call fcn.140013480
lea ecx, [r14 - 6]
movzx eax, dil
lea ecx, [r14 + rcx*4]
inc ebp
lea r14d, [rax + rcx*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x140010930
jmp 0x14001097b
mov byte [rsp + 0xb8], 1
mov esi, r14d
xor r13b, r13b
cmp byte [rsp + 0xb8], r12b
je 0x140010aa3
cmp byte [rcx], 0x30
jl 0x140010aa3
movzx edi, byte [rcx]
test r15b, r15b
je 0x140010a07
movabs r15, 0xccccccccccccccc
nop word [rax + rax]
cmp dil, 0x39
ja 0x140010aa3
cmp rsi, r15
jb 0x1400109c7
jne 0x1400109f2
cmp dil, 0x38
ja 0x1400109f2
mov rcx, rbx
call fcn.140013480
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
inc ebp
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x1400109b0
jmp 0x140010aa3
mov rdx, rsi
mov r13b, 1
xorps xmm6, xmm6
test rdx, rdx
js 0x140010a53
cvtsi2sd xmm6, rdx
jmp 0x140010a68
movabs r15, 0x1999999999999999
mov rdx, rsi
cmp dil, 0x39
ja 0x140010aa3
cmp rsi, r15
jb 0x140010a2b
jne 0x1400109f5
cmp dil, 0x35
ja 0x1400109f5
mov rcx, rbx
call fcn.140013480
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
inc ebp
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x140010a11
jmp 0x140010aa3
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
cmp byte [rcx], 0x30
jl 0x140010aa3
movzx edi, byte [rcx]
cmp dil, 0x39
ja 0x140010aa3
mov rcx, rbx
call fcn.140013480
movzx eax, dil
sub eax, 0x30
mulsd xmm6, xmm8
movd xmm0, eax
mov rax, qword [rbx + 0x28]
cvtdq2pd xmm0, xmm0
movzx edi, byte [rax]
addsd xmm6, xmm0
cmp dil, 0x30
jge 0x140010a70
mov rdx, qword [rbx + 0x28]
mov r15d, r12d
cmp byte [rdx], 0x2e
jne 0x140010b6c
mov rcx, rbx
call fcn.140013480
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x140010bfc
test r13b, r13b
jne 0x140010bae
cmp byte [rsp + 0xb8], r12b
jne 0x140010ae3
mov esi, r14d
mov rax, rcx
movabs r13, 0x1fffffffffffff
mov r8, rcx
mov rdx, rax
cmp dil, 0x39
ja 0x140010b38
cmp rsi, r13
ja 0x140010b38
mov rcx, rbx
call fcn.140013480
movzx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
dec r15d
lea rsi, [rcx + rax*2]
test rsi, rsi
je 0x140010b22
inc ebp
mov rcx, qword [rbx + 0x28]
mov rax, rcx
mov r8, rcx
mov rdx, rcx
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x140010af0
xorps xmm6, xmm6
test rsi, rsi
js 0x140010b47
cvtsi2sd xmm6, rsi
jmp 0x140010b5f
mov rax, rsi
mov rcx, rsi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
movzx edi, byte [r8]
mov r13b, 1
cmp dil, 0x30
jge 0x140010bb1
movzx eax, byte [rdx]
cmp al, 0x65
je 0x140010b7b
cmp al, 0x45
jne 0x140010d0d
mov rcx, rbx
call fcn.140013480
test r13b, r13b
jne 0x140010c37
mov rcx, rsi
cmp byte [rsp + 0xb8], r12b
jne 0x140010b9c
mov ecx, r14d
xorps xmm6, xmm6
test rcx, rcx
js 0x140010c1f
cvtsi2sd xmm6, rcx
jmp 0x140010c34
mov rdx, rcx
cmp dil, 0x39
ja 0x140010b6c
mov rcx, rbx
call fcn.140013480
cmp ebp, 0x11
jge 0x140010bea
mulsd xmm6, xmm8
dec r15d
movzx eax, dil
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm7
movaps xmm6, xmm0
jbe 0x140010bea
inc ebp
mov rdx, qword [rbx + 0x28]
movzx edi, byte [rdx]
cmp dil, 0x30
jge 0x140010bb1
jmp 0x140010b6c
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rcx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x30], 0xe
mov qword [rcx + 0x38], rax
jmp 0x140011014
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
mov r13b, 1
mov rcx, qword [rbx + 0x28]
xor bpl, bpl
movzx edi, byte [rcx]
cmp dil, 0x2b
jne 0x140010c51
mov rcx, rbx
call fcn.140013480
jmp 0x140010c62
cmp dil, 0x2d
jne 0x140010c69
mov rcx, rbx
call fcn.140013480
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x140010dce
mov rcx, rbx
call fcn.140013480
mov rax, qword [rbx + 0x28]
movsx r12d, dil
sub r12d, 0x30
movzx edi, byte [rax]
test bpl, bpl
je 0x140010d82
lea ecx, [r15 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov ebp, edx
sar ebp, 2
mov eax, ebp
shr eax, 0x1f
add ebp, eax
cmp dil, 0x30
jl 0x140010d0a
cmp dil, 0x39
ja 0x140010d0a
mov rcx, rbx
call fcn.140013480
lea r12d, [r12 + r12*4]
movzx eax, dil
lea r12d, [r12 - 0x18]
lea r12d, [rax + r12*2]
cmp r12d, ebp
jle 0x140010cfd
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x140010cfd
cmp cl, 0x39
ja 0x140010cfd
mov rcx, rbx
call fcn.140013480
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x140010ce4
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x140010cb4
neg r12d
test r13b, r13b
je 0x140010e5e
lea ecx, [r12 + r15]
cmp ecx, 0xfffffecc
jge 0x140010df1
divsd xmm6, qword [0x14004af80]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x140010d57
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x140049fa0]
movaps xmm7, xmm6
sub rcx, rax
divsd xmm7, qword [rcx]
comisd xmm7, xmmword [0x140049b28]
jbe 0x140010e18
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x20]
mov dword [rcx + 0x30], 0xd
mov qword [rcx + 0x38], rax
jmp 0x140011014
mov ebp, 0x134
sub ebp, r15d
cmp dil, 0x30
jl 0x140010d0d
cmp dil, 0x39
ja 0x140010d0d
mov rcx, rbx
call fcn.140013480
lea r12d, [r12 + r12*4]
movzx eax, dil
lea r12d, [r12 - 0x18]
lea r12d, [rax + r12*2]
cmp r12d, ebp
jg 0x140010d65
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x140010d94
jmp 0x140010d0d
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rcx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x30], 0xf
mov qword [rcx + 0x38], rax
jmp 0x140011014
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x140010d46
lea rcx, [0x140049fa0]
movaps xmm7, xmm6
mulsd xmm7, qword [rax + rcx]
jmp 0x140010d57
cmp byte [rsp + 0xc8], 0
je 0x140010e29
xorps xmm7, xmmword [0x140049b60]
mov rcx, qword [rsp + 0xc0]
movaps xmm1, xmm7
call fcn.140012b90
test al, al
jne 0x140011014
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x20]
mov dword [rcx + 0x30], 0x10
mov qword [rcx + 0x38], rax
jmp 0x140011014
mov rbx, qword [rsp + 0xc0]
add rbx, 0x20
mov rax, qword [rbx + 0x20]
sub rax, qword [rbx + 0x18]
cmp byte [rsp + 0xb8], 0
je 0x140010f67
cmp byte [rsp + 0xc8], 0
je 0x140010ef7
neg rsi
cmp rax, 0x10
jge 0x140010ea0
mov edx, 1
mov rcx, rbx
call fcn.140010400
mov rcx, qword [rbx + 0x18]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
movups xmmword [rcx], xmm0
mov qword [rcx], rsi
mov word [rcx + 0xe], 0x96
test rsi, rsi
js 0x140010edf
movabs rdx, 0xffffffff00000000
mov eax, 0x196
mov word [rcx + 0xe], ax
test rdx, rsi
jne 0x140010f4d
mov eax, 0x1d6
jmp 0x140010f49
cmp rsi, 0xffffffff80000000
jl 0x140011014
mov word [rcx + 0xe], 0xb6
jmp 0x140011014
cmp rax, 0x10
jge 0x140010f0a
mov edx, 1
mov rcx, rbx
call fcn.140010400
mov rcx, qword [rbx + 0x18]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
mov eax, 0x116
movups xmmword [rcx], xmm0
mov word [rcx + 0xe], ax
mov qword [rcx], rsi
test rsi, rsi
js 0x140010f36
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rsi
jne 0x140010f4d
or ax, 0x40
mov word [rcx + 0xe], ax
test rsi, 0xffffffff80000000
jne 0x140011014
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x140011014
cmp byte [rsp + 0xc8], 0
je 0x140010fb6
neg r14d
cmp rax, 0x10
jge 0x140010f87
mov edx, 1
mov rcx, rbx
call fcn.140010400
mov rcx, qword [rbx + 0x18]
xorps xmm0, xmm0
test r14d, r14d
mov edx, 0x1f6
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
movsxd rax, r14d
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov eax, 0xb6
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x140011014
cmp rax, 0x10
jge 0x140010fc9
mov edx, 1
mov rcx, rbx
call fcn.140010400
mov rcx, qword [rbx + 0x18]
xorps xmm0, xmm0
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
mov eax, r14d
shr r14d, 0x1a
not r14w
movups xmmword [rcx], xmm0
mov qword [rcx], rax
and r14w, 0x20
mov eax, 0x1d6
or r14w, ax
mov word [rcx + 0xe], r14w
jmp 0x140011014
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rcx
mov dword [rdx + 0x30], 3
mov qword [rdx + 0x38], rax
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x30]
add rsp, 0x78
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret