Function at 0x14003a400
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov r13, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x30], xmm0
movsd xmm6, qword [rdx + 0x10]
movsd qword [rbp - 0x20], xmm6
mov qword [rbp - 0x18], rdx
movq r8, xmm0
mov rax, r8
mov r12, qword [rbp - 0x20]
sub rax, r12
mov qword [rbp - 0x38], rax
xorps xmm3, xmm3
xorps xmm1, xmm1
cmp byte [r8], 0x2d
jne 0x14003a469
inc r8
mov qword [rbp - 0x30], r8
mov r10b, 1
jmp 0x14003a46c
xor r10b, r10b
mov byte [rbp - 0x40], r10b
xor esi, esi
mov r9d, esi
xor r11b, r11b
mov byte [rbp + 0x58], r11b
mov ebx, esi
movsx ecx, byte [r8]
cmp cl, 0x30
jne 0x14003a496
mov edi, esi
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
jmp 0x14003a555
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x14003a9f0
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
lea edi, [rcx - 0x30]
movzx eax, byte [rdx]
test r10b, r10b
je 0x14003a501
cmp al, 0x30
jl 0x14003a555
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
ja 0x14003a555
cmp edi, 0xccccccc
jb 0x14003a4db
jne 0x14003a54b
mov r8, rcx
cmp al, 0x38
ja 0x14003a54b
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
lea ecx, [rdi - 6]
lea ecx, [rdi + rcx*4]
movsx eax, byte [r8]
lea edi, [rax + rcx*2]
inc ebx
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x14003a4c2
jmp 0x14003a555
cmp al, 0x30
jl 0x14003a555
mov r8, rdx
mov rcx, rdx
nop dword [rax + rax]
cmp al, 0x39
jg 0x14003a555
cmp edi, 0x19999999
jb 0x14003a525
jne 0x14003a54b
mov r8, rcx
cmp al, 0x35
jg 0x14003a54b
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
lea ecx, [rdi - 6]
lea ecx, [rdi + rcx*4]
movsx eax, byte [r8]
lea edi, [rax + rcx*2]
inc ebx
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x14003a510
jmp 0x14003a555
mov r11b, 1
mov byte [rbp + 0x58], r11b
mov r9d, edi
xor r15b, r15b
movsd xmm2, qword [0x1404dd218]
test r11b, r11b
je 0x14003a6a7
test r10b, r10b
je 0x14003a5ec
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x14003a6a7
mov r8, rdx
mov r10, rdx
movabs r11, 0xccccccccccccccc
nop word [rax + rax]
cmp cl, 0x39
ja 0x14003a6a7
cmp r9, r11
jb 0x14003a5a8
jne 0x14003a5d4
mov r8, r10
cmp cl, 0x38
ja 0x14003a5d4
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [r9 + r9*4]
lea r9, [rcx + rax*2]
inc ebx
mov r8, rdx
mov r10, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x14003a590
jmp 0x14003a6a7
mov rcx, r9
mov r15b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x14003a658
cvtsi2sd xmm1, rcx
jmp 0x14003a66d
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x14003a6a7
mov r10, rdx
mov r11, rdx
movabs r14, 0x1999999999999999
nop word [rax + rax]
mov rcx, r9
cmp r8b, 0x39
ja 0x14003a6a7
cmp r9, r14
jb 0x14003a62d
jne 0x14003a5d7
mov r10, r11
cmp r8b, 0x35
ja 0x14003a5d7
lea rdx, [r10 + 1]
mov qword [rbp - 0x30], rdx
movsx ecx, byte [r10]
sub ecx, 0x30
lea rax, [r9 + r9*4]
lea r9, [rcx + rax*2]
inc ebx
mov r10, rdx
mov r11, rdx
movzx r8d, byte [rdx]
cmp r8b, 0x30
jge 0x14003a610
jmp 0x14003a6a7
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x14003a6a7
mov r8, rdx
cmp cl, 0x39
ja 0x14003a6a7
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
mov r8, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x14003a678
mov r14d, esi
cmp byte [rdx], 0x2e
jne 0x14003a7ca
lea r8, [rdx + 1]
mov qword [rbp - 0x30], r8
movzx ecx, byte [r8]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14003a7fe
mov rdx, r8
test r15b, r15b
jne 0x14003a75d
cmp byte [rbp + 0x58], sil
jne 0x14003a6df
mov r9d, edi
mov rcx, r8
mov r10, r8
movzx eax, byte [r8]
movabs r11, 0x1fffffffffffff
cmp al, 0x39
jg 0x14003a730
mov rdx, r10
cmp r9, r11
ja 0x14003a730
lea r8, [rcx + 1]
mov rdx, r8
mov qword [rbp - 0x30], r8
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [r9 + r9*4]
lea r9, [rcx + rax*2]
dec r14d
test r9, r9
je 0x14003a722
inc ebx
movzx eax, byte [r8]
mov rcx, r8
mov r10, rdx
cmp al, 0x30
jge 0x14003a6f3
xorps xmm1, xmm1
test r9, r9
js 0x14003a73f
cvtsi2sd xmm1, r9
jmp 0x14003a757
mov rcx, r9
shr rcx, 1
mov rax, r9
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r15b, 1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x14003a7ca
mov rax, rdx
mov r11, rdx
mov r10, rdx
movzx ecx, byte [r8]
nop
mov rdx, r10
cmp cl, 0x39
jg 0x14003a7ca
cmp ebx, 0x11
jge 0x14003a7ae
lea rdx, [rax + 1]
mov rcx, rdx
mov qword [rbp - 0x30], rdx
movsx eax, byte [rax]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec r14d
comisd xmm0, xmm3
jbe 0x14003a7b9
inc ebx
jmp 0x14003a7b9
lea rdx, [r11 + 1]
mov rcx, rdx
mov qword [rbp - 0x30], rdx
mov rax, rdx
movzx ecx, byte [rcx]
mov r11, rdx
mov r10, rdx
cmp cl, 0x30
jge 0x14003a770
cmp byte [rdx], 0x65
je 0x14003a7d8
cmp byte [rdx], 0x45
jne 0x14003a8e3
inc rdx
mov qword [rbp - 0x30], rdx
test r15b, r15b
jne 0x14003a820
cmp byte [rbp + 0x58], sil
mov rcx, r9
jne 0x14003a7ef
mov ecx, edi
xorps xmm1, xmm1
test rcx, rcx
js 0x14003a808
cvtsi2sd xmm1, rcx
jmp 0x14003a81d
mov ecx, recv
jmp 0x14003a9f5
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r15b, 1
xor r11b, r11b
movzx ecx, byte [rdx]
cmp cl, 0x2b
je 0x14003a833
cmp cl, 0x2d
jne 0x14003a83d
mov r11b, 1
inc rdx
movzx ecx, byte [rdx]
mov qword [rbp - 0x30], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14003a96c
lea r8, [rdx + 1]
mov qword [rbp - 0x30], r8
movsx esi, cl
sub esi, 0x30
movzx r10d, byte [r8]
test r11b, r11b
je 0x14003a917
lea ecx, [r14 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r11d, edx
sar r11d, 2
mov eax, r11d
shr eax, 0x1f
add r11d, eax
cmp r10b, 0x30
jl 0x14003a8e1
movzx eax, r10b
nop dword [rax + rax]
cmp al, 0x39
jg 0x14003a8e1
lea rdx, [r8 + 1]
mov qword [rbp - 0x30], rdx
lea esi, [rsi + rsi*4]
movsx eax, byte [r8]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
mov r8, rdx
cmp esi, r11d
jle 0x14003a8da
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003a8da
mov rcx, rdx
nop dword [rax + rax]
cmp al, 0x39
ja 0x14003a8d6
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x14003a8c0
mov qword [rbp - 0x30], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x14003a890
neg esi
test r15b, r15b
je 0x14003a99b
lea edx, [rsi + r14]
movaps xmm0, xmm1
call fcn.1400218e0
comisd xmm0, xmmword [0x1404dd298]
jbe 0x14003a980
mov dword [r13 + 0x30], reloc.WS2_32.dll_listen
mov r8, qword [rbp - 0x38]
mov qword [r13 + 0x38], r8
jmp 0x14003aa0c
mov edx, 0x134
sub edx, r14d
cmp r10b, 0x30
jl 0x14003a8e3
movzx eax, r10b
nop dword [rax]
cmp al, 0x39
jg 0x14003a8e3
movsx eax, byte [r8]
inc r8
mov qword [rbp - 0x30], r8
lea esi, [rsi + rsi*4]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
cmp esi, edx
jg 0x14003a956
movzx eax, byte [r8]
cmp al, 0x30
jge 0x14003a930
jmp 0x14003a8e3
lea rax, [r13 + 0x30]
lea rdx, [rax + 8]
mov ecx, reloc.WS2_32.dll_listen
mov r8, qword [rbp - 0x38]
jmp 0x14003aa07
sub rdx, r12
mov dword [r13 + 0x30], reloc.WS2_32.dll_ntohs
mov qword [r13 + 0x38], rdx
jmp 0x14003aa0c
cmp byte [rbp - 0x40], 0
je 0x14003a98d
xorps xmm0, xmmword [0x1404dd780]
movaps xmm1, xmm0
mov rcx, qword [rbp + 0x50]
call fcn.140025390
jmp 0x14003a9da
mov rcx, qword [rbp + 0x50]
cmp byte [rbp + 0x58], 0
je 0x14003a9c2
cmp byte [rbp - 0x40], 0
je 0x14003a9b8
neg r9
mov rdx, r9
call fcn.140025480
jmp 0x14003a9da
mov rdx, r9
call fcn.1400253f0
jmp 0x14003a9da
cmp byte [rbp - 0x40], 0
je 0x14003a9d3
neg edi
mov edx, edi
call fcn.140025590
jmp 0x14003a9da
mov edx, edi
call fcn.140025530
test al, al
jne 0x14003aa0c
mov dword [r13 + 0x30], reloc.WS2_32.dll_recv
mov r8, qword [rbp - 0x38]
mov qword [r13 + 0x38], r8
jmp 0x14003aa0c
mov ecx, 3
lea rax, [r13 + 0x30]
mov edx, 8
mov r9, rax
sub r8, r12
add rdx, rax
mov dword [rax], ecx
mov qword [rdx], r8
movups xmm0, xmmword [rbp - 0x30]
mov rax, qword [rbp + 0x48]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm6
mov rbx, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret