Function at 0x1400c1bd0
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 r13
push r15
sub rsp, 0x80
mov rbx, rdx
movaps xmmword [rsp + 0x60], xmm6
mov rdx, rcx
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm8
xorps xmm6, xmm6
xorps xmm8, xmm8
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x38]
sub rcx, qword [rbx + 0x10]
add rcx, rax
cmp byte [rax], 0x2d
mov qword [rsp + 0x30], rcx
jne 0x1400c1c36
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rsp + 0xc0]
mov r13b, 1
jmp 0x1400c1c39
xor r13b, r13b
mov rcx, qword [rbx + 0x28]
xor r15d, r15d
movsd xmm7, qword [0x1404b6a68]
xor r12b, r12b
mov byte [rsp + 0xd8], r13b
mov edi, r15d
mov qword [rsp + 0x78], r14
mov ebp, r15d
movsx esi, byte [rcx]
mov byte [rsp + 0xc8], r12b
cmp sil, 0x30
jne 0x1400c1c8d
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
mov r14d, r15d
mov qword [rsp + 0x28], r15
jmp 0x1400c1e48
lea eax, [rsi - 0x31]
cmp al, 8
ja 0x1400c22fc
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
lea r14d, [rsi - 0x30]
movzx esi, byte [rdx]
test r13b, r13b
je 0x1400c1d04
cmp sil, 0x30
jl 0x1400c1d56
nop word [rax + rax]
cmp sil, 0x39
ja 0x1400c1d56
cmp r14d, 0xccccccc
jb 0x1400c1cdb
jne 0x1400c1d50
cmp sil, 0x38
ja 0x1400c1d50
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
lea r14d, [r14 + r14*4]
movzx eax, sil
lea r14d, [r14 - 0x18]
inc ebp
movzx esi, byte [rdx]
lea r14d, [rax + r14*2]
cmp sil, 0x30
jge 0x1400c1cc0
jmp 0x1400c1d56
cmp sil, 0x30
jl 0x1400c1d56
nop word [rax + rax]
cmp sil, 0x39
ja 0x1400c1d56
cmp r14d, 0x19999999
jb 0x1400c1d27
jne 0x1400c1d50
cmp sil, 0x35
ja 0x1400c1d50
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
lea r14d, [r14 + r14*4]
movzx eax, sil
lea r14d, [r14 - 0x18]
inc ebp
movzx esi, byte [rdx]
lea r14d, [rax + r14*2]
cmp sil, 0x30
jge 0x1400c1d10
jmp 0x1400c1d56
mov r12b, 1
mov edi, r14d
movzx ecx, r12b
mov dword [rsp + 0x20], r14d
xor r12b, r12b
mov byte [rsp + 0xc8], cl
test cl, cl
je 0x1400c1df4
mov rax, qword [rbx + 0x28]
mov dword [rsp + 0x20], r14d
mov rdx, rax
mov byte [rsp + 0xc8], cl
movzx esi, byte [rax]
test r13b, r13b
je 0x1400c1f38
cmp sil, 0x30
jl 0x1400c1df4
mov dword [rsp + 0x20], r14d
movabs r13, 0xccccccccccccccc
mov byte [rsp + 0xc8], cl
nop dword [rax]
xor r12b, r12b
cmp sil, 0x39
ja 0x1400c1df4
cmp rdi, r13
jb 0x1400c1dce
jne 0x1400c1f03
cmp sil, 0x38
ja 0x1400c1f03
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
lea rax, [rdi + rdi*4]
movzx ecx, sil
inc ebp
sub ecx, 0x30
movzx esi, byte [rdx]
lea rdi, [rcx + rax*2]
cmp sil, 0x30
jge 0x1400c1db0
mov qword [rsp + 0x28], rdi
mov rax, rdx
test r12b, r12b
je 0x1400c1e48
cmp byte [rax], 0x30
mov rdx, rax
jl 0x1400c1e48
movzx esi, byte [rax]
nop dword [rax]
mov rdx, rax
cmp sil, 0x39
ja 0x1400c1e48
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
movzx eax, sil
sub eax, 0x30
mulsd xmm6, xmm7
movzx esi, byte [rdx]
movd xmm0, eax
mov rax, rdx
cvtdq2pd xmm0, xmm0
addsd xmm6, xmm0
cmp sil, 0x30
jge 0x1400c1e10
cmp byte [rdx], 0x2e
mov r13d, r15d
mov dword [rsp + 0x24], r15d
jne 0x1400c2017
mov rcx, rbx
call fcn.1400c00c0
mov rcx, qword [rbx + 0x28]
movzx esi, byte [rcx]
lea eax, [rsi - 0x30]
cmp al, 9
ja 0x1400c20b4
test r12b, r12b
jne 0x1400c205b
mov edi, dword [rsp + 0x20]
mov r8, rcx
cmp byte [rsp + 0xc8], r15b
mov r13d, edi
movabs r14, 0x1fffffffffffff
cmovne rdi, qword [rsp + 0x28]
nop
mov r9, rcx
mov rdx, r8
cmp sil, 0x39
ja 0x1400c1eed
cmp rdi, r14
ja 0x1400c1eed
mov rcx, rbx
call fcn.1400c00c0
dec dword [rsp + 0x24]
lea rax, [rdi + rdi*4]
movzx ecx, sil
sub ecx, 0x30
lea rdi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
test rdi, rdi
lea eax, [rbp + 1]
mov r8, rcx
mov r9, rcx
cmove eax, ebp
mov rdx, rcx
movzx esi, byte [rcx]
mov ebp, eax
cmp sil, 0x30
jge 0x1400c1ea0
xorps xmm6, xmm6
test rdi, rdi
js 0x1400c1fea
cvtsi2sd xmm6, rdi
jmp 0x1400c2002
xorps xmm6, xmm6
test rdi, rdi
js 0x1400c1f18
cvtsi2sd xmm6, rdi
mov r12b, 1
jmp 0x1400c1df4
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
mov r12b, 1
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
jmp 0x1400c1df4
cmp sil, 0x30
jl 0x1400c1df4
mov dword [rsp + 0x20], r14d
movabs r13, 0x1999999999999999
mov byte [rsp + 0xc8], cl
nop dword [rax + rax]
xor r12b, r12b
mov qword [rsp + 0x28], rdi
cmp sil, 0x39
ja 0x1400c1df4
cmp rdi, r13
jb 0x1400c1f7f
jne 0x1400c1faf
cmp sil, 0x35
ja 0x1400c1faf
mov rcx, rbx
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
lea rax, [rdi + rdi*4]
movzx ecx, sil
inc ebp
sub ecx, 0x30
movzx esi, byte [rdx]
lea rdi, [rcx + rax*2]
mov qword [rsp + 0x28], rdi
cmp sil, 0x30
jge 0x1400c1f60
jmp 0x1400c1e48
xorps xmm6, xmm6
test rdi, rdi
js 0x1400c1fc7
cvtsi2sd xmm6, rdi
mov r12b, 1
mov rax, rdx
jmp 0x1400c1e01
mov rax, rdi
mov rcx, rdi
and eax, 1
shr rcx, 1
or rcx, rax
mov r12b, 1
mov rax, rdx
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
jmp 0x1400c1e01
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
movzx esi, byte [r9]
mov r12b, 1
mov r14, r13
cmp sil, 0x30
jge 0x1400c2061
mov r13d, dword [rsp + 0x24]
cmp byte [rdx], 0x65
je 0x1400c2025
cmp byte [rdx], 0x45
jne 0x1400c21c9
mov rcx, rbx
call fcn.1400c00c0
test r12b, r12b
jne 0x1400c20ec
cmp byte [rsp + 0xc8], r15b
mov rcx, rdi
xorps xmm6, xmm6
cmove rcx, r14
test rcx, rcx
js 0x1400c20d4
cvtsi2sd xmm6, rcx
jmp 0x1400c20e9
mov r13d, r14d
mov rdx, rcx
mov r14, r13
cmp sil, 0x39
ja 0x1400c2012
mov rcx, rbx
cmp ebp, 0x11
jge 0x1400c209d
dec dword [rsp + 0x24]
mulsd xmm6, xmm7
movzx eax, sil
sub eax, 0x30
movd xmm0, eax
lea eax, [rbp + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm8
movaps xmm6, xmm0
cmovbe eax, ebp
mov ebp, eax
call fcn.1400c00c0
mov rdx, qword [rbx + 0x28]
movzx esi, byte [rdx]
cmp sil, 0x30
jge 0x1400c2061
jmp 0x1400c2012
sub rcx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rax + 0x30], send
mov qword [rax + 0x38], rcx
jmp 0x1400c230f
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 bpl, bpl
movzx esi, byte [rcx]
cmp sil, 0x2b
jne 0x1400c2106
mov rcx, rbx
call fcn.1400c00c0
jmp 0x1400c2117
cmp sil, 0x2d
jne 0x1400c211e
mov rcx, rbx
call fcn.1400c00c0
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx esi, byte [rcx]
lea eax, [rsi - 0x30]
cmp al, 9
ja 0x1400c224c
mov rcx, rbx
call fcn.1400c00c0
mov rax, qword [rbx + 0x28]
movsx r15d, sil
sub r15d, 0x30
movzx esi, byte [rax]
test bpl, bpl
je 0x1400c2209
lea ecx, [r13 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov ebp, edx
sar ebp, 2
mov eax, ebp
shr eax, 0x1f
add ebp, eax
cmp sil, 0x30
jl 0x1400c21c6
nop dword [rax]
cmp sil, 0x39
ja 0x1400c21c6
mov rcx, rbx
call fcn.1400c00c0
lea r15d, [r15 + r15*4]
movzx eax, sil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jle 0x1400c21b9
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x1400c21b9
nop
cmp cl, 0x39
ja 0x1400c21b9
mov rcx, rbx
call fcn.1400c00c0
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x1400c21a0
mov rax, qword [rbx + 0x28]
movzx esi, byte [rax]
cmp sil, 0x30
jge 0x1400c2170
neg r15d
test r12b, r12b
je 0x1400c228f
lea edx, [r15 + r13]
movaps xmm0, xmm6
call fcn.1400212b0
comisd xmm0, xmmword [0x1404b6af0]
jbe 0x1400c226c
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
mov dword [rax + 0x30], reloc.WS2_32.dll_listen
mov qword [rax + 0x38], rcx
jmp 0x1400c230f
mov ebp, 0x134
sub ebp, r13d
cmp sil, 0x30
jl 0x1400c21c9
cmp sil, 0x39
ja 0x1400c21c9
mov rcx, rbx
call fcn.1400c00c0
lea r15d, [r15 + r15*4]
movzx eax, sil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jg 0x1400c21ec
mov rax, qword [rbx + 0x28]
movzx esi, byte [rax]
cmp sil, 0x30
jge 0x1400c2217
jmp 0x1400c21c9
sub rcx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rax + 0x30], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x38], rcx
jmp 0x1400c230f
cmp byte [rsp + 0xd8], 0
je 0x1400c227d
xorps xmm0, xmmword [0x1404b6dc0]
mov rcx, qword [rsp + 0xd0]
movaps xmm1, xmm0
call fcn.140024af0
jmp 0x1400c22de
cmp byte [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
je 0x1400c22c2
cmp byte [rsp + 0xd8], 0
je 0x1400c22b8
neg rdi
mov rdx, rdi
call fcn.140024be0
jmp 0x1400c22de
mov rdx, rdi
call fcn.140024b50
jmp 0x1400c22de
cmp byte [rsp + 0xd8], 0
mov edx, dword [rsp + 0x20]
je 0x1400c22d9
neg edx
call fcn.140024cf0
jmp 0x1400c22de
call fcn.140024c90
test al, al
jne 0x1400c230f
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
mov dword [rax + 0x30], reloc.WS2_32.dll_recv
mov qword [rax + 0x38], rcx
jmp 0x1400c230f
sub rcx, qword [rbx + 0x10]
add rcx, qword [rbx + 0x38]
mov qword [rdx + 0x38], rcx
mov dword [rdx + 0x30], 3
mov r14, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
add rsp, 0x80
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret