Function at 0x14001cc50
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
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rdx, qword [rdx + 0x28]
mov r12, r8
movaps xmmword [rsp + 0x50], xmm7
mov rax, rdx
movaps xmmword [rsp + 0x40], xmm8
xorps xmm6, xmm6
sub rax, qword [rbx + 0x10]
add rax, qword [rbx + 0x38]
movzx edi, byte [rdx]
movaps xmmword [rsp + 0x30], xmm9
xorps xmm9, xmm9
mov qword [rsp + 0x28], rax
cmp dil, 0x2d
jne 0x14001ccc7
mov rcx, rbx
call fcn.140022680
mov rdx, qword [rbx + 0x28]
mov r13b, 1
mov rcx, qword [rsp + 0xc0]
movzx edi, byte [rdx]
jmp 0x14001ccca
xor r13b, r13b
movsd xmm7, qword [0x140256c28]
xor r15d, r15d
movsd xmm8, qword [0x140256c38]
mov esi, r15d
mov byte [rsp + 0xd8], sil
mov ebp, r15d
mov byte [rsp + 0x20], r13b
mov qword [rsp + 0x78], r14
cmp dil, 0x30
jne 0x14001cd19
mov rcx, rbx
mov r14d, r15d
call fcn.140022680
mov rcx, qword [rbx + 0x28]
xor dl, dl
mov byte [rsp + 0xc8], dl
jmp 0x14001cf23
lea eax, [rdi - 0x31]
cmp al, 8
ja 0x14001d4c2
mov rcx, rbx
call fcn.140022680
mov rax, qword [rbx + 0x28]
movsx r14d, dil
sub r14d, 0x30
movzx edi, byte [rax]
test r13b, r13b
je 0x14001cd94
cmp dil, 0x30
jl 0x14001cdeb
nop word [rax + rax]
cmp dil, 0x39
jg 0x14001cdeb
cmp r14d, 0xccccccc
jb 0x14001cd6b
jne 0x14001cde0
cmp dil, 0x38
jg 0x14001cde0
mov rcx, rbx
call fcn.140022680
mov rax, qword [rbx + 0x28]
lea ecx, [r14 + r14*4]
movsx r14d, dil
inc ebp
add r14d, 0xffffffd0
movzx edi, byte [rax]
lea r14d, [r14 + rcx*2]
cmp dil, 0x30
jge 0x14001cd50
jmp 0x14001cdeb
cmp dil, 0x30
jl 0x14001cdeb
nop word [rax + rax]
cmp dil, 0x39
jg 0x14001cdeb
cmp r14d, 0x19999999
jb 0x14001cdb7
jne 0x14001cde0
cmp dil, 0x35
jg 0x14001cde0
mov rcx, rbx
call fcn.140022680
mov rax, qword [rbx + 0x28]
lea ecx, [r14 + r14*4]
movsx r14d, dil
inc ebp
add r14d, 0xffffffd0
movzx edi, byte [rax]
lea r14d, [r14 + rcx*2]
cmp dil, 0x30
jge 0x14001cda0
jmp 0x14001cdeb
mov byte [rsp + 0xd8], 1
mov esi, r14d
xor r13b, r13b
mov rdx, rax
mov byte [rsp + 0xc8], r13b
cmp byte [rsp + 0xd8], r13b
je 0x14001ced0
movzx ecx, byte [rax]
cmp byte [rsp + 0x20], r15b
je 0x14001ce66
cmp cl, 0x30
jl 0x14001ced0
movzx edi, cl
movabs rax, 0xccccccccccccccc
cmp dil, 0x39
jg 0x14001ced0
cmp rsi, rax
jb 0x14001ce3e
jne 0x14001ceb3
cmp dil, 0x38
jg 0x14001ceb3
mov rcx, rbx
call fcn.140022680
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc ebp
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jl 0x14001ced0
jmp 0x14001ce1d
cmp cl, 0x30
jl 0x14001ced0
movzx edi, byte [rax]
movabs rax, 0x1999999999999999
cmp dil, 0x39
jg 0x14001ced0
cmp rsi, rax
jb 0x14001ce8b
jne 0x14001ceb3
cmp dil, 0x35
jg 0x14001ceb3
mov rcx, rbx
call fcn.140022680
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc ebp
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jl 0x14001ced0
jmp 0x14001ce6e
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x14001cec5
addsd xmm6, xmm8
mov r13b, 1
mov byte [rsp + 0xc8], r13b
mov rcx, rdx
test r13b, r13b
je 0x14001cf1b
cmp byte [rdx], 0x30
jl 0x14001cf1b
movzx edi, byte [rdx]
mov rcx, rdx
cmp dil, 0x39
jg 0x14001cf1b
mov rcx, rbx
call fcn.140022680
mov rcx, qword [rbx + 0x28]
movsx eax, dil
mov rdx, rcx
sub eax, 0x30
mulsd xmm6, xmm7
movzx edi, byte [rcx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
movaps xmm6, xmm0
cmp dil, 0x30
jge 0x14001cee0
movzx edx, byte [rsp + 0xc8]
cmp byte [rcx], 0x2e
mov r13d, r15d
jne 0x14001d054
mov rcx, rbx
call fcn.140022680
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
jbe 0x14001cf65
sub rcx, qword [rbx + 0x10]
mov rdx, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rdx + 0x30], reloc.WS2_32.dll_ntohl
mov qword [rdx + 0x38], rcx
jmp 0x14001d4d8
cmp byte [rsp + 0xc8], r13b
jne 0x14001cffc
cmp byte [rsp + 0xd8], r13b
movabs r12, 0x1fffffffffffff
mov eax, r14d
cmovne rax, rsi
mov rsi, rax
nop
mov rdx, rcx
cmp dil, 0x39
jg 0x14001cfd3
cmp rsi, r12
ja 0x14001cfd3
mov rcx, rbx
call fcn.140022680
movsx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
dec r13d
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
test rsi, rsi
lea eax, [rbp + 1]
mov rdx, rcx
cmove eax, ebp
movzx edi, byte [rcx]
mov ebp, eax
cmp dil, 0x30
jge 0x14001cf90
mov r12, qword [rsp + 0xd0]
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x14001cfed
addsd xmm6, xmm8
movzx edi, byte [rdx]
mov rcx, qword [rbx + 0x28]
mov byte [rsp + 0xc8], 1
cmp dil, 0x30
jl 0x14001d04c
cmp dil, 0x39
jg 0x14001d04c
cmp ebp, 0x11
jge 0x14001d037
mulsd xmm6, xmm7
dec r13d
movsx eax, dil
sub eax, 0x30
movd xmm0, eax
lea eax, [rbp + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm9
movaps xmm6, xmm0
cmovbe eax, ebp
mov ebp, eax
mov rcx, rbx
call fcn.140022680
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x14001d002
movzx edx, byte [rsp + 0xc8]
movzx eax, byte [rcx]
sub al, 0x45
test al, 0xdf
jne 0x14001d181
mov rcx, rbx
call fcn.140022680
cmp byte [rsp + 0xc8], r15b
jne 0x14001d09f
cmp byte [rsp + 0xd8], r15b
mov rcx, rsi
mov eax, r14d
xorps xmm6, xmm6
cmove rcx, rax
cvtsi2sd xmm6, rcx
test rcx, rcx
jns 0x14001d097
addsd xmm6, xmm8
mov byte [rsp + 0xc8], 1
mov rcx, qword [rbx + 0x28]
xor bpl, bpl
movzx edi, byte [rcx]
cmp dil, 0x2b
jne 0x14001d0b9
mov rcx, rbx
call fcn.140022680
jmp 0x14001d0ca
cmp dil, 0x2d
jne 0x14001d0d1
mov rcx, rbx
call fcn.140022680
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x14001d24d
mov rcx, rbx
call fcn.140022680
mov rax, qword [rbx + 0x28]
movsx r15d, dil
sub r15d, 0x30
movzx edi, byte [rax]
test bpl, bpl
je 0x14001d1f5
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 dil, 0x30
jl 0x14001d176
nop dword [rax]
cmp dil, 0x39
jg 0x14001d176
mov rcx, rbx
call fcn.140022680
lea ecx, [r15 + r15*4]
movsx eax, dil
lea r15d, [rcx - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jle 0x14001d169
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x14001d169
nop
cmp cl, 0x39
jg 0x14001d169
mov rcx, rbx
call fcn.140022680
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x14001d150
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x14001d120
neg r15d
movzx edx, byte [rsp + 0xc8]
test dl, dl
je 0x14001d2e1
lea ecx, [r15 + r13]
cmp ecx, 0xfffffecc
jge 0x14001d292
divsd xmm6, qword [0x140256c48]
lea edx, [rcx + 0x134]
cmp edx, 0xfffffecc
jge 0x14001d270
movaps xmm6, xmm9
cmp byte [rsp + 0x20], 0
je 0x14001d1c5
xorps xmm6, xmmword [0x140256ca0]
movaps xmm1, xmm6
mov rcx, r12
call fcn.140022330
test al, al
jne 0x14001d4d8
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x28]
mov dword [rdx + 0x30], reloc.WS2_32.dll_recv
mov qword [rdx + 0x38], rax
jmp 0x14001d4d8
mov ebp, 0x134
sub ebp, r13d
cmp dil, 0x30
jl 0x14001d179
nop word [rax + rax]
cmp dil, 0x39
jg 0x14001d179
mov rcx, rbx
call fcn.140022680
lea r15d, [r15 + r15*4]
movsx eax, dil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jg 0x14001d2c4
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x14001d210
jmp 0x14001d179
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0xc0]
add rax, rcx
mov qword [rdx + 0x38], rax
mov dword [rdx + 0x30], setsockopt
jmp 0x14001d4d8
movsxd rax, ecx
lea rcx, [rax*8 + 0x9a0]
lea rax, [0x140255860]
test edx, edx
js 0x14001d28d
mulsd xmm6, qword [rcx + rax]
jmp 0x14001d2b6
sub rax, rcx
jmp 0x14001d2b2
movsxd rax, ecx
lea rdx, [rax*8]
lea rax, [0x140255860]
test ecx, ecx
js 0x14001d2af
mulsd xmm6, qword [rdx + rax]
jmp 0x14001d2b6
sub rax, rdx
divsd xmm6, qword [rax]
comisd xmm6, xmmword [0x140256c50]
jbe 0x14001d1b7
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x28]
mov dword [rdx + 0x30], ntohl
mov qword [rdx + 0x38], rax
jmp 0x14001d4d8
cmp byte [rsp + 0xd8], 0
je 0x14001d418
cmp byte [rsp + 0x20], 0
je 0x14001d39a
mov rdx, qword [r12 + 0x38]
not rsi
inc rsi
lea rax, [rdx + 0x10]
cmp rax, qword [r12 + 0x40]
jbe 0x14001d324
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.14001c850
mov rdx, qword [r12 + 0x38]
lea rax, [rdx + 0x10]
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rdx + 8], rax
mov eax, __WSAFDIsSet
mov word [rdx + 0xe], ax
mov qword [rdx], rsi
test rsi, rsi
js 0x14001d37f
movabs r8, 0xffffffff00000000
mov eax, 0x196
mov word [rdx + 0xe], ax
test r8, rsi
jne 0x14001d365
mov eax, 0x1d6
mov word [rdx + 0xe], ax
test rsi, 0xffffffff80000000
jne 0x14001d4d8
or ax, 0x20
mov word [rdx + 0xe], ax
jmp 0x14001d4d8
cmp rsi, 0xffffffff80000000
jl 0x14001d4d8
mov eax, 0xb6
mov word [rdx + 0xe], ax
jmp 0x14001d4d8
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
cmp rax, qword [r12 + 0x40]
jbe 0x14001d3be
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.14001c850
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rcx + 8], rax
mov eax, 0x116
mov word [rcx + 0xe], ax
mov qword [rcx], rsi
test rsi, rsi
js 0x14001d3e7
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs r8, 0xffffffff00000000
test r8, rsi
jne 0x14001d3fe
or ax, 0x40
mov word [rcx + 0xe], ax
test rsi, 0xffffffff80000000
jne 0x14001d4d8
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x14001d4d8
cmp byte [rsp + 0x20], 0
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
je 0x14001d475
not r14d
inc r14d
cmp rax, qword [r12 + 0x40]
jbe 0x14001d449
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.14001c850
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
mov edx, 0x1f6
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rcx + 8], rax
test r14d, r14d
movsxd rax, r14d
mov qword [rcx], rax
mov eax, 0xb6
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x14001d4d8
cmp rax, qword [r12 + 0x40]
jbe 0x14001d490
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.14001c850
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rcx + 8], rax
mov eax, r14d
shr r14d, 0x1a
not r14w
mov qword [rcx], rax
and r14w, 0x20
mov eax, 0x1d6
or r14w, ax
mov word [rcx + 0xe], r14w
jmp 0x14001d4d8
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rdx
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
mov r14, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x80
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret