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

Disassembly:
mov rax, qword [rdx]
cmp byte [rax], 0x22
je 0x180039cd2
cmp byte [rax], 0x5b
je 0x180039ccd
cmp byte [rax], 0x66
je 0x180039cc8
cmp byte [rax], 0x6e
je 0x180039cc3
cmp byte [rax], 0x74
je 0x180039cbe
cmp byte [rax], 0x7b
jne fcn.18003abb4
jmp 0x18003a620
jmp 0x180039e0c
jmp 0x180039d1c
jmp 0x180039efc
jmp 0x18003a924
xor r9d, r9d
jmp fcn.180039ff8
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 0x180039da1
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x75
jne 0x180039d8a
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x180039d8a
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x180039d8a
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.18003c088
test al, al
jne 0x180039d7f
cmp dword [rdi + 0x30], 0
jne 0x180039dc4
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 0x180039de7
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x180039d7f
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
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 0x180039e93
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x72
jne 0x180039e7c
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x75
jne 0x180039e7c
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x65
jne 0x180039e7c
inc rax
mov rcx, r8
mov qword [rdx], rax
mov dl, 1
call fcn.18003bf64
test al, al
jne 0x180039e71
cmp dword [rdi + 0x30], 0
jne 0x180039eb6
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 0x180039ed9
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x180039e71
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
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 0x180039f8e
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x61
jne 0x180039f77
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x6c
jne 0x180039f77
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x73
jne 0x180039f77
inc rax
mov qword [rdx], rax
cmp byte [rax], 0x65
jne 0x180039f77
inc rax
mov rcx, r8
mov qword [rdx], rax
xor edx, edx
call fcn.18003bf64
test al, al
jne 0x180039f6c
cmp dword [rdi + 0x30], 0
jne 0x180039fb1
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 0x180039fd4
sub rax, qword [rdx + 8]
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
jmp 0x180039f6c
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
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 0x18003a8ff
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.18003b638
test al, al
jne 0x18003a688
cmp dword [rdi + 0x30], 0
jne 0x18003a896
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 0x18003a6bd
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003a6bd
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003a69f
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a675
mov rax, qword [rbx]
cmp byte [rax], 0x7d
jne 0x18003a6f2
inc rax
xor edx, edx
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003b51c
test al, al
jne 0x18003a675
cmp dword [rdi + 0x30], 0
jne 0x18003a8b9
jmp 0x18003a663
xor ebp, ebp
mov rax, qword [rbx]
cmp byte [rax], 0x22
jne 0x18003a886
mov r9b, 1
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180039ff8
cmp dword [rdi + 0x30], 0
jne 0x18003a675
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003a746
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003a746
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003a728
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a675
mov rax, qword [rbx]
cmp byte [rax], 0x3a
jne 0x18003a876
inc rax
mov qword [rbx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003a791
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003a791
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003a773
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a675
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180039c94
cmp dword [rdi + 0x30], 0
jne 0x18003a675
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003a7e2
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003a7e2
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003a7c4
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a675
mov rax, qword [rbx]
inc ebp
cmp byte [rax], 0x2c
jne 0x18003a83e
inc rax
mov qword [rbx], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003a82b
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003a82b
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003a80d
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a675
jmp 0x18003a6f4
cmp byte [rax], 0x7d
je 0x18003a853
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 6
jmp 0x18003a671
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003b51c
test al, al
jne 0x18003a675
cmp dword [rdi + 0x30], 0
jne 0x18003a8dc
jmp 0x18003a663
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 5
jmp 0x18003a671
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 4
jmp 0x18003a671
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
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 0x18003ab6e
inc rax
mov rcx, r8
mov qword [rdx], rax
call fcn.18003b408
test al, al
jne 0x18003a99b
cmp dword [rdi + 0x30], 0
jne 0x18003ab91
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 0x18003a9d0
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003a9d0
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003a9b2
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a980
mov rax, qword [rbx]
cmp byte [rax], 0x5d
jne 0x18003aa05
inc rax
xor edx, edx
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003b2ec
test al, al
jne 0x18003a980
cmp dword [rdi + 0x30], 0
jne 0x18003ab28
jmp 0x18003a96e
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
xor ebp, ebp
call fcn.180039c94
cmp dword [rdi + 0x30], ebp
jne 0x18003a980
movups xmm0, xmmword [rbx]
inc ebp
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003aa4b
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003aa4b
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003aa2d
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a980
mov rax, qword [rbx]
cmp byte [rax], 0x2c
jne 0x18003aa6b
inc rax
mov cl, 1
mov qword [rbx], rax
jmp 0x18003aa6d
xor cl, cl
test cl, cl
je 0x18003aac7
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x20], xmm0
movq rcx, xmm0
cmp byte [rcx], 0x20
ja 0x18003aa9c
movsx rax, byte [rcx]
bt r12, rax
jae 0x18003aa9c
inc rcx
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rsp + 0x20]
jmp 0x18003aa7e
movdqu xmmword [rbx], xmm0
cmp dword [rdi + 0x30], 0
jne 0x18003a980
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.180039c94
cmp dword [rdi + 0x30], 0
je 0x18003aa1e
jmp 0x18003a980
cmp byte [rax], 0x5d
jne 0x18003aaef
inc rax
mov edx, ebp
mov rcx, rsi
mov qword [rbx], rax
call fcn.18003b2ec
test al, al
jne 0x18003a980
cmp dword [rdi + 0x30], 0
jne 0x18003ab4b
jmp 0x18003a96e
cmp dword [rdi + 0x30], 0
jne 0x18003ab05
sub rax, qword [rbx + 8]
mov dword [rdi + 0x30], 7
jmp 0x18003a97c
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3
lea rdx, str.rapidjson_assert_fail
lea rcx, [rsp + 0x20]
call fcn.180014138
lea rdx, [0x180191838]
lea rcx, [rsp + 0x20]
call fcn.1800cbd00
int3