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

Disassembly:
mov rax, qword [rdx]
cmp byte [rax], 0x22
je 0x180035a9a
cmp byte [rax], 0x5b
je 0x180035a95
cmp byte [rax], 0x66
je 0x180035a90
cmp byte [rax], 0x6e
je 0x180035a8b
cmp byte [rax], 0x74
je 0x180035a86
cmp byte [rax], 0x7b
jne fcn.18003697c
jmp 0x1800363e8
jmp 0x180035bd4
jmp 0x180035ae4
jmp 0x180035cc4
jmp 0x1800366ec
xor r9d, r9d
jmp fcn.180035dc0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rdx
mov rdi, rcx
cmp byte [rax], 0x6e
jne 0x180035b69
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x75
jne 0x180035b52
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x180035b52
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x180035b52
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.180037e50
test al, al
jne 0x180035b47
cmp dword [rdi + 0x30], 0
jne 0x180035b8c
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 0x10
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x30], 0
jne 0x180035baf
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x180035b47
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rdx
mov rdi, rcx
cmp byte [rax], 0x74
jne 0x180035c5b
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x72
jne 0x180035c44
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x75
jne 0x180035c44
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x65
jne 0x180035c44
inc rax
mov rcx, r8
mov qword [rdx], rax
mov dl, 1
call fcn.180037d2c
test al, al
jne 0x180035c39
cmp dword [rdi + 0x30], 0
jne 0x180035c7e
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 0x10
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x30], 0
jne 0x180035ca1
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x180035c39
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rdx
mov rdi, rcx
cmp byte [rax], 0x66
jne 0x180035d56
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x61
jne 0x180035d3f
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x180035d3f
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x73
jne 0x180035d3f
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x65
jne 0x180035d3f
inc rax
mov rcx, r8
mov qword [rdx], rax
xor edx, edx
call fcn.180037d2c
test al, al
jne 0x180035d34
cmp dword [rdi + 0x30], 0
jne 0x180035d79
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 0x10
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x30], 0
jne 0x180035d9c
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x180035d34
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [rdx]
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp byte [rax], 0x7b
jne 0x1800366c7
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.180037400
test al, al
jne 0x180036450
cmp dword [rdi + 0x30], 0
jne 0x18003665e
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 0x10
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
movups xmm0, xmmword [rbx]
movabs r12, 0x100002600
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x180036485
movsx rax, byte [rcx]
bt r12, rax
jae 0x180036485
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x180036467
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003643d
mov rax, qword [rbx]
cmp byte [rax], 0x7d
jne 0x1800364ba
inc rax
xor edx, edx
mov rcx, rsi
mov qword [rbx], rax
call fcn.1800372e4
test al, al
jne 0x18003643d
cmp dword [rdi + 0x30], 0
jne 0x180036681
jmp 0x18003642b
xor ebp, ebp
mov rax, qword [rbx]
cmp byte [rax], 0x22
jne 0x18003664e
mov r9b, 1
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180035dc0
cmp dword [rdi + 0x30], 0
jne 0x18003643d
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003650e
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003650e
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x1800364f0
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003643d
mov rax, qword [rbx]
cmp byte [rax], 0x3a
jne 0x18003663e
inc rax
mov qword [rbx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x180036559
movsx rax, byte [rcx]
bt r12, rax
jae 0x180036559
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003653b
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003643d
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180035a5c
cmp dword [rdi + 0x30], 0
jne 0x18003643d
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x1800365aa
movsx rax, byte [rcx]
bt r12, rax
jae 0x1800365aa
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003658c
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003643d
mov rax, qword [rbx]
inc ebp
cmp byte [rax], 0x2c
jne 0x180036606
inc rax
mov qword [rbx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x1800365f3
movsx rax, byte [rcx]
bt r12, rax
jae 0x1800365f3
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x1800365d5
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003643d
jmp 0x1800364bc
cmp byte [rax], 0x7d
je 0x18003661b
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 6
jmp 0x180036439
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.1800372e4
test al, al
jne 0x18003643d
cmp dword [rdi + 0x30], 0
jne 0x1800366a4
jmp 0x18003642b
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 5
jmp 0x180036439
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 4
jmp 0x180036439
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
mov rax, qword [rdx]
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp byte [rax], 0x5b
jne 0x180036936
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.1800371d0
test al, al
jne 0x180036763
cmp dword [rdi + 0x30], 0
jne 0x180036959
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 0x10
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
movups xmm0, xmmword [rbx]
movabs r12, 0x100002600
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x180036798
movsx rax, byte [rcx]
bt r12, rax
jae 0x180036798
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003677a
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x180036748
mov rax, qword [rbx]
cmp byte [rax], 0x5d
jne 0x1800367cd
inc rax
xor edx, edx
mov rcx, rsi
mov qword [rbx], rax
call fcn.1800370b4
test al, al
jne 0x180036748
cmp dword [rdi + 0x30], 0
jne 0x1800368f0
jmp 0x180036736
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
xor ebp, ebp
call fcn.180035a5c
cmp dword [rdi + 0x30], ebp
jne 0x180036748
movups xmm0, xmmword [rbx]
inc ebp
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x180036813
movsx rax, byte [rcx]
bt r12, rax
jae 0x180036813
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x1800367f5
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x180036748
mov rax, qword [rbx]
cmp byte [rax], 0x2c
jne 0x180036833
inc rax
mov cl, 1
mov qword [rbx], rax
jmp 0x180036835
xor cl, cl
test cl, cl
je 0x18003688f
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x180036864
movsx rax, byte [rcx]
bt r12, rax
jae 0x180036864
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x180036846
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x180036748
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180035a5c
cmp dword [rdi + 0x30], 0
je 0x1800367e6
jmp 0x180036748
cmp byte [rax], 0x5d
jne 0x1800368b7
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.1800370b4
test al, al
jne 0x180036748
cmp dword [rdi + 0x30], 0
jne 0x180036913
jmp 0x180036736
cmp dword [rdi + 0x30], 0
jne 0x1800368cd
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 7
jmp 0x180036744
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180013ec4
lea rdx, [0x18015cd58]
lea rcx, [rsp + 0x20]
call fcn.1800a1860
int3