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

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x28
mov rax, qword [0x14006a008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rcx + 0xe0]
mov rbx, rcx
movzx edx, byte [rax]
test dl, dl
jne 0x140019e99
mov rax, qword [rcx + 0xd0]
mov byte [rax], dl
xor eax, eax
jmp 0x14001a617
mov qword [rsp + 0x50], rdi
lea rcx, [rbp - 0x28]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x58], r14
mov rax, rdi
mov qword [rsp + 0x20], r15
mov byte [rbp - 0x28], dl
mov byte [rbp - 0x27], 0
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140019ec0
lea r15, str._B2S1B2S2B2S2
cmp eax, 2
jg 0x140019f07
test eax, eax
je 0x140019f07
cmp eax, 1
jne 0x140019f07
xor r8d, r8d
mov ecx, r8d
mov rax, qword [r15 + rcx*8]
cmp dl, byte [rax]
je 0x140019ef7
inc rcx
cmp rcx, 0x6b
jb 0x140019ee4
jmp 0x140019f0a
test ecx, ecx
js 0x140019f0a
movsxd rax, ecx
mov rcx, qword [r15 + rax*8]
inc rcx
jmp 0x140019f0d
xor r8d, r8d
mov rcx, r8
mov rdx, qword [rbx + 0xd0]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140019f20
mov rdx, qword [rbx + 0xe0]
lea r14, [0x140047700]
mov r11d, 1
cmp byte [rdx + 1], al
je 0x14001a39f
cmp byte [rdx], 0x87
mov rcx, rdx
mov qword [rsp + 0x48], rsi
setne sil
add sil, 0x42
movsxd rax, r11d
cmp byte [rax + rdx], 0x84
jne 0x14001a00d
mov sil, 0x43
mov word [rbp - 0x28], 0x84
lea rcx, [rbp - 0x28]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140019f80
cmp eax, 2
jg 0x140019fb6
test eax, eax
je 0x140019fb6
cmp eax, 1
jne 0x140019fb6
mov rcx, r8
nop word [rax + rax]
mov rax, qword [r15 + rcx*8]
cmp byte [rax], 0x84
je 0x14001a0b7
inc rcx
cmp rcx, 0x6b
jb 0x140019fa0
mov rcx, r8
lea rdx, [rbp - 0x20]
sub rdx, rcx
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140019fc0
mov rcx, qword [rbx + 0xd0]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140019fe0
lea r9, [rbp - 0x20]
xor edx, edx
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140019ff0
mov rdx, qword [rbx + 0xe0]
inc r11d
mov rcx, rdx
movsxd r10, r11d
cmp byte [r10 + rdx], 0x85
jne 0x14001a0de
mov sil, 0x42
mov word [rbp - 0x28], 0x85
lea rcx, [rbp - 0x28]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001a030
cmp eax, 2
jg 0x14001a062
test eax, eax
je 0x14001a062
cmp eax, 1
jne 0x14001a062
mov rcx, r8
nop word [rax + rax]
mov rax, qword [r15 + rcx*8]
cmp byte [rax], 0x85
je 0x14001a0ce
inc rcx
cmp rcx, 0x6b
jb 0x14001a050
mov rcx, r8
lea rdx, [rbp - 0x20]
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001a070
mov rcx, qword [rbx + 0xd0]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001a090
lea r9, [rbp - 0x20]
xor edx, edx
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14001a0a0
inc r11d
jmp 0x14001a2df
test ecx, ecx
js 0x140019fb6
movsxd rax, ecx
mov rcx, qword [r15 + rax*8]
inc rcx
jmp 0x140019fb9
test ecx, ecx
js 0x14001a062
movsxd rax, ecx
mov rcx, qword [r15 + rax*8]
inc rcx
jmp 0x14001a065
cmp sil, 0x43
jne 0x14001a2d5
movsx edx, byte [r10 + rcx]
lea eax, [rdx - 0x30]
cmp eax, 9
ja 0x14001a228
test dl, dl
je 0x14001a383
movsx edx, byte [rcx + r10]
lea eax, [rdx - 0x30]
cmp eax, 9
ja 0x14001a383
movzx r9d, byte [rcx + r10 + 1]
mov rax, rdi
mov byte [rbp - 0x27], r9b
lea rcx, [rbp - 0x28]
mov byte [rbp - 0x28], dl
mov byte [rbp - 0x26], 0
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001a130
cmp eax, 2
jg 0x14001a161
test eax, eax
je 0x14001a161
cmp eax, 1
jne 0x14001a1dd
mov rcx, r8
nop
mov rax, qword [r15 + rcx*8]
cmp dl, byte [rax]
je 0x14001a1cd
inc rcx
cmp rcx, 0x6b
jb 0x14001a150
mov rax, r8
lea rdx, [rbp - 0x20]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14001a170
mov rcx, qword [rbx + 0xd0]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001a190
lea r9, [rbp - 0x20]
xor edx, edx
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14001a1a0
mov rcx, qword [rbx + 0xe0]
add r10, 2
add r11d, 2
cmp byte [rcx + r10], al
jne 0x14001a101
jmp 0x14001a383
test ecx, ecx
js 0x14001a161
movsxd rax, ecx
mov rax, qword [r15 + rax*8]
inc rax
jmp 0x14001a164
cmp eax, 2
jne 0x14001a161
movsx r9d, r9b
lea eax, [r9 - 0x30]
cmp eax, 9
ja 0x14001a161
movsx eax, dl
lea ecx, [rax + rax*4]
lea eax, [r9 + rcx*2]
movsxd rcx, eax
sub rcx, 0x210
cmp rcx, 0x6b
jae 0x14001a21d
mov rax, qword [r15 + rcx*8]
inc rax
jmp 0x14001a164
mov rax, r14
inc rax
jmp 0x14001a164
cmp dl, 0x85
je 0x14001a383
mov byte [rbp - 0x28], dl
lea rcx, [rbp - 0x28]
mov byte [rbp - 0x27], 0
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14001a240
cmp eax, 2
jg 0x14001a271
test eax, eax
je 0x14001a271
cmp eax, 1
jne 0x14001a271
mov rcx, r8
nop word [rax + rax]
mov rax, qword [r15 + rcx*8]
cmp dl, byte [rax]
je 0x14001a2c5
inc rcx
cmp rcx, 0x6b
jb 0x14001a260
mov rcx, r8
lea rdx, [rbp - 0x20]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001a280
mov rcx, qword [rbx + 0xd0]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001a2a0
lea r9, [rbp - 0x20]
xor edx, edx
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001a2b0
jmp 0x14001a380
test ecx, ecx
js 0x14001a271
movsxd rax, ecx
mov rcx, qword [r15 + rax*8]
inc rcx
jmp 0x14001a274
cmp sil, 0x42
jne 0x14001a383
mov rax, qword [rbx + 0xe0]
movsxd rcx, r11d
movzx edx, byte [rcx + rax]
cmp dl, 0x84
je 0x14001a383
mov byte [rbp - 0x28], dl
lea rcx, [rbp - 0x28]
mov byte [rbp - 0x27], 0
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x14001a304
cmp eax, 2
jg 0x14001a335
test eax, eax
je 0x14001a335
cmp eax, 1
jne 0x14001a335
mov rcx, r8
nop
mov rax, qword [r15 + rcx*8]
cmp dl, byte [rax]
je 0x14001a3d5
inc rcx
cmp rcx, 0x6b
jb 0x14001a320
mov rcx, r8
lea rdx, [rbp - 0x20]
sub rdx, rcx
nop
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001a340
mov rcx, qword [rbx + 0xd0]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001a360
lea r9, [rbp - 0x20]
xor edx, edx
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001a370
inc r11d
mov rdx, qword [rbx + 0xe0]
movsxd rax, r11d
mov rcx, rdx
cmp byte [rax + rdx], 0
jne 0x140019f61
mov rsi, qword [rsp + 0x48]
mov ecx, dword [rbx + 0x128]
cmp ecx, 0x64
jl 0x14001a444
jne 0x14001a3ec
mov eax, dword [0x1400493b8]
movsd xmm0, qword [str.B1S1B4S1B3S1]
mov dword [rbp - 0x18], eax
movzx eax, byte [0x1400493bc]
mov byte [rbp - 0x14], al
movsd qword [rbp - 0x20], xmm0
jmp 0x14001a4ce
test ecx, ecx
js 0x14001a335
movsxd rax, ecx
mov rcx, qword [r15 + rax*8]
inc rcx
jmp 0x14001a338
cmp ecx, 0x65
jne 0x14001a416
mov eax, dword [0x1400493c8]
movsd xmm0, qword [str.B3S1B1S1B4S1]
mov dword [rbp - 0x18], eax
movzx eax, byte [0x1400493cc]
mov byte [rbp - 0x14], al
movsd qword [rbp - 0x20], xmm0
jmp 0x14001a4ce
cmp ecx, 0x66
jne 0x14001a4ce
mov eax, dword [0x1400493d8]
movsd xmm0, qword [str.B4S1B1S1B3S1]
mov dword [rbp - 0x18], eax
movzx eax, byte [0x1400493dc]
mov byte [rbp - 0x14], al
movsd qword [rbp - 0x20], xmm0
jmp 0x14001a4ce
mov eax, 0x66666667
mov byte [rbp - 0x26], 0
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
lea r9d, [rdx + 0x30]
shl dl, 2
add al, dl
mov byte [rbp - 0x28], r9b
add al, al
lea rdx, [rbp - 0x28]
sub cl, al
mov rax, rdi
add cl, 0x30
mov byte [rbp - 0x27], cl
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14001a480
cmp eax, 2
jg 0x14001a4b6
test eax, eax
je 0x14001a4b6
cmp eax, 1
jne 0x14001a561
mov rcx, r8
nop
mov rax, qword [r15 + rcx*8]
cmp r9b, byte [rax]
je 0x14001a54a
inc rcx
cmp rcx, 0x6b
jb 0x14001a4a0
mov rcx, r8
lea rdx, [rbp - 0x20]
sub rdx, rcx
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001a4c0
mov rcx, qword [rbx + 0xd0]
mov r14, qword [rsp + 0x58]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14001a4e0
lea r9, [rbp - 0x20]
xor edx, edx
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001a4f0
mov word [rbp - 0x28], 0x89
lea rax, [rbp - 0x28]
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001a510
cmp edi, 2
jg 0x14001a5bb
test edi, edi
je 0x14001a5bb
cmp edi, 1
jne 0x14001a5bb
mov rcx, r8
mov rax, qword [r15 + rcx*8]
cmp byte [rax], 0x89
je 0x14001a5ad
inc rcx
cmp rcx, 0x6b
jb 0x14001a536
jmp 0x14001a5bb
test ecx, ecx
js 0x14001a4b6
movsxd rax, ecx
mov rcx, qword [r15 + rax*8]
inc rcx
jmp 0x14001a4b9
cmp eax, 2
jne 0x14001a4b6
movsx edx, r9b
lea eax, [rdx - 0x30]
cmp eax, 9
ja 0x14001a4b6
movsx r9d, cl
lea eax, [r9 - 0x30]
cmp eax, 9
ja 0x14001a4b6
lea eax, [rdx + rdx*4]
lea eax, [r9 + rax*2]
cdqe
sub rax, 0x210
cmp rax, 0x6b
jae 0x14001a5a4
mov r14, qword [r15 + rax*8]
lea rcx, [r14 + 1]
jmp 0x14001a4b9
test ecx, ecx
js 0x14001a5bb
movsxd rax, ecx
mov r8, qword [r15 + rax*8]
inc r8
mov r15, qword [rsp + 0x20]
lea rcx, [rbp - 0x20]
mov rdi, qword [rsp + 0x50]
sub rcx, r8
nop dword [rax]
movzx eax, byte [r8]
mov byte [r8 + rcx], al
lea r8, [r8 + 1]
test al, al
jne 0x14001a5d0
mov rdx, qword [rbx + 0xd0]
dec rdx
nop word [rax + rax]
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x14001a5f0
lea r9, [rbp - 0x20]
xor r8d, r8d
movzx ecx, byte [r9 + r8]
mov byte [rdx + r8], cl
lea r8, [r8 + 1]
test cl, cl
jne 0x14001a601
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003c7b0
add rsp, 0x28
pop rbx
pop rbp
ret