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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, rcx
lea rax, [0x14007dce0]
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], 7
mov word [rcx + 8], si
mov qword [rcx + 0x28], rsi
mov qword [rcx + 0x38], rsi
mov qword [rcx + 0x40], send
mov byte [rcx + 0x28], sil
mov qword [rcx + 0x48], rsi
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], send
mov byte [rcx + 0x48], sil
xor r12b, r12b
mov rdi, qword [rcx + 0x38]
cmp rdi, 0xb1
ja 0x140049a8f
mov r14, qword [rcx + 0x40]
cmp r14, 0xb0
ja 0x140049978
mov ecx, 0xb1
sub rcx, rdi
movabs rbp, 0x7fffffffffffffff
mov rax, rbp
sub rax, rdi
cmp rax, rcx
jb 0x140049ab5
mov rcx, r14
shr rcx, 1
mov rax, rbp
sub rax, rcx
cmp r14, rax
jbe 0x1400498d6
movabs rax, 0x8000000000000027
mov rcx, rax
call fcn.140011b08
test rax, rax
je 0x140049aa9
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14004990f
lea rax, [rcx + r14]
mov ebp, 0xbf
cmp rax, rbp
cmova rbp, rax
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x140049902
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049aaf
jmp 0x1400498b7
test rcx, rcx
je 0x14004990f
call fcn.140011b08
mov rsi, rax
mov qword [r15 + 0x38], 0xb1
mov qword [r15 + 0x40], rbp
lea r8, [rdi + 1]
mov rcx, rsi
cmp r14, 0x10
jb 0x140049967
mov rbp, qword [r15 + 0x28]
mov rdx, rbp
call fcn.140013b70
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x14004995d
add rdx, 0x27
mov rcx, qword [rbp - 8]
sub rbp, rcx
lea rax, [rbp - 8]
cmp rax, 0x1f
ja 0x140049aa9
mov rbp, rcx
mov rcx, rbp
call fcn.140011b00
jmp 0x140049970
lea rdx, [r15 + 0x28]
call fcn.140013b70
mov qword [r15 + 0x28], rsi
mov qword [r15 + 0x38], rdi
cmp rdi, 0xb1
jae 0x140049a8f
mov esi, 0x57
nop word [rax + rax]
call fcn.140018230
mov r8d, eax
mov eax, 0x38e38e39
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
shl ecx, 2
sub r8d, ecx
mov ecx, gethostbyname
cmp r8d, 9
cmova ecx, esi
add cl, r8b
lea edx, [rcx - 0x30]
test rdi, rdi
jne 0x1400499d5
cmp dl, 9
jbe 0x140049a7e
jmp 0x1400499ee
lea rax, [r15 + 0x28]
cmp qword [r15 + 0x40], 0x10
jb 0x1400499e4
mov rax, qword [r15 + 0x28]
cmp byte [rdi + rax - 1], cl
je 0x140049a7e
test r12b, r12b
jne 0x140049a2d
cmp dl, 9
ja 0x1400499fd
mov r12b, 1
jmp 0x140049a2d
cmp qword [r15 + 0x38], 0xb0
jne 0x140049a2d
call fcn.140018230
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub r8d, ecx
lea ecx, [r8 + 0x30]
mov rdx, qword [r15 + 0x38]
mov r8, qword [r15 + 0x40]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140049a69
lea rax, [rdx + 1]
mov qword [r15 + 0x38], rax
lea r9, [r15 + 0x28]
cmp r8, 0x10
jb 0x140049a57
mov r9, qword [r15 + 0x28]
movsx eax, cl
movzx eax, al
mov byte [r9 + rdx], al
mov byte [r9 + rdx + 1], 0
jmp 0x140049a7e
mov byte [rsp + 0x20], cl
mov edx, 1
mov r9d, edx
lea rcx, [r15 + 0x28]
call fcn.1400082b0
mov rdi, qword [r15 + 0x38]
cmp rdi, 0xb1
jb 0x140049990
mov rax, r15
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140018100
nop
call fcn.140001814
int3
call fcn.14000235c
int3