Function at 0x140041030
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 0x14004109e
inc rbx
mov qword [rbp - 0x48], rbx
mov r11b, 1
jmp 0x1400410a1
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 0x1400410cd
mov esi, r14d
lea rdx, [rbx + 1]
mov qword [rbp - 0x48], rdx
jmp 0x140041195
lea eax, [rcx - 0x31]
cmp al, 8
ja 0x1400417f0
lea rdx, [rbx + 1]
mov qword [rbp - 0x48], rdx
lea esi, [rcx - 0x30]
movzx eax, byte [rdx]
test r11b, r11b
je 0x140041140
cmp al, 0x30
jl 0x140041195
mov r8, rdx
mov rcx, rdx
nop dword [rax]
cmp al, 0x39
ja 0x140041195
cmp esi, 0xccccccc
jb 0x140041119
jne 0x14004118c
mov r8, rcx
cmp al, 0x38
ja 0x14004118c
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 0x140041100
jmp 0x140041195
cmp al, 0x30
jl 0x140041195
mov r8, rdx
mov rcx, rdx
nop word [rax + rax]
cmp al, 0x39
jg 0x140041195
cmp esi, 0x19999999
jb 0x140041165
jne 0x14004118c
mov r8, rcx
cmp al, 0x35
jg 0x14004118c
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 0x140041150
jmp 0x140041195
mov r15b, 1
mov byte [rbp + 0x60], r15b
mov edi, esi
xor r12b, r12b
movsd xmm1, qword [0x140163108]
test r15b, r15b
je 0x1400412f3
test r11b, r11b
je 0x14004122d
movzx ecx, byte [rdx]
cmp cl, 0x30
jl 0x1400412f3
mov r8, rdx
mov r9, rdx
movabs r11, 0xccccccccccccccc
nop word [rax + rax]
cmp cl, 0x39
ja 0x1400412ef
cmp rdi, r11
jb 0x1400411e8
jne 0x140041215
mov r8, r9
cmp cl, 0x38
ja 0x140041215
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 0x1400411d0
jmp 0x1400412ef
mov rcx, rdi
mov r12b, 1
xorps xmm6, xmm6
test rcx, rcx
js 0x140041299
cvtsi2sd xmm6, rcx
jmp 0x1400412ae
movzx r8d, byte [rdx]
cmp r8b, 0x30
jl 0x1400412f3
mov r9, rdx
mov r11, rdx
movabs rbx, 0x1999999999999999
nop dword [rax + rax]
mov rcx, rdi
cmp r8b, 0x39
ja 0x1400412ef
cmp rdi, rbx
jb 0x14004126d
jne 0x140041218
mov r9, r11
cmp r8b, 0x35
ja 0x140041218
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 0x140041250
jmp 0x1400412ef
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 0x1400412ef
mov r8, rdx
nop dword [rax]
cmp cl, 0x39
ja 0x1400412ef
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 0x1400412c0
mov r9, qword [rbp + 0x48]
mov r15d, r14d
movzx eax, byte [rdx]
cmp al, 0x2e
jne 0x140041304
inc rdx
mov qword [rbp - 0x48], rdx
mov rbx, rdx
cmp al, 0x2e
jne 0x140041453
movzx ecx, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140041426
mov r8, rdx
movzx r11d, byte [rbp + 0x60]
test r12b, r12b
jne 0x1400413b0
test r11b, r11b
jne 0x140041335
mov edi, esi
mov rcx, rbx
movzx eax, byte [rdx]
movabs r9, 0x1fffffffffffff
cmp al, 0x39
jg 0x140041382
mov r8, rcx
cmp rdi, r9
ja 0x140041382
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 0x140041375
inc r10d
movzx eax, byte [rdx]
mov rbx, rdx
mov rcx, rdx
cmp al, 0x30
jge 0x140041345
xorps xmm6, xmm6
test rdi, rdi
js 0x140041391
cvtsi2sd xmm6, rdi
jmp 0x1400413a9
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 0x140041458
mov r9, r8
mov rcx, r8
movzx eax, byte [rdx]
mov rbx, rcx
cmp al, 0x39
jg 0x140041458
cmp r10d, 0x11
jge 0x140041409
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 0x140041414
inc r10d
jmp 0x140041414
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 0x1400413c5
jmp 0x140041458
lea rdi, [r9 + 0x30]
cmp dword [rdi], r14d
je 0x140041449
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 0x140041818
movzx r11d, byte [rbp + 0x60]
cmp byte [rbx], 0x65
je 0x140041466
cmp byte [rbx], 0x45
jne 0x140041575
inc rbx
mov qword [rbp - 0x48], rbx
test r12b, r12b
jne 0x1400414a3
test r11b, r11b
mov rcx, rdi
jne 0x14004147c
mov ecx, esi
xorps xmm6, xmm6
test rcx, rcx
js 0x14004148b
cvtsi2sd xmm6, rcx
jmp 0x1400414a0
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 0x1400414b4
cmp cl, 0x2d
jne 0x1400414be
mov dl, 1
inc rbx
movzx ecx, byte [rbx]
mov qword [rbp - 0x48], rbx
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140041668
inc rbx
mov qword [rbp - 0x48], rbx
movsx r14d, cl
sub r14d, 0x30
test dl, dl
je 0x1400415eb
test r15d, r15d
jle 0x1400414ff
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 0x140041572
movzx eax, byte [rbx]
cmp al, 0x39
jg 0x140041572
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 0x14004156b
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14004156b
mov rcx, rdx
cmp al, 0x39
ja 0x140041567
lea rbx, [rcx + 1]
mov rdx, rbx
movzx eax, byte [rbx]
mov rcx, rbx
cmp al, 0x30
jge 0x140041552
mov qword [rbp - 0x48], rdx
movzx eax, byte [rdx]
cmp al, 0x30
jge 0x140041525
neg r14d
test r12b, r12b
je 0x1400416d3
lea eax, [r14 + r15]
cmp eax, 0xfffffecc
jge 0x140041591
divsd xmm6, qword [0x140163110]
lea edx, [rax + 0x134]
cmovge edx, eax
movaps xmm0, xmm6
call fcn.140042aa0
movaps xmm6, xmm0
comisd xmm0, xmmword [0x1401351f8]
jbe 0x14004169f
mov rdi, qword [rbp + 0x48]
cmp dword [rdi + 0x30], 0
je 0x1400415d7
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 0x14004182b
mov edx, 0x134
sub edx, r15d
cmp byte [rbx], 0x30
jl 0x140041575
movzx eax, byte [rbx]
nop
cmp al, 0x39
jg 0x140041575
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 0x14004162f
movzx eax, byte [rbx]
cmp al, 0x30
jge 0x140041600
jmp 0x140041575
mov rdi, qword [rbp + 0x48]
add rdi, 0x30
cmp dword [rdi], 0
je 0x140041656
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 0x140041826
mov rdi, qword [rbp + 0x48]
cmp dword [rdi + 0x30], r14d
je 0x14004168c
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 0x14004182b
cmp byte [rbp - 0x58], 0
je 0x1400416ac
xorps xmm6, xmmword [0x140135220]
mov rcx, qword [rbp + 0x58]
add rcx, 0x20
mov edx, 1
call fcn.140042610
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movsd qword [rax], xmm6
mov word [rax + 0xe], 0x216
jmp 0x14004182b
mov rcx, qword [rbp + 0x58]
add rcx, 0x20
mov edx, 1
cmp byte [rbp + 0x60], 0
je 0x140041799
cmp byte [rbp - 0x58], 0
je 0x140041743
neg rdi
call fcn.140042610
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], rdi
mov word [rax + 0xe], __WSAFDIsSet
test rdi, rdi
js 0x14004172b
mov ecx, 0x196
mov word [rax + 0xe], cx
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x14004177f
mov ecx, 0x1d6
jmp 0x14004177b
cmp rdi, 0xffffffff80000000
jl 0x14004182b
mov word [rax + 0xe], 0xb6
jmp 0x14004182b
call fcn.140042610
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], rdi
mov ecx, 0x116
mov word [rax + 0xe], cx
test rdi, rdi
js 0x140041768
mov ecx, 0x196
mov word [rax + 0xe], cx
movabs rdx, 0xffffffff00000000
test rdx, rdi
jne 0x14004177f
or cx, 0x40
mov word [rax + 0xe], cx
test rdi, 0xffffffff80000000
jne 0x14004182b
or cx, 0x20
mov word [rax + 0xe], cx
jmp 0x14004182b
cmp byte [rbp - 0x58], 0
je 0x1400417c8
neg esi
call fcn.140042610
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 0x14004182b
call fcn.140042610
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 0x14004182b
lea rdi, [r9 + 0x30]
cmp dword [rdi], r10d
je 0x140041813
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