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

Disassembly:
mov rax, qword [rdx]
cmp byte [rax], 0x22
je 0x18003b786
cmp byte [rax], 0x5b
je 0x18003b781
cmp byte [rax], 0x66
je 0x18003b77c
cmp byte [rax], 0x6e
je 0x18003b777
cmp byte [rax], 0x74
je 0x18003b772
cmp byte [rax], 0x7b
jne fcn.18003c668
jmp 0x18003c0d4
jmp 0x18003b8c0
jmp 0x18003b7d0
jmp 0x18003b9b0
jmp 0x18003c3d8
xor r9d, r9d
jmp fcn.18003baac
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 0x18003b855
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x75
jne 0x18003b83e
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x18003b83e
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x18003b83e
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.18003db3c
test al, al
jne 0x18003b833
cmp dword [rdi + 0x30], 0
jne 0x18003b878
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x30], 0
jne 0x18003b89b
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x18003b833
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
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 0x18003b947
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x72
jne 0x18003b930
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x75
jne 0x18003b930
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x65
jne 0x18003b930
inc rax
mov rcx, r8
mov qword [rdx], rax
mov dl, 1
call fcn.18003da18
test al, al
jne 0x18003b925
cmp dword [rdi + 0x30], 0
jne 0x18003b96a
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x30], 0
jne 0x18003b98d
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x18003b925
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
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 0x18003ba42
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x61
jne 0x18003ba2b
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x18003ba2b
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x73
jne 0x18003ba2b
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x65
jne 0x18003ba2b
inc rax
mov rcx, r8
mov qword [rdx], rax
xor edx, edx
call fcn.18003da18
test al, al
jne 0x18003ba20
cmp dword [rdi + 0x30], 0
jne 0x18003ba65
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
mov qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x30], 0
jne 0x18003ba88
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x18003ba20
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
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 0x18003c3b3
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.18003d0ec
test al, al
jne 0x18003c13c
cmp dword [rdi + 0x30], 0
jne 0x18003c34a
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
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 0x18003c171
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c171
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c153
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c129
mov rax, qword [rbx]
cmp byte [rax], 0x7d
jne 0x18003c1a6
inc rax
xor edx, edx
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003cfd0
test al, al
jne 0x18003c129
cmp dword [rdi + 0x30], 0
jne 0x18003c36d
jmp 0x18003c117
xor ebp, ebp
mov rax, qword [rbx]
cmp byte [rax], 0x22
jne 0x18003c33a
mov r9b, 1
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.18003baac
cmp dword [rdi + 0x30], 0
jne 0x18003c129
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003c1fa
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c1fa
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c1dc
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c129
mov rax, qword [rbx]
cmp byte [rax], 0x3a
jne 0x18003c32a
inc rax
mov qword [rbx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003c245
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c245
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c227
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c129
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.18003b748
cmp dword [rdi + 0x30], 0
jne 0x18003c129
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003c296
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c296
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c278
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c129
mov rax, qword [rbx]
inc ebp
cmp byte [rax], 0x2c
jne 0x18003c2f2
inc rax
mov qword [rbx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003c2df
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c2df
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c2c1
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c129
jmp 0x18003c1a8
cmp byte [rax], 0x7d
je 0x18003c307
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 6
jmp 0x18003c125
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003cfd0
test al, al
jne 0x18003c129
cmp dword [rdi + 0x30], 0
jne 0x18003c390
jmp 0x18003c117
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 5
jmp 0x18003c125
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 4
jmp 0x18003c125
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
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 0x18003c622
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.18003cebc
test al, al
jne 0x18003c44f
cmp dword [rdi + 0x30], 0
jne 0x18003c645
mov rax, qword [rbx]
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], reloc.WS2_32.dll_recv
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 0x18003c484
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c484
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c466
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c434
mov rax, qword [rbx]
cmp byte [rax], 0x5d
jne 0x18003c4b9
inc rax
xor edx, edx
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003cda0
test al, al
jne 0x18003c434
cmp dword [rdi + 0x30], 0
jne 0x18003c5dc
jmp 0x18003c422
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
xor ebp, ebp
call fcn.18003b748
cmp dword [rdi + 0x30], ebp
jne 0x18003c434
movups xmm0, xmmword [rbx]
inc ebp
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003c4ff
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c4ff
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c4e1
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c434
mov rax, qword [rbx]
cmp byte [rax], 0x2c
jne 0x18003c51f
inc rax
mov cl, 1
mov qword [rbx], rax
jmp 0x18003c521
xor cl, cl
test cl, cl
je 0x18003c57b
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003c550
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003c550
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003c532
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003c434
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.18003b748
cmp dword [rdi + 0x30], 0
je 0x18003c4d2
jmp 0x18003c434
cmp byte [rax], 0x5d
jne 0x18003c5a3
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003cda0
test al, al
jne 0x18003c434
cmp dword [rdi + 0x30], 0
jne 0x18003c5ff
jmp 0x18003c422
cmp dword [rdi + 0x30], 0
jne 0x18003c5b9
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 7
jmp 0x18003c430
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.18001ac3c
lea rdx, [0x180180478]
lea rcx, [rsp + 0x20]
call fcn.1800bf520
int3