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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov r14, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x40], xmm0
movsd xmm7, qword [rdx + 0x10]
movsd qword [rbp - 0x30], xmm7
mov qword [rbp - 0x28], rdx
movq rdx, xmm0
mov rax, rdx
sub rax, qword [rbp - 0x30]
mov qword [rbp - 0x50], rax
xorps xmm6, xmm6
xorps xmm1, xmm1
cmp byte [rdx], 0x2d
jne 0x14002856f
inc rdx
mov qword [rbp - 0x40], rdx
mov r13b, 1
jmp 0x140028572
xor r13b, r13b
xor r10d, r10d
xor r9b, r9b
mov byte [rbp + 0x58], r9b
xor r15d, r15d
lea ebx, [r10 + 0x30]
lea r11d, [r10 + 8]
cmp byte [rdx], bl
jne 0x14002859a
xor edi, edi
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
jmp 0x14002865f
mov al, byte [rdx]
sub al, 0x31
cmp al, r11b
ja 0x140028be1
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movsx edi, byte [rdx]
sub edi, ebx
test r13b, r13b
je 0x14002860b
cmp byte [r8], bl
jl 0x14002865f
mov rdx, r8
mov rcx, r8
mov al, byte [r8]
mov esi, 0xccccccc
cmp al, 0x39
ja 0x14002865f
cmp edi, esi
jb 0x1400285e5
jne 0x140028655
mov rdx, rcx
cmp al, 0x38
ja 0x140028655
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
lea ecx, [rdi - 6]
lea ecx, [rdi + rcx*4]
movsx eax, byte [rdx]
lea edi, [rax + rcx*2]
inc r15d
mov al, byte [r8]
mov rdx, r8
mov rcx, r8
cmp al, bl
jge 0x1400285d0
jmp 0x14002865f
cmp byte [r8], bl
jl 0x14002865f
mov rdx, r8
mov rcx, r8
mov al, byte [r8]
mov esi, 0x19999999
cmp al, 0x39
jg 0x14002865f
cmp edi, esi
jb 0x14002862f
jne 0x140028655
mov rdx, rcx
cmp al, 0x35
jg 0x140028655
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
lea ecx, [rdi - 6]
lea ecx, [rdi + rcx*4]
movsx eax, byte [rdx]
lea edi, [rax + rcx*2]
inc r15d
mov al, byte [r8]
mov rdx, r8
mov rcx, r8
cmp al, bl
jge 0x14002861e
jmp 0x14002865f
mov r9b, 1
mov byte [rbp + 0x58], r9b
mov r10d, edi
xor sil, sil
movsd xmm2, qword [0x140124000]
test r9b, r9b
je 0x14002879c
mov al, byte [r8]
test r13b, r13b
je 0x1400286e8
cmp al, bl
jl 0x14002879c
mov rcx, r8
mov rdx, r8
movabs r9, 0xccccccccccccccc
cmp al, 0x39
ja 0x14002879c
cmp r10, r9
jb 0x1400286a9
jne 0x1400286d3
mov rcx, rdx
cmp al, 0x38
ja 0x1400286d3
lea r8, [rcx + 1]
mov qword [rbp - 0x40], r8
movsx ecx, byte [rcx]
sub ecx, ebx
lea rax, [r10 + r10*4]
lea r10, [rcx + rax*2]
inc r15d
mov rcx, r8
mov rdx, r8
mov al, byte [r8]
cmp al, bl
jge 0x140028693
jmp 0x14002879c
mov rcx, r10
mov sil, 1
xorps xmm1, xmm1
test rcx, rcx
js 0x140028752
cvtsi2sd xmm1, rcx
jmp 0x140028767
cmp al, bl
jl 0x14002879c
mov rdx, r8
mov r9, r8
movabs rcx, 0x1999999999999999
mov qword [rbp - 0x48], rcx
mov rcx, r10
cmp al, 0x39
ja 0x14002879c
cmp r10, qword [rbp - 0x48]
jb 0x14002872b
movabs rdx, 0x1999999999999999
cmp r10, rdx
jne 0x1400286d6
mov rdx, r9
cmp al, 0x35
ja 0x1400286d6
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movsx ecx, byte [rdx]
sub ecx, ebx
lea rax, [r10 + r10*4]
lea r10, [rcx + rax*2]
inc r15d
mov rdx, r8
mov r9, r8
mov al, byte [r8]
cmp al, bl
jge 0x140028704
jmp 0x14002879c
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov al, byte [r8]
cmp al, bl
jl 0x14002879c
mov rcx, r8
cmp al, 0x39
ja 0x14002879c
lea r8, [rcx + 1]
mov qword [rbp - 0x40], r8
movsx eax, byte [rcx]
sub eax, ebx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
mov rcx, r8
mov al, byte [r8]
cmp al, bl
jge 0x140028771
xor ebx, ebx
mov al, byte [r8]
cmp al, 0x2e
jne 0x1400287ac
inc r8
mov qword [rbp - 0x40], r8
mov rdx, r8
cmp al, 0x2e
jne 0x1400288bb
mov cl, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400288f1
mov r9, rdx
test sil, sil
jne 0x140028851
cmp byte [rbp + 0x58], bl
jne 0x1400287d8
mov r10d, edi
mov rcx, rdx
mov al, byte [r8]
cmp al, 0x39
jg 0x140028824
mov r9, rcx
movabs rax, 0x1fffffffffffff
cmp r10, rax
ja 0x140028824
lea r8, [rdx + 1]
mov r9, r8
mov qword [rbp - 0x40], r8
movsx ecx, byte [rdx]
sub ecx, 0x30
lea rax, [r10 + r10*4]
lea r10, [rcx + rax*2]
dec ebx
test r10, r10
je 0x140028817
inc r15d
mov al, byte [r8]
mov rdx, r8
mov rcx, r8
cmp al, 0x30
jge 0x1400287de
xorps xmm1, xmm1
test r10, r10
js 0x140028833
cvtsi2sd xmm1, r10
jmp 0x14002884b
mov rcx, r10
shr rcx, 1
mov rax, r10
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov sil, 1
mov cl, byte [r9]
mov rdx, r9
cmp cl, 0x30
jl 0x1400288bb
mov r11, r9
mov rcx, r9
mov al, byte [r8]
mov rdx, rcx
cmp al, 0x39
jg 0x1400288bb
cmp r15d, 0x11
jge 0x1400288a1
lea rdx, [r9 + 1]
mov rcx, rdx
mov qword [rbp - 0x40], rdx
movsx eax, byte [r9]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec ebx
comisd xmm0, xmm6
jbe 0x1400288ac
inc r15d
jmp 0x1400288ac
lea rdx, [r11 + 1]
mov rcx, rdx
mov qword [rbp - 0x40], rdx
mov r9, rdx
mov al, byte [rcx]
mov r11, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140028862
xor r9d, r9d
cmp byte [rdx], 0x65
je 0x1400288cc
cmp byte [rdx], 0x45
jne 0x1400289cd
inc rdx
mov qword [rbp - 0x40], rdx
test sil, sil
jne 0x140028917
mov ecx, edi
cmp byte [rbp + 0x58], r9b
cmovne rcx, r10
xorps xmm1, xmm1
test rcx, rcx
js 0x1400288ff
cvtsi2sd xmm1, rcx
jmp 0x140028914
lea rax, [r14 + 0x30]
mov ecx, select
jmp 0x140028bea
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov sil, 1
xor cl, cl
cmp byte [rdx], 0x2b
je 0x140028925
cmp byte [rdx], 0x2d
jne 0x14002892c
mov cl, 1
inc rdx
mov qword [rbp - 0x40], rdx
mov al, byte [rdx]
mov r15d, 0x30
sub al, r15b
cmp al, 9
ja 0x140028a8a
lea r8, [rdx + 1]
mov qword [rbp - 0x40], r8
movsx r9d, byte [rdx]
sub r9d, r15d
test cl, cl
je 0x140028a38
lea ecx, [rbx + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r11d, edx
sar r11d, 2
mov eax, r11d
shr eax, 0x1f
add r11d, eax
cmp byte [r8], r15b
jl 0x1400289ca
mov al, byte [r8]
cmp al, 0x39
jg 0x1400289ca
lea rdx, [r8 + 1]
mov qword [rbp - 0x40], rdx
lea r9d, [r9 + r9*4]
movsx eax, byte [r8]
lea r9d, [r9 - 0x18]
lea r9d, [rax + r9*2]
mov r8, rdx
cmp r9d, r11d
jle 0x1400289c3
mov al, byte [rdx]
cmp al, r15b
jl 0x1400289c3
mov rcx, rdx
cmp al, 0x39
ja 0x1400289bf
lea r8, [rcx + 1]
mov rdx, r8
mov al, byte [r8]
mov rcx, r8
cmp al, r15b
jge 0x1400289a9
mov qword [rbp - 0x40], rdx
mov al, byte [rdx]
cmp al, r15b
jge 0x14002897b
neg r9d
test sil, sil
je 0x140028b10
lea ecx, [r9 + rbx]
mov edx, 0xfffffecc
cmp ecx, edx
jge 0x140028a9f
divsd xmm1, qword [0x140124008]
lea eax, [rcx + 0x134]
cmp eax, edx
jl 0x140028a15
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x140123130]
sub rcx, rax
movaps xmm6, xmm1
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x140124010]
jbe 0x140028ac3
mov dword [r14 + 0x30], reloc.WS2_32.dll_listen
mov r9, qword [rbp - 0x50]
mov qword [r14 + 0x38], r9
jmp 0x140028bfd
mov edx, 0x134
sub edx, ebx
cmp byte [r8], r15b
jl 0x1400289cd
mov al, byte [r8]
cmp al, 0x39
jg 0x1400289cd
movsx eax, byte [r8]
inc r8
mov qword [rbp - 0x40], r8
lea r9d, [r9 + r9*4]
lea r9d, [r9 - 0x18]
lea r9d, [rax + r9*2]
cmp r9d, edx
jg 0x140028a74
mov al, byte [r8]
cmp al, r15b
jge 0x140028a47
jmp 0x1400289cd
lea rax, [r14 + 0x30]
lea rdx, [rax + 8]
mov ecx, reloc.WS2_32.dll_listen
mov r9, qword [rbp - 0x50]
jmp 0x140028bf8
sub rdx, qword [rbp - 0x30]
mov dword [r14 + 0x30], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x38], rdx
jmp 0x140028bfd
movsxd rax, ecx
shl rax, 3
test ecx, ecx
js 0x140028a04
lea rcx, [0x140123130]
movsd xmm6, qword [rax + rcx]
mulsd xmm6, xmm1
jmp 0x140028a15
test r13b, r13b
je 0x140028acf
xorps xmm6, xmmword [0x140122260]
mov rbx, qword [rbp + 0x50]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x140028aef
mov edx, 1
lea rcx, [rbx + 0x20]
call fcn.14001b03c
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsd qword [rcx], xmm6
mov word [rcx + 0xe], 0x216
jmp 0x140028bfd
cmp byte [rbp + 0x58], 0
je 0x140028b49
mov rcx, qword [rbp + 0x50]
test r13b, r13b
je 0x140028b2c
neg r10
mov rdx, r10
call fcn.14001cebc
jmp 0x140028b34
mov rdx, r10
call fcn.14001d3dc
test al, al
jne 0x140028bfd
mov dword [r14 + 0x30], shutdown
jmp 0x140028a2b
mov rbx, qword [rbp + 0x50]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
test r13b, r13b
je 0x140028b9e
neg edi
cmp rax, 0x10
jge 0x140028b70
mov edx, 1
lea rcx, [rbx + 0x20]
call fcn.14001b03c
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movsxd rax, edi
mov qword [rcx], rax
mov eax, 0xb6
mov edx, 0x1f6
test edi, edi
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x140028bfd
cmp rax, 0x10
jge 0x140028bb2
mov edx, 1
lea rcx, [rbx + 0x20]
call fcn.14001b03c
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, edi
mov qword [rcx], rax
shr edi, 0x1a
not di
and di, 0x20
mov eax, 0x1d6
or di, ax
mov word [rcx + 0xe], di
jmp 0x140028bfd
lea rax, [rcx + 0x30]
mov ecx, 3
mov r8, rax
sub rdx, qword [rbp - 0x30]
mov r9, rdx
lea rdx, [rax + r11]
mov dword [rax], ecx
mov qword [rdx], r9
movups xmm0, xmmword [rbp - 0x40]
mov rax, qword [rbp + 0x48]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm7
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret