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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov r9, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rbp - 0x48], xmm0
movsd xmm7, qword [rdx + 0x10]
movsd qword [rbp - 0x38], xmm7
mov qword [rbp - 0x30], rdx
movq rbx, xmm0
mov rax, rbx
mov r13, qword [rbp - 0x38]
sub rax, r13
mov qword [rbp - 0x50], rax
xorps xmm2, xmm2
xorps xmm6, xmm6
cmp byte [rbx], 0x2d
jne 0x1400415de
inc rbx
mov qword [rbp - 0x48], rbx
mov r11b, 1
jmp 0x1400415e1
xor r11b, r11b
mov byte [rbp - 0x58], r11b
xor r14d, r14d
mov edi, r14d
xor r15b, r15b
mov byte [rbp + 0x60], r15b
mov r10d, r14d
movsx ecx, byte [rbx]
cmp cl, 0x30
jne 0x14004160d
mov esi, r14d
lea rdx, [rbx + 1]
mov qword [rbp - 0x48], rdx
jmp 0x1400416d5
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x140041d30
lea rdx, [rbx + 1]
mov qword [rbp - 0x48], rdx
lea esi, [rcx - 0x30]
movzx eax, byte [rdx]
test r11b, r11b
je 0x140041680
cmp al, 0x30
jl 0x1400416d5
mov r8, rdx
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x1400416d5
cmp esi, 0xccccccc
jb 0x140041659
jne 0x1400416cc
mov r8, rcx
cmp al, 0x38
ja 0x1400416cc
lea rdx, [r8 + 1]
mov qword [rbp - 0x48], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r10d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140041640
jmp 0x1400416d5
cmp al, 0x30
jl 0x1400416d5
mov r8, rdx
mov rcx, rdx
nop word [rax + rax]
cmp al, 0x39
jg 0x1400416d5
cmp esi, 0x19999999
jb 0x1400416a5
jne 0x1400416cc
mov r8, rcx
cmp al, 0x35
jg 0x1400416cc
lea rdx, [r8 + 1]
mov qword [rbp - 0x48], rdx
lea ecx, [rsi - 6]
lea ecx, [rsi + rcx*4]
movsx eax, byte [r8]
lea esi, [rax + rcx*2]
inc r10d
movzx eax, byte [rdx]
mov r8, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140041690
jmp 0x1400416d5
mov r15b, 1
mov byte [rbp + 0x60], r15b
mov edi, esi
xor r12b, r12b
movsd xmm1, qword [0x140163218]
test r15b, r15b
je 0x140041833
test r11b, r11b
je 0x14004176d
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x140041833
mov r8, rdx
mov r9, rdx
movabs r11, 0xccccccccccccccc
nop word [rax + rax]
cmp cl, 0x39
ja 0x14004182f
cmp rdi, r11
jb 0x140041728
jne 0x140041755
mov r8, r9
cmp cl, 0x38
ja 0x140041755
lea rdx, [r8 + 1]
mov qword [rbp - 0x48], rdx
movsx ecx, byte [r8]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r10d
mov r8, rdx
mov r9, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x140041710
jmp 0x14004182f
mov rcx, rdi
mov r12b, 1
xorps xmm6, xmm6
test rcx, rcx
js 0x1400417d9
cvtsi2sd xmm6, rcx
jmp 0x1400417ee
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x140041833
mov r9, rdx
mov r11, rdx
movabs rbx, 0x1999999999999999
nop dword [rax + rax]
mov rcx, rdi
cmp r8b, 0x39
ja 0x14004182f
cmp rdi, rbx
jb 0x1400417ad
jne 0x140041758
mov r9, r11
cmp r8b, 0x35
ja 0x140041758
lea rdx, [r9 + 1]
mov qword [rbp - 0x48], rdx
movsx ecx, byte [r9]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
inc r10d
mov r9, rdx
mov r11, rdx
movzx r8d, byte [rdx]
cmp r8b, 0x30
jge 0x140041790
jmp 0x14004182f
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x14004182f
mov r8, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x14004182f
lea rdx, [r8 + 1]
mov qword [rbp - 0x48], rdx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm6, xmm1
addsd xmm6, xmm0
mov r8, rdx
movzx ecx, byte [rdx]
cmp cl, 0x30
jge 0x140041800
mov r9, qword [rbp + 0x48]
mov r15d, r14d
movzx eax, byte [rdx]
cmp al, 0x2e
jne 0x140041844
inc rdx
mov qword [rbp - 0x48], rdx
mov rbx, rdx
cmp al, 0x2e
jne 0x140041993
movzx ecx, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140041966
mov r8, rdx
movzx r11d, byte [rbp + 0x60]
test r12b, r12b
jne 0x1400418f0
test r11b, r11b
jne 0x140041875
mov edi, esi
mov rcx, rbx
movzx eax, byte [rdx]
movabs r9, 0x1fffffffffffff
cmp al, 0x39
jg 0x1400418c2
mov r8, rcx
cmp rdi, r9
ja 0x1400418c2
lea rdx, [rbx + 1]
mov r8, rdx
mov qword [rbp - 0x48], rdx
movsx ecx, byte [rbx]
sub ecx, 0x30
lea rax, [rdi + rdi*4]
lea rdi, [rcx + rax*2]
dec r15d
test rdi, rdi
je 0x1400418b5
inc r10d
movzx eax, byte [rdx]
mov rbx, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140041885
xorps xmm6, xmm6
test rdi, rdi
js 0x1400418d1
cvtsi2sd xmm6, rdi
jmp 0x1400418e9
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2sd xmm6, rcx
addsd xmm6, xmm6
mov r12b, 1
movzx ecx, byte [r8]
mov rbx, r8
cmp cl, 0x30
jl 0x140041998
mov r9, r8
mov rcx, r8
movzx eax, byte [rdx]
mov rbx, rcx
cmp al, 0x39
jg 0x140041998
cmp r10d, 0x11
jge 0x140041949
lea rbx, [r8 + 1]
mov rcx, rbx
mov qword [rbp - 0x48], rbx
movsx eax, byte [r8]
sub eax, 0x30
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm6, xmm1
addsd xmm0, xmm6
movaps xmm6, xmm0
dec r15d
comisd xmm0, xmm2
jbe 0x140041954
inc r10d
jmp 0x140041954
lea rbx, [r9 + 1]
mov rcx, rbx
mov qword [rbp - 0x48], rbx
mov r8, rbx
movzx eax, byte [rcx]
mov r9, rbx
mov rcx, rbx
cmp al, 0x30
jge 0x140041905
jmp 0x140041998
lea rdi, [r9 + 0x30]
cmp dword [rdi], r14d
je 0x140041989
mov r8d, 0x627
lea rdx, str.E:DownloadRAFA_PANEL_EXTERNoRAFA_PANEL_EXTERNoSIEMPRE_MEJRO_FAKE_LAG_ETCRAFAGAYPANELTECLARAFAGAYPANELTECLARAFAGAYPANELTECLAexamplesexample_win32_directx11DiscordSDK_src_rapidjson_reader.h
lea rcx, str._HasParseError__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, reloc.WS2_32.dll_ntohl
jmp 0x140041d58
movzx r11d, byte [rbp + 0x60]
cmp byte [rbx], 0x65
je 0x1400419a6
cmp byte [rbx], 0x45
jne 0x140041ab5
inc rbx
mov qword [rbp - 0x48], rbx
test r12b, r12b
jne 0x1400419e3
test r11b, r11b
mov rcx, rdi
jne 0x1400419bc
mov ecx, esi
xorps xmm6, xmm6
test rcx, rcx
js 0x1400419cb
cvtsi2sd xmm6, rcx
jmp 0x1400419e0
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
mov r12b, 1
xor dl, dl
movzx ecx, byte [rbx]
cmp cl, 0x2b
je 0x1400419f4
cmp cl, 0x2d
jne 0x1400419fe
mov dl, 1
inc rbx
movzx ecx, byte [rbx]
mov qword [rbp - 0x48], rbx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140041ba8
inc rbx
mov qword [rbp - 0x48], rbx
movsx r14d, cl
sub r14d, 0x30
test dl, dl
je 0x140041b2b
test r15d, r15d
jle 0x140041a3f
mov r8d, 0x667
lea rdx, str.E:DownloadRAFA_PANEL_EXTERNoRAFA_PANEL_EXTERNoSIEMPRE_MEJRO_FAKE_LAG_ETCRAFAGAYPANELTECLARAFAGAYPANELTECLARAFAGAYPANELTECLAexamplesexample_win32_directx11DiscordSDK_src_rapidjson_reader.h
lea rcx, str.expFrac___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea ecx, [r15 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r8d, edx
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
cmp byte [rbx], 0x30
jl 0x140041ab2
movzx eax, byte [rbx]
cmp al, 0x39
jg 0x140041ab2
lea rdx, [rbx + 1]
mov qword [rbp - 0x48], rdx
lea r14d, [r14 + r14*4]
movsx eax, byte [rbx]
lea r14d, [r14 - 0x18]
lea r14d, [rax + r14*2]
mov rbx, rdx
cmp r14d, r8d
jle 0x140041aab
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x140041aab
mov rcx, rdx
cmp al, 0x39
ja 0x140041aa7
lea rbx, [rcx + 1]
mov rdx, rbx
movzx eax, byte [rbx]
mov rcx, rbx
cmp al, 0x30
jge 0x140041a92
mov qword [rbp - 0x48], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x140041a65
neg r14d
test r12b, r12b
je 0x140041c13
lea eax, [r14 + r15]
cmp eax, 0xfffffecc
jge 0x140041ad1
divsd xmm6, qword [0x140163220]
lea edx, [rax + 0x134]
cmovge edx, eax
movaps xmm0, xmm6
call fcn.140042fe0
movaps xmm6, xmm0
comisd xmm0, xmmword [0x1401351f8]
jbe 0x140041bdf
mov rdi, qword [rbp + 0x48]
cmp dword [rdi + 0x30], 0
je 0x140041b17
mov r8d, 0x6ab
lea rdx, str.E:DownloadRAFA_PANEL_EXTERNoRAFA_PANEL_EXTERNoSIEMPRE_MEJRO_FAKE_LAG_ETCRAFAGAYPANELTECLARAFAGAYPANELTECLARAFAGAYPANELTECLAexamplesexample_win32_directx11DiscordSDK_src_rapidjson_reader.h
lea rcx, str._HasParseError__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [rdi + 0x30], reloc.WS2_32.dll_listen
mov rbx, qword [rbp - 0x50]
mov qword [rdi + 0x38], rbx
jmp 0x140041d6b
mov edx, 0x134
sub edx, r15d
cmp byte [rbx], 0x30
jl 0x140041ab5
movzx eax, byte [rbx]
nop
cmp al, 0x39
jg 0x140041ab5
movsx eax, byte [rbx]
inc rbx
mov qword [rbp - 0x48], rbx
lea r14d, [r14 + r14*4]
lea r14d, [r14 - 0x18]
lea r14d, [rax + r14*2]
cmp r14d, edx
jg 0x140041b6f
movzx eax, byte [rbx]
cmp al, 0x30
jge 0x140041b40
jmp 0x140041ab5
mov rdi, qword [rbp + 0x48]
add rdi, 0x30
cmp dword [rdi], 0
je 0x140041b96
mov r8d, 0x677
lea rdx, str.E:DownloadRAFA_PANEL_EXTERNoRAFA_PANEL_EXTERNoSIEMPRE_MEJRO_FAKE_LAG_ETCRAFAGAYPANELTECLARAFAGAYPANELTECLARAFAGAYPANELTECLAexamplesexample_win32_directx11DiscordSDK_src_rapidjson_reader.h
lea rcx, str._HasParseError__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea rcx, [rdi + 8]
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rbp - 0x50]
jmp 0x140041d66
mov rdi, qword [rbp + 0x48]
cmp dword [rdi + 0x30], r14d
je 0x140041bcc
mov r8d, 0x67c
lea rdx, str.E:DownloadRAFA_PANEL_EXTERNoRAFA_PANEL_EXTERNoSIEMPRE_MEJRO_FAKE_LAG_ETCRAFAGAYPANELTECLARAFAGAYPANELTECLARAFAGAYPANELTECLAexamplesexample_win32_directx11DiscordSDK_src_rapidjson_reader.h
lea rcx, str._HasParseError__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
sub rbx, r13
mov dword [rdi + 0x30], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x38], rbx
jmp 0x140041d6b
cmp byte [rbp - 0x58], 0
je 0x140041bec
xorps xmm6, xmmword [0x140135220]
mov rcx, qword [rbp + 0x58]
add rcx, 0x20
mov edx, 1
call fcn.140042b50
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movsd qword [rax], xmm6
mov word [rax + 0xe], 0x216
jmp 0x140041d6b
mov rcx, qword [rbp + 0x58]
add rcx, 0x20
mov edx, 1
cmp byte [rbp + 0x60], 0
je 0x140041cd9
cmp byte [rbp - 0x58], 0
je 0x140041c83
neg rdi
call fcn.140042b50
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], rdi
mov word [rax + 0xe], __WSAFDIsSet
test rdi, rdi
js 0x140041c6b
mov ecx, 0x196
mov word [rax + 0xe], cx
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x140041cbf
mov ecx, 0x1d6
jmp 0x140041cbb
cmp rdi, 0xffffffff80000000
jl 0x140041d6b
mov word [rax + 0xe], 0xb6
jmp 0x140041d6b
call fcn.140042b50
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], rdi
mov ecx, 0x116
mov word [rax + 0xe], cx
test rdi, rdi
js 0x140041ca8
mov ecx, 0x196
mov word [rax + 0xe], cx
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x140041cbf
or cx, 0x40
mov word [rax + 0xe], cx
test rdi, 0xffffffff80000000
jne 0x140041d6b
or cx, 0x20
mov word [rax + 0xe], cx
jmp 0x140041d6b
cmp byte [rbp - 0x58], 0
je 0x140041d08
neg esi
call fcn.140042b50
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movsxd rcx, esi
mov qword [rax], rcx
mov ecx, 0xb6
mov edx, 0x1f6
test esi, esi
cmovns cx, dx
mov word [rax + 0xe], cx
jmp 0x140041d6b
call fcn.140042b50
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov ecx, esi
mov qword [rax], rcx
shr esi, 0x1a
not si
and si, 0x20
mov ecx, 0x1d6
or si, cx
mov word [rax + 0xe], si
jmp 0x140041d6b
lea rdi, [r9 + 0x30]
cmp dword [rdi], r10d
je 0x140041d53
mov r8d, 0x5fc
lea rdx, str.E:DownloadRAFA_PANEL_EXTERNoRAFA_PANEL_EXTERNoSIEMPRE_MEJRO_FAKE_LAG_ETCRAFAGAYPANELTECLARAFAGAYPANELTECLARAFAGAYPANELTECLAexamplesexample_win32_directx11DiscordSDK_src_rapidjson_reader.h
lea rcx, str._HasParseError__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, 3
mov ecx, 8
mov rdx, rdi
sub rbx, r13
add rcx, rdx
mov dword [rdi], eax
mov qword [rcx], rbx
movups xmm0, xmmword [rbp - 0x48]
mov rax, qword [rbp + 0x50]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm7
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret