Function at 0x1400a55f0
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 [section..data]
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 0x1400a5939
movzx ecx, word [rbx]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400a5939
sub cx, 0x30
mov word [rdi], cx
sub rbx, 2
mov r12d, 1
movzx esi, r12w
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.14006bba0
test al, al
jne 0x1400a585d
lea rcx, [rsp + 0x28]
call fcn.140075f10
mov r12, rax
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140075b30
nop
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x1400a5831
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
cmp byte [rcx], r15b
jle 0x1400a5831
mov rax, qword [r12]
mov rcx, r12
call qword [rax + reloc.msi.dll_MsiEnumClientsA]
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 0x1400a57f8
test r8b, r8b
je 0x1400a57b0
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 0x1400a57f4
test r9w, r9w
je 0x1400a577a
movzx eax, r10w
movzx ecx, r9w
cdq
idiv ecx
cmp eax, r12d
jne 0x1400a57f4
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r10w
cmp ax, cx
jb 0x1400a57f4
test r15b, r15b
je 0x1400a5796
test r9w, r9w
jne 0x1400a57f4
add cx, r10w
mov word [rdi], cx
movzx esi, r11w
dec r8b
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
jmp 0x1400a57e0
cmp word [rbx], ax
jne 0x1400a582f
cmp r14, rbx
je 0x1400a57f4
lea rcx, [r13 - 1]
movzx eax, bpl
cmp rax, rcx
jae 0x1400a57ca
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 0x1400a5706
jmp 0x1400a57f8
xor bl, bl
jmp 0x1400a57fa
mov bl, 1
cmp qword [rsp + 0x50], 0x10
jb 0x1400a580d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r12d, 1
jmp 0x1400a5912
xor ebp, ebp
cmp qword [rsp + 0x50], 0x10
jb 0x1400a5844
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x38], 0
mov r12d, 1
cmp r14, rbx
ja 0x1400a5910
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 0x1400a590c
test r8w, r8w
je 0x1400a58d6
movzx eax, r9w
movzx ecx, r8w
cdq
idiv ecx
cmp eax, r11d
jne 0x1400a590c
movzx ecx, word [rdi]
mov eax, 0xffff
sub ax, r9w
cmp ax, cx
jb 0x1400a590c
test r15b, r15b
je 0x1400a58f2
test r8w, r8w
jne 0x1400a590c
add cx, r9w
mov word [rdi], cx
movzx esi, r10w
sub rbx, 2
cmp r14, rbx
jbe 0x1400a5870
jmp 0x1400a5910
xor bl, bl
jmp 0x1400a5912
mov bl, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400a5934
mov r8, qword [rcx]
call qword [r8 + 0x10]
test rax, rax
je 0x1400a5934
mov r8, qword [rax]
mov edx, r12d
mov rcx, rax
call qword [r8]
movzx eax, bl
jmp 0x1400a593b
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f5ff0
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