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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x88
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rdx, qword [rdx + 0x28]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm8
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
movzx edi, byte [rdx]
add rax, rdx
movaps xmmword [rsp + 0x30], xmm9
xorps xmm9, xmm9
mov qword [rsp + 0x20], rax
cmp dil, 0x2d
jne 0x14003b6c2
mov rcx, rbx
call fcn.1400394a0
mov rdx, qword [rbx + 0x28]
mov r13b, 1
mov rcx, qword [rsp + 0xc0]
movzx edi, byte [rdx]
jmp 0x14003b6c5
xor r13b, r13b
movsd xmm7, qword [0x1401e69f8]
xor ebp, ebp
movsd xmm8, qword [0x1401e6a38]
mov esi, ebp
mov qword [rsp + 0x80], r12
mov r15d, ebp
mov byte [rsp + 0xc8], sil
mov byte [rsp + 0xd8], r13b
mov qword [rsp + 0x78], r14
cmp dil, 0x30
jne 0x14003b717
mov rcx, rbx
mov r14d, ebp
call fcn.1400394a0
mov rcx, qword [rbx + 0x28]
xor r12b, r12b
jmp 0x14003b912
lea eax, [rdi - 0x31]
cmp al, 8
ja 0x14003bc79
mov rcx, rbx
call fcn.1400394a0
mov rax, qword [rbx + 0x28]
movsx r14d, dil
sub r14d, 0x30
movzx edi, byte [rax]
test r13b, r13b
je 0x14003b795
cmp dil, 0x30
jl 0x14003b7ec
nop dword [rax + rax]
cmp dil, 0x39
jg 0x14003b7ec
cmp r14d, 0xccccccc
jb 0x14003b76b
jne 0x14003b7e1
cmp dil, 0x38
jg 0x14003b7e1
mov rcx, rbx
call fcn.1400394a0
mov rax, qword [rbx + 0x28]
lea ecx, [r14 + r14*4]
movsx r14d, dil
inc r15d
add r14d, 0xffffffd0
movzx edi, byte [rax]
lea r14d, [r14 + rcx*2]
cmp dil, 0x30
jge 0x14003b750
jmp 0x14003b7ec
cmp dil, 0x30
jl 0x14003b7ec
nop dword [rax + rax]
cmp dil, 0x39
jg 0x14003b7ec
cmp r14d, 0x19999999
jb 0x14003b7b7
jne 0x14003b7e1
cmp dil, 0x35
jg 0x14003b7e1
mov rcx, rbx
call fcn.1400394a0
mov rax, qword [rbx + 0x28]
lea ecx, [r14 + r14*4]
movsx r14d, dil
inc r15d
add r14d, 0xffffffd0
movzx edi, byte [rax]
lea r14d, [r14 + rcx*2]
cmp dil, 0x30
jge 0x14003b7a0
jmp 0x14003b7ec
mov byte [rsp + 0xc8], 1
mov esi, r14d
xor r12b, r12b
mov rdx, rax
cmp byte [rsp + 0xc8], bpl
je 0x14003b8c7
movzx ecx, byte [rax]
test r13b, r13b
je 0x14003b864
cmp cl, 0x30
jl 0x14003b8c7
movzx edi, cl
movabs r13, 0xccccccccccccccc
nop
cmp dil, 0x39
jg 0x14003b8c7
cmp rsi, r13
jb 0x14003b83b
jne 0x14003b8b2
cmp dil, 0x38
jg 0x14003b8b2
mov rcx, rbx
call fcn.1400394a0
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc r15d
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jge 0x14003b820
jmp 0x14003b8c7
cmp cl, 0x30
jl 0x14003b8c7
movzx edi, byte [rax]
movabs r13, 0x1999999999999999
cmp dil, 0x39
jg 0x14003b8c7
cmp rsi, r13
jb 0x14003b889
jne 0x14003b8b2
cmp dil, 0x35
jg 0x14003b8b2
mov rcx, rbx
call fcn.1400394a0
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc r15d
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jge 0x14003b876
jmp 0x14003b8c7
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x14003b8c4
addsd xmm6, xmm8
mov r12b, 1
mov rcx, rdx
test r12b, r12b
je 0x14003b912
cmp byte [rdx], 0x30
jl 0x14003b912
movzx edi, byte [rdx]
mov rcx, rdx
cmp dil, 0x39
jg 0x14003b912
mov rcx, rbx
call fcn.1400394a0
mov rcx, qword [rbx + 0x28]
movsx eax, dil
mov rdx, rcx
sub eax, 0x30
mulsd xmm6, xmm7
movzx edi, byte [rcx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
movaps xmm6, xmm0
cmp dil, 0x30
jge 0x14003b8d7
cmp byte [rcx], 0x2e
mov r13d, ebp
jne 0x14003ba2e
mov rcx, rbx
call fcn.1400394a0
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
jbe 0x14003b953
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rcx
mov rcx, qword [rsp + 0xc0]
mov dword [rcx + 0x30], ntohs
jmp 0x14003bc8b
test r12b, r12b
jne 0x14003b9d6
cmp byte [rsp + 0xc8], bpl
movabs r12, 0x1fffffffffffff
mov eax, r14d
cmovne rax, rsi
mov rsi, rax
mov rdx, rcx
cmp dil, 0x39
jg 0x14003b9ba
cmp rsi, r12
ja 0x14003b9ba
mov rcx, rbx
call fcn.1400394a0
movsx ecx, dil
lea rax, [rsi + rsi*4]
sub ecx, 0x30
dec r13d
lea rsi, [rcx + rax*2]
mov rcx, qword [rbx + 0x28]
test rsi, rsi
lea eax, [r15 + 1]
mov rdx, rcx
cmove eax, r15d
movzx edi, byte [rcx]
mov r15d, eax
cmp dil, 0x30
jge 0x14003b974
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x14003b9cc
addsd xmm6, xmm8
movzx edi, byte [rdx]
mov r12b, 1
mov rcx, qword [rbx + 0x28]
cmp dil, 0x30
jl 0x14003ba2e
nop dword [rax]
cmp dil, 0x39
jg 0x14003ba2e
cmp r15d, 0x11
jge 0x14003ba19
mulsd xmm6, xmm7
dec r13d
movsx eax, dil
sub eax, 0x30
movd xmm0, eax
lea eax, [r15 + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm9
movaps xmm6, xmm0
cmovbe eax, r15d
mov r15d, eax
mov rcx, rbx
call fcn.1400394a0
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x14003b9e0
movzx eax, byte [rcx]
sub al, 0x45
test al, 0xdf
jne 0x14003bb4a
mov rcx, rbx
call fcn.1400394a0
test r12b, r12b
jne 0x14003ba6f
cmp byte [rsp + 0xc8], bpl
mov rcx, rsi
mov eax, r14d
xorps xmm6, xmm6
cmove rcx, rax
cvtsi2sd xmm6, rcx
test rcx, rcx
jns 0x14003ba6c
addsd xmm6, xmm8
mov r12b, 1
mov rcx, qword [rbx + 0x28]
xor r15b, r15b
movzx edi, byte [rcx]
cmp dil, 0x2b
jne 0x14003ba89
mov rcx, rbx
call fcn.1400394a0
jmp 0x14003ba9a
cmp dil, 0x2d
jne 0x14003baa1
mov rcx, rbx
call fcn.1400394a0
mov r15b, 1
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x14003bbec
mov rcx, rbx
call fcn.1400394a0
mov rax, qword [rbx + 0x28]
movsx ebp, dil
sub ebp, 0x30
movzx edi, byte [rax]
test r15b, r15b
je 0x14003bb90
lea ecx, [r13 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov r15d, edx
sar r15d, 2
mov eax, r15d
shr eax, 0x1f
add r15d, eax
cmp dil, 0x30
jl 0x14003bb48
nop
cmp dil, 0x39
jg 0x14003bb48
mov rcx, rbx
call fcn.1400394a0
lea ecx, [rbp*4]
movsx eax, dil
add ecx, ebp
lea ebp, [rcx - 0x18]
lea ebp, [rax + rbp*2]
cmp ebp, r15d
jle 0x14003bb3b
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x14003bb3b
cmp cl, 0x39
jg 0x14003bb3b
mov rcx, rbx
call fcn.1400394a0
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x14003bb22
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x14003baf0
neg ebp
test r12b, r12b
je 0x14003bc0b
mov edx, ebp
movaps xmm0, xmm6
add edx, r13d
call fcn.140002760
comisd xmm0, xmmword [0x1401e6a48]
ja 0x14003bbd3
cmp byte [rsp + 0xd8], 0
je 0x14003bb7b
xorps xmm0, xmmword [0x1401e6be0]
mov rcx, qword [rsp + 0xd0]
movaps xmm1, xmm0
call fcn.140004a60
jmp 0x14003bc5f
mov r15d, 0x134
sub r15d, r13d
cmp dil, 0x30
jl 0x14003bb4a
nop
cmp dil, 0x39
jg 0x14003bb4a
mov rcx, rbx
call fcn.1400394a0
lea ebp, [rbp + rbp*4]
movsx eax, dil
lea ebp, [rbp - 0x18]
lea ebp, [rax + rbp*2]
cmp ebp, r15d
jg 0x14003bbd3
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x14003bba0
jmp 0x14003bb4a
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x20]
mov dword [rcx + 0x30], reloc.WS2_32.dll_listen
jmp 0x14003bc8b
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rcx
mov rcx, qword [rsp + 0xc0]
mov dword [rcx + 0x30], reloc.WS2_32.dll_ntohs
jmp 0x14003bc8b
cmp byte [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
je 0x14003bc3f
cmp byte [rsp + 0xd8], 0
je 0x14003bc35
not rsi
lea rdx, [rsi + 1]
call fcn.140004b50
jmp 0x14003bc5f
mov rdx, rsi
call fcn.140004ac0
jmp 0x14003bc5f
cmp byte [rsp + 0xd8], 0
je 0x14003bc57
not r14d
lea edx, [r14 + 1]
call fcn.140004c10
jmp 0x14003bc5f
mov edx, r14d
call fcn.140004ba0
test al, al
jne 0x14003bc8f
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x20]
mov dword [rcx + 0x30], shutdown
jmp 0x14003bc8b
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
add rax, rdx
mov dword [rcx + 0x30], 3
mov qword [rcx + 0x38], rax
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x88
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret