Function at 0x1400c24d0
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 0x1400c2536
mov rcx, rbx
call fcn.1400c0a00
mov rdx, qword [rsp + 0xc0]
mov r13b, 1
jmp 0x1400c2539
xor r13b, r13b
mov rcx, qword [rbx + 0x28]
xor r15d, r15d
movsd xmm7, qword [0x140581398]
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 0x1400c258d
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1400c0a00
mov rdx, qword [rbx + 0x28]
mov r14d, r15d
mov qword [rsp + 0x28], r15
jmp 0x1400c2748
lea eax, [rsi - 0x31]
cmp al, 8
ja 0x1400c2bfc
mov rcx, rbx
call fcn.1400c0a00
mov rdx, qword [rbx + 0x28]
lea r14d, [rsi - 0x30]
movzx esi, byte [rdx]
test r13b, r13b
je 0x1400c2604
cmp sil, 0x30
jl 0x1400c2656
nop word [rax + rax]
cmp sil, 0x39
ja 0x1400c2656
cmp r14d, 0xccccccc
jb 0x1400c25db
jne 0x1400c2650
cmp sil, 0x38
ja 0x1400c2650
mov rcx, rbx
call fcn.1400c0a00
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 0x1400c25c0
jmp 0x1400c2656
cmp sil, 0x30
jl 0x1400c2656
nop word [rax + rax]
cmp sil, 0x39
ja 0x1400c2656
cmp r14d, 0x19999999
jb 0x1400c2627
jne 0x1400c2650
cmp sil, 0x35
ja 0x1400c2650
mov rcx, rbx
call fcn.1400c0a00
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 0x1400c2610
jmp 0x1400c2656
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 0x1400c26f4
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 0x1400c2838
cmp sil, 0x30
jl 0x1400c26f4
mov dword [rsp + 0x20], r14d
movabs r13, 0xccccccccccccccc
mov byte [rsp + 0xc8], cl
nop dword [rax]
xor r12b, r12b
cmp sil, 0x39
ja 0x1400c26f4
cmp rdi, r13
jb 0x1400c26ce
jne 0x1400c2803
cmp sil, 0x38
ja 0x1400c2803
mov rcx, rbx
call fcn.1400c0a00
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 0x1400c26b0
mov qword [rsp + 0x28], rdi
mov rax, rdx
test r12b, r12b
je 0x1400c2748
cmp byte [rax], 0x30
mov rdx, rax
jl 0x1400c2748
movzx esi, byte [rax]
nop dword [rax]
mov rdx, rax
cmp sil, 0x39
ja 0x1400c2748
mov rcx, rbx
call fcn.1400c0a00
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 0x1400c2710
cmp byte [rdx], 0x2e
mov r13d, r15d
mov dword [rsp + 0x24], r15d
jne 0x1400c2917
mov rcx, rbx
call fcn.1400c0a00
mov rcx, qword [rbx + 0x28]
movzx esi, byte [rcx]
lea eax, [rsi - 0x30]
cmp al, 9
ja 0x1400c29b4
test r12b, r12b
jne 0x1400c295b
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 0x1400c27ed
cmp rdi, r14
ja 0x1400c27ed
mov rcx, rbx
call fcn.1400c0a00
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 0x1400c27a0
xorps xmm6, xmm6
test rdi, rdi
js 0x1400c28ea
cvtsi2sd xmm6, rdi
jmp 0x1400c2902
xorps xmm6, xmm6
test rdi, rdi
js 0x1400c2818
cvtsi2sd xmm6, rdi
mov r12b, 1
jmp 0x1400c26f4
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 0x1400c26f4
cmp sil, 0x30
jl 0x1400c26f4
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 0x1400c26f4
cmp rdi, r13
jb 0x1400c287f
jne 0x1400c28af
cmp sil, 0x35
ja 0x1400c28af
mov rcx, rbx
call fcn.1400c0a00
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 0x1400c2860
jmp 0x1400c2748
xorps xmm6, xmm6
test rdi, rdi
js 0x1400c28c7
cvtsi2sd xmm6, rdi
mov r12b, 1
mov rax, rdx
jmp 0x1400c2701
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 0x1400c2701
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 0x1400c2961
mov r13d, dword [rsp + 0x24]
cmp byte [rdx], 0x65
je 0x1400c2925
cmp byte [rdx], 0x45
jne 0x1400c2ac9
mov rcx, rbx
call fcn.1400c0a00
test r12b, r12b
jne 0x1400c29ec
cmp byte [rsp + 0xc8], r15b
mov rcx, rdi
xorps xmm6, xmm6
cmove rcx, r14
test rcx, rcx
js 0x1400c29d4
cvtsi2sd xmm6, rcx
jmp 0x1400c29e9
mov r13d, r14d
mov rdx, rcx
mov r14, r13
cmp sil, 0x39
ja 0x1400c2912
mov rcx, rbx
cmp ebp, 0x11
jge 0x1400c299d
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.1400c0a00
mov rdx, qword [rbx + 0x28]
movzx esi, byte [rdx]
cmp sil, 0x30
jge 0x1400c2961
jmp 0x1400c2912
sub rcx, qword [rbx + 0x10]
mov rax, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rax + 0x30], ntohs
mov qword [rax + 0x38], rcx
jmp 0x1400c2c0f
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 0x1400c2a06
mov rcx, rbx
call fcn.1400c0a00
jmp 0x1400c2a17
cmp sil, 0x2d
jne 0x1400c2a1e
mov rcx, rbx
call fcn.1400c0a00
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx esi, byte [rcx]
lea eax, [rsi - 0x30]
cmp al, 9
ja 0x1400c2b4c
mov rcx, rbx
call fcn.1400c0a00
mov rax, qword [rbx + 0x28]
movsx r15d, sil
sub r15d, 0x30
movzx esi, byte [rax]
test bpl, bpl
je 0x1400c2b09
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 0x1400c2ac6
nop dword [rax]
cmp sil, 0x39
ja 0x1400c2ac6
mov rcx, rbx
call fcn.1400c0a00
lea r15d, [r15 + r15*4]
movzx eax, sil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jle 0x1400c2ab9
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x1400c2ab9
nop
cmp cl, 0x39
ja 0x1400c2ab9
mov rcx, rbx
call fcn.1400c0a00
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x1400c2aa0
mov rax, qword [rbx + 0x28]
movzx esi, byte [rax]
cmp sil, 0x30
jge 0x1400c2a70
neg r15d
test r12b, r12b
je 0x1400c2b8f
lea edx, [r15 + r13]
movaps xmm0, xmm6
call fcn.140021060
comisd xmm0, xmmword [0x140581420]
jbe 0x1400c2b6c
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 0x1400c2c0f
mov ebp, 0x134
sub ebp, r13d
cmp sil, 0x30
jl 0x1400c2ac9
cmp sil, 0x39
ja 0x1400c2ac9
mov rcx, rbx
call fcn.1400c0a00
lea r15d, [r15 + r15*4]
movzx eax, sil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jg 0x1400c2aec
mov rax, qword [rbx + 0x28]
movzx esi, byte [rax]
cmp sil, 0x30
jge 0x1400c2b17
jmp 0x1400c2ac9
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 0x1400c2c0f
cmp byte [rsp + 0xd8], 0
je 0x1400c2b7d
xorps xmm0, xmmword [0x140581740]
mov rcx, qword [rsp + 0xd0]
movaps xmm1, xmm0
call fcn.1400248b0
jmp 0x1400c2bde
cmp byte [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
je 0x1400c2bc2
cmp byte [rsp + 0xd8], 0
je 0x1400c2bb8
neg rdi
mov rdx, rdi
call fcn.1400249a0
jmp 0x1400c2bde
mov rdx, rdi
call fcn.140024910
jmp 0x1400c2bde
cmp byte [rsp + 0xd8], 0
mov edx, dword [rsp + 0x20]
je 0x1400c2bd9
neg edx
call fcn.140024a50
jmp 0x1400c2bde
call fcn.1400249f0
test al, al
jne 0x1400c2c0f
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 0x1400c2c0f
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