Function at 0x14001ad80
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 - 1]
xor ebp, ebp
mov word [rcx], bp
cmp rdx, rbx
ja 0x14001b0b4
movzx ecx, byte [rbx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001b0b4
movsx eax, cl
sub ax, 0x30
mov word [rdi], ax
dec rbx
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 0x14001afe2
lea rcx, [rsp + 0x28]
call fcn.140020760
mov r12, rax
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14001fb10
nop
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x14001afb7
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
cmp byte [rcx], r15b
jle 0x14001afb7
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x20]
mov byte [rsp + 0x20], al
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 0x14001af7f
test r8b, r8b
je 0x14001af39
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
movsx eax, byte [rbx]
lea r9d, [rax - 0x30]
movzx r10d, r9w
imul r10w, r11w
sub al, 0x30
cmp al, 9
ja 0x14001af7b
test r9w, r9w
je 0x14001af03
movzx eax, r10w
movzx ecx, r9w
cdq
idiv ecx
cmp eax, r12d
jne 0x14001af7b
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r10w
cmp ax, cx
jb 0x14001af7b
test r15b, r15b
je 0x14001af1f
test r9w, r9w
jne 0x14001af7b
add cx, r10w
mov word [rdi], cx
movzx esi, r11w
dec r8b
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
jmp 0x14001af68
cmp byte [rbx], al
jne 0x14001afb5
cmp r14, rbx
je 0x14001af7b
lea rcx, [r13 - 1]
movzx eax, bpl
cmp rax, rcx
jae 0x14001af52
inc bpl
lea rcx, [rsp + 0x38]
cmp r9, 0x10
cmovae rcx, rdx
movzx eax, bpl
movzx r8d, byte [rax + rcx]
dec rbx
cmp rbx, r14
movzx eax, byte [rsp + 0x20]
jae 0x14001ae93
jmp 0x14001af7f
xor bl, bl
jmp 0x14001af81
mov bl, 1
cmp qword [rsp + 0x50], 0x10
jb 0x14001af93
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 0x14001b08d
xor ebp, ebp
cmp qword [rsp + 0x50], 0x10
jb 0x14001afc9
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 0x14001b08b
nop dword [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
movsx eax, byte [rbx]
lea r8d, [rax - 0x30]
movzx r9d, r8w
imul r9w, r10w
sub al, 0x30
cmp al, 9
ja 0x14001b087
test r8w, r8w
je 0x14001b052
movzx eax, r9w
movzx ecx, r8w
cdq
idiv ecx
cmp eax, r11d
jne 0x14001b087
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r9w
cmp ax, cx
jb 0x14001b087
test r15b, r15b
je 0x14001b06e
test r8w, r8w
jne 0x14001b087
add cx, r9w
mov word [rdi], cx
movzx esi, r10w
dec rbx
cmp r14, rbx
jbe 0x14001aff0
jmp 0x14001b08b
xor bl, bl
jmp 0x14001b08d
mov bl, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001b0af
mov r8, qword [rcx]
call qword [r8 + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14001b0af
mov r8, qword [rax]
mov edx, r12d
mov rcx, rax
call qword [r8]
movzx eax, bl
jmp 0x14001b0b6
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