Function at 0x14003f710
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 r15, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdx
movq r9, xmm0
mov rax, r9
psrldq xmm0, 8
movq r14, xmm0
sub rax, r14
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
xorps xmm1, xmm1
cmp byte [r9], 0x2d
jne 0x14003f779
inc r9
mov qword [rsp + 0x20], r9
mov r13b, 1
jmp 0x14003f77c
xor r13b, r13b
xor ebx, ebx
mov edi, ebx
xor r12b, r12b
mov r10d, ebx
movsx ecx, byte [r9]
cmp cl, 0x30
jne 0x14003f79f
mov esi, ebx
lea rdx, [r9 + 1]
mov qword [rsp + 0x20], rdx
jmp 0x14003f862
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x14003fe93
lea rdx, [r9 + 1]
mov qword [rsp + 0x20], rdx
lea esi, [rcx - 0x30]
movzx eax, byte [rdx]
test r13b, r13b
je 0x14003f811
cmp al, 0x30
jl 0x14003f862
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
ja 0x14003f862
cmp esi, 0xccccccc
jb 0x14003f7e5
jne 0x14003f85d
mov r8, rcx
cmp al, 0x38
ja 0x14003f85d
lea rdx, [r8 + 1]
mov qword [rsp + 0x20], rdx
lea esi, [rsi + rsi*4]
movsx eax, byte [r8]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
inc r10d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003f862
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jle 0x14003f7d4
jmp 0x14003f862
cmp al, 0x30
jl 0x14003f862
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jg 0x14003f862
nop
cmp esi, 0x19999999
jb 0x14003f831
jne 0x14003f85d
mov r8, rcx
cmp al, 0x35
jg 0x14003f85d
lea rdx, [r8 + 1]
mov qword [rsp + 0x20], rdx
lea esi, [rsi + rsi*4]
movsx eax, byte [r8]
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
inc r10d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003f862
mov rcx, rdx
mov r8, rdx
cmp al, 0x39
jle 0x14003f820
jmp 0x14003f862
mov r12b, 1
mov edi, esi
xor bpl, bpl
movsd xmm2, qword [0x140112198]
test r12b, r12b
je 0x14003f9a2
movzx eax, byte [rdx]
test r13b, r13b
je 0x14003f8f7
cmp al, 0x30
jl 0x14003f9a2
mov r8, rdx
cmp al, 0x39
jg 0x14003f9a2
mov rcx, rdx
movabs r9, 0xccccccccccccccc
nop
cmp rdi, r9
jb 0x14003f8ae
jne 0x14003f8e2
mov rcx, r8
cmp al, 0x38
ja 0x14003f8e2
lea rdx, [rcx + 1]
mov qword [rsp + 0x20], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r10d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003f9a2
mov r8, rdx
mov rcx, rdx
cmp al, 0x39
jle 0x14003f8a0
jmp 0x14003f9a2
mov r8, rdi
mov bpl, 1
xorps xmm1, xmm1
test r8, r8
js 0x14003f955
cvtsi2sd xmm1, r8
jmp 0x14003f96b
cmp al, 0x30
jl 0x14003f9a2
mov r9, rdx
cmp al, 0x39
jg 0x14003f9a2
mov rcx, rdx
movabs r11, 0x1999999999999999
mov r8, rdi
cmp rdi, r11
jb 0x14003f928
jne 0x14003f8e5
mov rcx, r9
cmp al, 0x35
ja 0x14003f8e5
lea rdx, [rcx + 1]
mov qword [rsp + 0x20], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r10d
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003f9a2
mov r9, rdx
mov rcx, rdx
cmp al, 0x39
jle 0x14003f917
jmp 0x14003f9a2
mov rax, r8
shr rax, 1
and r8d, 1
or rax, r8
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003f9a2
mov rcx, rdx
cmp al, 0x39
ja 0x14003f9a2
lea rdx, [rcx + 1]
mov qword [rsp + 0x20], rdx
movsx eax, byte [rcx]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
movzx eax, byte [rdx]
mov rcx, rdx
cmp al, 0x30
jge 0x14003f975
mov r11d, ebx
cmp byte [rdx], 0x2e
jne 0x14003fab8
inc rdx
mov qword [rsp + 0x20], rdx
movzx ecx, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14003fac2
mov r8, rdx
test bpl, bpl
jne 0x14003fa5c
test r12b, r12b
jne 0x14003f9d7
mov edi, esi
mov rcx, rdx
mov r9, rdx
movzx eax, byte [rdx]
movabs rbp, 0x1fffffffffffff
nop word [rax + rax]
cmp al, 0x39
jg 0x14003fa2e
mov r8, r9
cmp rdi, rbp
ja 0x14003fa2e
lea rdx, [rcx + 1]
mov r8, rdx
mov qword [rsp + 0x20], rdx
movsx ecx, byte [rcx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
dec r11d
test rdi, rdi
je 0x14003fa21
inc r10d
movzx eax, byte [rdx]
mov rcx, rdx
mov r9, rdx
cmp al, 0x30
jge 0x14003f9f0
xorps xmm1, xmm1
test rdi, rdi
js 0x14003fa3d
cvtsi2sd xmm1, rdi
jmp 0x14003fa55
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
mov bpl, 1
movzx ecx, byte [r8]
cmp cl, 0x30
jl 0x14003fab8
mov rcx, r8
movzx eax, byte [rdx]
cmp al, 0x39
jg 0x14003fab8
cmp r10d, 0x11
jge 0x14003faa2
lea rdx, [r8 + 1]
mov qword [rsp + 0x20], rdx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
movaps xmm1, xmm0
dec r11d
comisd xmm0, xmm6
jbe 0x14003faab
inc r10d
jmp 0x14003faab
lea rdx, [rcx + 1]
mov qword [rsp + 0x20], rdx
mov r8, rdx
movzx eax, byte [rdx]
mov rcx, rdx
cmp al, 0x30
jge 0x14003fa67
cmp byte [rdx], 0x65
jne 0x14003fad6
inc rdx
jmp 0x14003fae2
mov dword [r15 + 0x30], recv
sub rdx, r14
mov qword [r15 + 0x38], rdx
jmp 0x14003fea2
cmp byte [rdx], 0x45
jne 0x14003fbe4
inc rdx
mov qword [rsp + 0x20], rdx
test bpl, bpl
jne 0x14003fb1d
test r12b, r12b
mov rcx, rdi
jne 0x14003faf6
mov ecx, esi
xorps xmm1, xmm1
test rcx, rcx
js 0x14003fb05
cvtsi2sd xmm1, rcx
jmp 0x14003fb1a
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov bpl, 1
xor r9b, r9b
movzx ecx, byte [rdx]
cmp cl, 0x2b
je 0x14003fb30
cmp cl, 0x2d
jne 0x14003fb3b
mov r9b, 1
inc rdx
movzx ecx, byte [rdx]
mov qword [rsp + 0x20], rdx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14003fc9a
lea r8, [rdx + 1]
mov qword [rsp + 0x20], r8
movsx ebx, cl
sub ebx, 0x30
movzx r10d, byte [r8]
test r9b, r9b
je 0x14003fc55
lea ecx, [r11 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r9d, edx
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
cmp r10b, 0x30
jl 0x14003fbe2
movzx eax, r10b
nop word [rax + rax]
cmp al, 0x39
jg 0x14003fbe2
lea rdx, [r8 + 1]
mov qword [rsp + 0x20], rdx
lea ebx, [rbx + rbx*4]
movsx eax, byte [r8]
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
mov r8, rdx
cmp ebx, r9d
jle 0x14003fbdb
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003fbdb
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x14003fbd6
lea r8, [rcx + 1]
mov rdx, r8
movzx eax, byte [r8]
mov rcx, r8
cmp al, 0x30
jge 0x14003fbc0
mov qword [rsp + 0x20], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x14003fb90
neg ebx
test bpl, bpl
je 0x14003fd21
lea ecx, [rbx + r11]
cmp ecx, 0xfffffecc
jge 0x14003fcae
divsd xmm1, qword [0x140112388]
lea eax, [rcx + 0x134]
cmp eax, 0xfffffecc
jl 0x14003fc2e
movsxd rax, ecx
lea rax, [rax*8 + 0x9a0]
lea rcx, [0x140104240]
sub rcx, rax
movaps xmm6, xmm1
divsd xmm6, qword [rcx]
comisd xmm6, xmmword [0x140112390]
jbe 0x14003fcd5
mov dword [r15 + 0x30], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0xa8]
mov qword [r15 + 0x38], rax
jmp 0x14003fea2
mov r9d, 0x134
sub r9d, r11d
cmp r10b, 0x30
jl 0x14003fbe4
movzx eax, r10b
cmp al, 0x39
jg 0x14003fbe4
lea rdx, [r8 + 1]
mov qword [rsp + 0x20], rdx
lea ebx, [rbx + rbx*4]
movsx eax, byte [r8]
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
cmp ebx, r9d
jg 0x14003fc3c
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x30
jge 0x14003fc68
jmp 0x14003fbe4
sub rdx, r14
mov dword [r15 + 0x30], recv
mov qword [r15 + 0x38], rdx
jmp 0x14003fea2
movsxd rax, ecx
lea rax, [rax*8]
test ecx, ecx
js 0x14003fc1d
lea rcx, [0x140104240]
movaps xmm6, xmm1
mulsd xmm6, qword [rax + rcx]
jmp 0x14003fc2e
test r13b, r13b
je 0x14003fce1
xorps xmm6, xmmword [0x140112d60]
mov rbx, qword [rsp + 0xa0]
mov rax, qword [rbx + 0x40]
sub rax, qword [rbx + 0x38]
cmp rax, 0x10
jge 0x14003fd00
lea rcx, [rbx + 0x20]
call fcn.140040f80
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 0x14003fea2
mov rbx, qword [rsp + 0xa0]
add rbx, 0x20
mov rax, qword [rbx + 0x20]
sub rax, qword [rbx + 0x18]
test r12b, r12b
je 0x14003fe16
test r13b, r13b
je 0x14003fdab
neg rdi
cmp rax, 0x10
jge 0x14003fd54
mov rcx, rbx
call fcn.140040f80
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov word [rcx + 0xe], 0x96
test rdi, rdi
js 0x14003fd93
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x14003fdfc
mov eax, 0x1d6
jmp 0x14003fdf8
cmp rdi, 0xffffffff80000000
jl 0x14003fea2
mov word [rcx + 0xe], 0xb6
jmp 0x14003fea2
cmp rax, 0x10
jge 0x14003fdb9
mov rcx, rbx
call fcn.140040f80
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdi
mov eax, 0x116
mov word [rcx + 0xe], ax
test rdi, rdi
js 0x14003fde5
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x14003fdfc
or ax, 0x40
mov word [rcx + 0xe], ax
test rdi, 0xffffffff80000000
jne 0x14003fea2
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x14003fea2
test r13b, r13b
je 0x14003fe59
neg esi
cmp rax, 0x10
jge 0x14003fe2b
mov rcx, rbx
call fcn.140040f80
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 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 0x14003fea2
cmp rax, 0x10
jge 0x14003fe67
mov rcx, rbx
call fcn.140040f80
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 0x10]
mov qword [rbx + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov eax, esi
mov qword [rcx], rax
shr esi, 0x1a
not si
and si, 0x20
or si, 0x1d6
mov word [rcx + 0xe], si
jmp 0x14003fea2
sub r9, r14
mov dword [r15 + 0x30], 3
mov qword [r15 + 0x38], r9
movups xmm0, xmmword [rsp + 0x20]
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