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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rdx
mov rdi, rcx
lea rbx, [r8 - 1]
xor eax, eax
mov word [rcx], ax
cmp rdx, rbx
ja 0x14001a422
movzx ecx, byte [rbx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001a422
movsx eax, cl
sub ax, 0x30
mov word [rdi], ax
dec rbx
mov esi, 1
movzx ebp, si
xor r15b, r15b
movzx ecx, sil
call qword [sym.imp.MSVCP120.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rsp + 0x28], rax
call qword [sym.imp.MSVCP120.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400091e0
test al, al
jne 0x14001a356
lea rcx, [rsp + 0x28]
call fcn.1400045d0
mov r13, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400107e0
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r12, qword [rsp + 0x40]
mov r11, qword [rsp + 0x58]
test rax, rax
je 0x14001a348
lea rcx, [rsp + 0x40]
cmp r11, 0x10
cmovae rcx, r12
cmp byte [rcx], r15b
jle 0x14001a348
xor sil, sil
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x20]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x40]
mov r12, qword [rsp + 0x40]
mov r11, qword [rsp + 0x58]
cmp r11, 0x10
cmovae rcx, r12
movzx r8d, byte [rcx]
dec r8b
cmp rbx, r14
jb 0x14001a329
test r8b, r8b
je 0x14001a2df
movzx eax, bp
shl ax, 2
lea r13d, [rax + rbp]
add r13w, r13w
movzx ecx, r13w
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, bp
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, r13w
sub al, 0x30
cmp al, 9
ja 0x14001a325
test r9w, r9w
je 0x14001a2b3
movzx eax, r10w
movzx ecx, r9w
cdq
idiv ecx
movzx ecx, r13w
cmp eax, ecx
jne 0x14001a325
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r10w
cmp ax, cx
jb 0x14001a325
test r15b, r15b
je 0x14001a2cf
test r9w, r9w
jne 0x14001a325
add cx, r10w
mov word [rdi], cx
movzx ebp, r13w
dec r8b
jmp 0x14001a312
cmp byte [rbx], al
jne 0x14001a343
cmp r14, rbx
je 0x14001a325
mov rcx, qword [rsp + 0x30]
dec rcx
movzx eax, sil
cmp rax, rcx
jae 0x14001a2fc
inc sil
lea rcx, [rsp + 0x40]
cmp r11, 0x10
cmovae rcx, r12
movzx eax, sil
movzx r8d, byte [rax + rcx]
dec rbx
cmp rbx, r14
movzx eax, byte [rsp + 0x20]
jae 0x14001a241
jmp 0x14001a329
xor bl, bl
jmp 0x14001a32b
mov bl, 1
cmp r11, 0x10
jb 0x14001a339
mov rcx, r12
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov esi, 1
jmp 0x14001a3fc
mov esi, 1
cmp r11, 0x10
jb 0x14001a356
mov rcx, r12
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
cmp r14, rbx
ja 0x14001a3fa
nop
movzx eax, bp
shl ax, 2
lea r10d, [rax + rbp]
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, bp
movzx ecx, r15b
cmp edx, eax
cmovne ecx, esi
movzx r15d, cl
movsx eax, byte [rbx]
lea r8d, [rax - 0x30]
movzx r9d, r8w
imul r9w, r10w
sub al, 0x30
cmp al, 9
ja 0x14001a3f6
test r8w, r8w
je 0x14001a3c1
movzx eax, r9w
movzx ecx, r8w
cdq
idiv ecx
cmp eax, r11d
jne 0x14001a3f6
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r9w
cmp ax, cx
jb 0x14001a3f6
test r15b, r15b
je 0x14001a3dd
test r8w, r8w
jne 0x14001a3f6
add cx, r9w
mov word [rdi], cx
movzx ebp, r10w
dec rbx
cmp r14, rbx
jbe 0x14001a360
jmp 0x14001a3fa
xor bl, bl
jmp 0x14001a3fc
mov bl, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001a41d
mov r8, qword [rcx]
call qword [r8 + 0x10]
test rax, rax
je 0x14001a41d
mov r8, qword [rax]
mov edx, esi
mov rcx, rax
call qword [r8]
movzx eax, bl
jmp 0x14001a424
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140041b10
lea r11, [rsp + 0x70]
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