Function at 0x1401bd8e0
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
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov r13, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdx
movq r9, xmm0
mov rax, r9
psrldq xmm0, 8
movq r15, xmm0
sub rax, r15
mov qword [rsp + 0x20], rax
xorps xmm6, xmm6
xorps xmm1, xmm1
cmp byte [r9], 0x2d
jne 0x1401bd946
inc r9
mov qword [rsp + 0x28], r9
mov r11b, 1
jmp 0x1401bd949
xor r11b, r11b
mov byte [rsp + 0xa8], r11b
xor edi, edi
mov ebx, edi
xor r12b, r12b
mov r10d, edi
movsx ecx, byte [r9]
cmp cl, 0x30
jne 0x1401bd974
mov esi, edi
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
jmp 0x1401bda32
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x1401be07c
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
lea esi, [rcx - 0x30]
movzx eax, byte [rdx]
test r11b, r11b
je 0x1401bd9e2
cmp al, 0x30
jl 0x1401bda32
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
ja 0x1401bda32
cmp esi, 0xccccccc
jb 0x1401bd9ba
jne 0x1401bda2d
mov r8, rcx
cmp al, 0x38
ja 0x1401bda2d
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r10d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x1401bd9a1
jmp 0x1401bda32
cmp al, 0x30
jl 0x1401bda32
mov r8, rdx
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
jg 0x1401bda32
cmp esi, 0x19999999
jb 0x1401bda05
jne 0x1401bda2d
mov r8, rcx
cmp al, 0x35
jg 0x1401bda2d
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r10d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x1401bd9f0
jmp 0x1401bda32
mov r12b, 1
mov ebx, esi
xor r14b, r14b
movsd xmm2, qword [0x14044a698]
test r12b, r12b
je 0x1401bdb80
test r11b, r11b
je 0x1401bdac2
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x1401bdb80
mov r8, rdx
mov r9, rdx
movabs r11, 0xccccccccccccccc
cmp cl, 0x39
ja 0x1401bdb80
cmp rbx, r11
jb 0x1401bda7f
jne 0x1401bdaad
mov r8, r9
cmp cl, 0x38
ja 0x1401bdaad
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
inc r10d
mov r8, rdx
mov r9, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x1401bda67
jmp 0x1401bdb80
mov rcx, rbx
mov r14b, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x1401bdb2a
cvtsi2sd xmm1, rcx
jmp 0x1401bdb3f
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x1401bdb80
mov r9, rdx
mov r11, rdx
movabs rbp, 0x1999999999999999
mov rcx, rbx
cmp r8b, 0x39
ja 0x1401bdb80
cmp rbx, rbp
jb 0x1401bdafd
jne 0x1401bdab0
mov r9, r11
cmp r8b, 0x35
ja 0x1401bdab0
lea rdx, [r9 + 1]
mov qword [rsp + 0x28], rdx
movsx ecx, byte [r9]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
inc r10d
mov r9, rdx
mov r11, rdx
movzx r8d, byte [rdx]
cmp r8b, 0x30
jge 0x1401bdae0
jmp 0x1401bdb80
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 0x1401bdb80
mov r8, rdx
nop word [rax + rax]
cmp cl, 0x39
ja 0x1401bdb80
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], 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 0x1401bdb50
mov ebp, edi
cmp byte [rdx], 0x2e
jne 0x1401bdcad
lea r9, [rdx + 1]
mov qword [rsp + 0x28], r9
movzx ecx, byte [r9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1401bdce1
mov rdx, r9
test r14b, r14b
jne 0x1401bdc3b
test r12b, r12b
jne 0x1401bdbb6
mov ebx, esi
mov rcx, r9
mov r8, r9
movzx eax, byte [r9]
movabs r11, 0x1fffffffffffff
nop word [rax + rax]
cmp al, 0x39
jg 0x1401bdc0e
mov rdx, r8
cmp rbx, r11
ja 0x1401bdc0e
lea r9, [rcx + 1]
mov rdx, r9
mov qword [rsp + 0x28], r9
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rbx + rbx*4]
lea rbx, [rcx + rax*2]
dec ebp
test rbx, rbx
je 0x1401bdc00
inc r10d
movzx eax, byte [r9]
mov rcx, r9
mov r8, rdx
cmp al, 0x30
jge 0x1401bdbd0
xorps xmm1, xmm1
test rbx, rbx
js 0x1401bdc1d
cvtsi2sd xmm1, rbx
jmp 0x1401bdc35
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov r14b, 1
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x1401bdcad
mov rax, rdx
mov r11, rdx
mov r8, rdx
movzx ecx, byte [r9]
nop dword [rax]
mov rdx, r8
cmp cl, 0x39
jg 0x1401bdcad
cmp r10d, 0x11
jge 0x1401bdc90
lea rdx, [rax + 1]
mov rcx, rdx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rax]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec ebp
comisd xmm0, xmm6
jbe 0x1401bdc9c
inc r10d
jmp 0x1401bdc9c
lea rdx, [r11 + 1]
mov rcx, rdx
mov qword [rsp + 0x28], rdx
mov rax, rdx
movzx ecx, byte [rcx]
mov r11, rdx
mov r8, rdx
cmp cl, 0x30
jge 0x1401bdc50
cmp byte [rdx], 0x65
je 0x1401bdcbb
cmp byte [rdx], 0x45
jne 0x1401bddc4
inc rdx
mov qword [rsp + 0x28], rdx
test r14b, r14b
jne 0x1401bdd03
test r12b, r12b
mov rcx, rbx
jne 0x1401bdcd2
mov ecx, esi
xorps xmm1, xmm1
test rcx, rcx
js 0x1401bdceb
cvtsi2sd xmm1, rcx
jmp 0x1401bdd00
mov edx, recvfrom
jmp 0x1401be081
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov r14b, 1
xor r10b, r10b
movzx ecx, byte [rdx]
cmp cl, 0x2b
je 0x1401bdd16
cmp cl, 0x2d
jne 0x1401bdd21
mov r10b, 1
inc rdx
movzx ecx, byte [rdx]
mov qword [rsp + 0x28], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1401bde70
lea r8, [rdx + 1]
mov qword [rsp + 0x28], r8
movsx edi, cl
sub edi, 0x30
movzx r9d, byte [r8]
test r10b, r10b
je 0x1401bde31
lea ecx, [rbp + 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 0x1401bddc2
movzx eax, r9b
nop
cmp al, 0x39
jg 0x1401bddc2
lea rdx, [r8 + 1]
mov qword [rsp + 0x28], rdx
lea edi, [rdi + rdi*4]
movsx eax, byte [r8]
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
mov r8, rdx
cmp edi, r10d
jle 0x1401bddbb
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x1401bddbb
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x1401bddb6
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x1401bdda0
mov qword [rsp + 0x28], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x1401bdd70
neg edi
test r14b, r14b
je 0x1401bdefd
lea ecx, [rdi + rbp]
cmp ecx, 0xfffffecc
jge 0x1401bde84
divsd xmm1, qword [0x14044a6a8]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x1401bde0d
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x140449480]
sub rcx, rax
movaps xmm6, xmm1
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x14044a6b0]
jbe 0x1401bdeac
mov dword [r13 + 0x30], recvfrom
mov rax, qword [rsp + 0x20]
mov qword [r13 + 0x38], rax
jmp 0x1401be099
mov edx, 0x134
sub edx, ebp
cmp r9b, 0x30
jl 0x1401bddc4
movzx eax, r9b
cmp al, 0x39
jg 0x1401bddc4
movsx eax, byte [r8]
inc r8
mov qword [rsp + 0x28], r8
lea edi, [rdi + rdi*4]
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
cmp edi, edx
jg 0x1401bde1b
movzx eax, byte [r8]
cmp al, 0x30
jge 0x1401bde42
jmp 0x1401bddc4
sub rdx, r15
mov dword [r13 + 0x30], reloc.WS2_32.dll_ntohs
mov qword [r13 + 0x38], rdx
jmp 0x1401be099
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x1401bddfc
lea rcx, [0x140449480]
movsd xmm6, qword [rax + rcx]
mulsd xmm6, xmm1
jmp 0x1401bde0d
cmp byte [rsp + 0xa8], 0
je 0x1401bdebd
xorps xmm6, xmmword [0x14044a990]
mov rdi, qword [rsp + 0xa0]
mov rax, qword [rdi + 0x40]
sub rax, qword [rdi + 0x38]
cmp rax, 0x10
jge 0x1401bdedc
lea rcx, [rdi + 0x20]
call fcn.1401b8de0
mov rcx, qword [rdi + 0x38]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsd qword [rcx], xmm6
mov word [rcx + 0xe], 0x216
jmp 0x1401be099
mov rdi, qword [rsp + 0xa0]
add rdi, 0x20
mov rax, qword [rdi + 0x20]
sub rax, qword [rdi + 0x18]
test r12b, r12b
je 0x1401bdff7
cmp byte [rsp + 0xa8], 0
je 0x1401bdf8c
neg rbx
cmp rax, 0x10
jge 0x1401bdf35
mov rcx, rdi
call fcn.1401b8de0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov word [rcx + 0xe], 0x96
test rbx, rbx
js 0x1401bdf74
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rbx
jne 0x1401bdfdd
mov eax, 0x1d6
jmp 0x1401bdfd9
cmp rbx, 0xffffffff80000000
jl 0x1401be099
mov word [rcx + 0xe], 0xb6
jmp 0x1401be099
cmp rax, 0x10
jge 0x1401bdf9a
mov rcx, rdi
call fcn.1401b8de0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov eax, 0x116
mov word [rcx + 0xe], ax
test rbx, rbx
js 0x1401bdfc6
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rbx
jne 0x1401bdfdd
or ax, 0x40
mov word [rcx + 0xe], ax
test rbx, 0xffffffff80000000
jne 0x1401be099
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x1401be099
cmp byte [rsp + 0xa8], 0
je 0x1401be03f
neg esi
cmp rax, 0x10
jge 0x1401be011
mov rcx, rdi
call fcn.1401b8de0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsxd rax, esi
mov qword [rcx], rax
mov eax, 0xb6
mov edx, 0x1f6
test esi, esi
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x1401be099
cmp rax, 0x10
jge 0x1401be04d
mov rcx, rdi
call fcn.1401b8de0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 0x10]
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, esi
mov qword [rcx], rax
shr esi, 0x1a
not si
and si, 0x20
mov eax, 0x1d6
or si, ax
mov word [rcx + 0xe], si
jmp 0x1401be099
mov edx, 3
mov ecx, gethostbyaddr
mov eax, reloc.WS2_32.dll_getservbyport
mov r8, r13
sub r9, r15
mov dword [rcx + r13], edx
mov qword [rax + r13], r9
movups xmm0, xmmword [rsp + 0x28]
mov rax, qword [rsp + 0x98]
movups xmmword [rax], xmm0
mov rbx, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret