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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, rdx
mov rdi, rcx
lea rbx, [r8 - 2]
xor ebp, ebp
mov word [rcx], bp
cmp rdx, rbx
ja 0x14006ffb9
movzx ecx, word [rbx]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14006ffb9
sub cx, 0x30
mov word [rdi], cx
sub rbx, 2
mov r12d, 1
movzx esi, r12w
xor r15b, r15b
movzx ecx, sil
call fcn.140145358
mov qword [rsp + 0x28], rax
call fcn.140145598
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140020a70
test al, al
jne 0x14006fed9
lea rcx, [rsp + 0x28]
call fcn.14001f960
mov r12, rax
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14001fb10
nop
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x14006feae
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
cmp byte [rcx], r15b
jle 0x14006feae
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x20]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
cmp r9, 0x10
cmovae rcx, rdx
movzx r8d, byte [rcx]
dec r8b
cmp rbx, r14
jb 0x14006fe76
test r8b, r8b
je 0x14006fe2e
movzx eax, si
shl ax, 2
lea r11d, [rax + rsi]
add r11w, r11w
movzx r12d, r11w
mov eax, 0x66666667
imul r12d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, si
movzx r15d, r15b
cmp edx, eax
mov eax, 1
cmovne r15d, eax
movzx eax, word [rbx]
lea r9d, [rax - 0x30]
movzx r10d, r9w
imul r10w, r11w
sub ax, 0x30
cmp ax, 9
ja 0x14006fe72
test r9w, r9w
je 0x14006fdf8
movzx eax, r10w
movzx ecx, r9w
cdq
idiv ecx
cmp eax, r12d
jne 0x14006fe72
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r10w
cmp ax, cx
jb 0x14006fe72
test r15b, r15b
je 0x14006fe14
test r9w, r9w
jne 0x14006fe72
add cx, r10w
mov word [rdi], cx
movzx esi, r11w
dec r8b
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
jmp 0x14006fe5e
cmp word [rbx], ax
jne 0x14006feac
cmp r14, rbx
je 0x14006fe72
lea rcx, [r13 - 1]
movzx eax, bpl
cmp rax, rcx
jae 0x14006fe48
inc bpl
lea rcx, [rsp + 0x38]
cmp r9, 0x10
cmovae rcx, rdx
movzx eax, bpl
movzx r8d, byte [rax + rcx]
sub rbx, 2
cmp rbx, r14
movzx eax, word [rsp + 0x20]
jae 0x14006fd84
jmp 0x14006fe76
xor bl, bl
jmp 0x14006fe78
mov bl, 1
cmp qword [rsp + 0x50], 0x10
jb 0x14006fe8a
mov rcx, qword [rsp + 0x38]
call fcn.1401669a0
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r12d, 1
jmp 0x14006ff92
xor ebp, ebp
cmp qword [rsp + 0x50], 0x10
jb 0x14006fec0
mov rcx, qword [rsp + 0x38]
call fcn.1401669a0
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x38], 0
mov r12d, 1
cmp r14, rbx
ja 0x14006ff90
nop word [rax + rax]
movzx eax, si
shl ax, 2
lea r10d, [rax + rsi]
add r10w, r10w
movzx r11d, r10w
mov eax, 0x66666667
imul r11d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, si
movzx ecx, r15b
cmp edx, eax
cmovne ecx, r12d
movzx r15d, cl
movzx eax, word [rbx]
lea r8d, [rax - 0x30]
movzx r9d, r8w
imul r9w, r10w
sub ax, 0x30
cmp ax, 9
ja 0x14006ff8c
test r8w, r8w
je 0x14006ff56
movzx eax, r9w
movzx ecx, r8w
cdq
idiv ecx
cmp eax, r11d
jne 0x14006ff8c
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r9w
cmp ax, cx
jb 0x14006ff8c
test r15b, r15b
je 0x14006ff72
test r8w, r8w
jne 0x14006ff8c
add cx, r9w
mov word [rdi], cx
movzx esi, r10w
sub rbx, 2
cmp r14, rbx
jbe 0x14006fef0
jmp 0x14006ff90
xor bl, bl
jmp 0x14006ff92
mov bl, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14006ffb4
mov r8, qword [rcx]
call qword [r8 + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14006ffb4
mov r8, qword [rax]
mov edx, r12d
mov rcx, rax
call qword [r8]
movzx eax, bl
jmp 0x14006ffbb
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140166980
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret