Function at 0x1400488f0
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 r12
push r13
push r15
sub rsp, 0x80
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rdx, qword [rdx + 0x28]
mov r12, r8
movaps xmmword [rsp + 0x50], xmm7
mov rax, rdx
movaps xmmword [rsp + 0x40], xmm8
xorps xmm6, xmm6
sub rax, qword [rbx + 0x10]
add rax, qword [rbx + 0x38]
movzx edi, byte [rdx]
movaps xmmword [rsp + 0x30], xmm9
xorps xmm9, xmm9
mov qword [rsp + 0x28], rax
cmp dil, 0x2d
jne 0x140048967
mov rcx, rbx
call fcn.140054350
mov rdx, qword [rbx + 0x28]
mov r13b, 1
mov rcx, qword [rsp + 0xc0]
movzx edi, byte [rdx]
jmp 0x14004896a
xor r13b, r13b
movsd xmm7, qword [0x1401b6b08]
xor r15d, r15d
movsd xmm8, qword [0x1401b6b18]
mov esi, r15d
mov byte [rsp + 0xd8], sil
mov ebp, r15d
mov byte [rsp + 0x20], r13b
mov qword [rsp + 0x78], r14
cmp dil, 0x30
jne 0x1400489b9
mov rcx, rbx
mov r14d, r15d
call fcn.140054350
mov rcx, qword [rbx + 0x28]
xor dl, dl
mov byte [rsp + 0xc8], dl
jmp 0x140048bc3
lea eax, [rdi - 0x31]
cmp al, 8
ja 0x140049162
mov rcx, rbx
call fcn.140054350
mov rax, qword [rbx + 0x28]
movsx r14d, dil
sub r14d, 0x30
movzx edi, byte [rax]
test r13b, r13b
je 0x140048a34
cmp dil, 0x30
jl 0x140048a8b
nop word [rax + rax]
cmp dil, 0x39
jg 0x140048a8b
cmp r14d, 0xccccccc
jb 0x140048a0b
jne 0x140048a80
cmp dil, 0x38
jg 0x140048a80
mov rcx, rbx
call fcn.140054350
mov rax, qword [rbx + 0x28]
lea ecx, [r14 + r14*4]
movsx r14d, dil
inc ebp
add r14d, 0xffffffd0
movzx edi, byte [rax]
lea r14d, [r14 + rcx*2]
cmp dil, 0x30
jge 0x1400489f0
jmp 0x140048a8b
cmp dil, 0x30
jl 0x140048a8b
nop word [rax + rax]
cmp dil, 0x39
jg 0x140048a8b
cmp r14d, 0x19999999
jb 0x140048a57
jne 0x140048a80
cmp dil, 0x35
jg 0x140048a80
mov rcx, rbx
call fcn.140054350
mov rax, qword [rbx + 0x28]
lea ecx, [r14 + r14*4]
movsx r14d, dil
inc ebp
add r14d, 0xffffffd0
movzx edi, byte [rax]
lea r14d, [r14 + rcx*2]
cmp dil, 0x30
jge 0x140048a40
jmp 0x140048a8b
mov byte [rsp + 0xd8], 1
mov esi, r14d
xor r13b, r13b
mov rdx, rax
mov byte [rsp + 0xc8], r13b
cmp byte [rsp + 0xd8], r13b
je 0x140048b70
movzx ecx, byte [rax]
cmp byte [rsp + 0x20], r15b
je 0x140048b06
cmp cl, 0x30
jl 0x140048b70
movzx edi, cl
movabs rax, 0xccccccccccccccc
cmp dil, 0x39
jg 0x140048b70
cmp rsi, rax
jb 0x140048ade
jne 0x140048b53
cmp dil, 0x38
jg 0x140048b53
mov rcx, rbx
call fcn.140054350
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc ebp
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jl 0x140048b70
jmp 0x140048abd
cmp cl, 0x30
jl 0x140048b70
movzx edi, byte [rax]
movabs rax, 0x1999999999999999
cmp dil, 0x39
jg 0x140048b70
cmp rsi, rax
jb 0x140048b2b
jne 0x140048b53
cmp dil, 0x35
jg 0x140048b53
mov rcx, rbx
call fcn.140054350
mov rdx, qword [rbx + 0x28]
lea rax, [rsi + rsi*4]
movsx ecx, dil
inc ebp
sub ecx, 0x30
movzx edi, byte [rdx]
lea rsi, [rcx + rax*2]
cmp dil, 0x30
jl 0x140048b70
jmp 0x140048b0e
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x140048b65
addsd xmm6, xmm8
mov r13b, 1
mov byte [rsp + 0xc8], r13b
mov rcx, rdx
test r13b, r13b
je 0x140048bbb
cmp byte [rdx], 0x30
jl 0x140048bbb
movzx edi, byte [rdx]
mov rcx, rdx
cmp dil, 0x39
jg 0x140048bbb
mov rcx, rbx
call fcn.140054350
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 0x140048b80
movzx edx, byte [rsp + 0xc8]
cmp byte [rcx], 0x2e
mov r13d, r15d
jne 0x140048cf4
mov rcx, rbx
call fcn.140054350
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
jbe 0x140048c05
sub rcx, qword [rbx + 0x10]
mov rdx, qword [rsp + 0xc0]
add rcx, qword [rbx + 0x38]
mov dword [rdx + 0x30], reloc.WS2_32.dll_ntohl
mov qword [rdx + 0x38], rcx
jmp 0x140049178
cmp byte [rsp + 0xc8], r13b
jne 0x140048c9c
cmp byte [rsp + 0xd8], r13b
movabs r12, 0x1fffffffffffff
mov eax, r14d
cmovne rax, rsi
mov rsi, rax
nop
mov rdx, rcx
cmp dil, 0x39
jg 0x140048c73
cmp rsi, r12
ja 0x140048c73
mov rcx, rbx
call fcn.140054350
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, [rbp + 1]
mov rdx, rcx
cmove eax, ebp
movzx edi, byte [rcx]
mov ebp, eax
cmp dil, 0x30
jge 0x140048c30
mov r12, qword [rsp + 0xd0]
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x140048c8d
addsd xmm6, xmm8
movzx edi, byte [rdx]
mov rcx, qword [rbx + 0x28]
mov byte [rsp + 0xc8], 1
cmp dil, 0x30
jl 0x140048cec
cmp dil, 0x39
jg 0x140048cec
cmp ebp, 0x11
jge 0x140048cd7
mulsd xmm6, xmm7
dec r13d
movsx eax, dil
sub eax, 0x30
movd xmm0, eax
lea eax, [rbp + 1]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm6
comisd xmm0, xmm9
movaps xmm6, xmm0
cmovbe eax, ebp
mov ebp, eax
mov rcx, rbx
call fcn.140054350
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
cmp dil, 0x30
jge 0x140048ca2
movzx edx, byte [rsp + 0xc8]
movzx eax, byte [rcx]
sub al, 0x45
test al, 0xdf
jne 0x140048e21
mov rcx, rbx
call fcn.140054350
cmp byte [rsp + 0xc8], r15b
jne 0x140048d3f
cmp byte [rsp + 0xd8], r15b
mov rcx, rsi
mov eax, r14d
xorps xmm6, xmm6
cmove rcx, rax
cvtsi2sd xmm6, rcx
test rcx, rcx
jns 0x140048d37
addsd xmm6, xmm8
mov byte [rsp + 0xc8], 1
mov rcx, qword [rbx + 0x28]
xor bpl, bpl
movzx edi, byte [rcx]
cmp dil, 0x2b
jne 0x140048d59
mov rcx, rbx
call fcn.140054350
jmp 0x140048d6a
cmp dil, 0x2d
jne 0x140048d71
mov rcx, rbx
call fcn.140054350
mov bpl, 1
mov rcx, qword [rbx + 0x28]
movzx edi, byte [rcx]
lea eax, [rdi - 0x30]
cmp al, 9
ja 0x140048eed
mov rcx, rbx
call fcn.140054350
mov rax, qword [rbx + 0x28]
movsx r15d, dil
sub r15d, 0x30
movzx edi, byte [rax]
test bpl, bpl
je 0x140048e95
lea ecx, [r13 + 0x7ffffff7]
mov eax, 0x66666667
imul ecx
mov ebp, edx
sar ebp, 2
mov eax, ebp
shr eax, 0x1f
add ebp, eax
cmp dil, 0x30
jl 0x140048e16
nop dword [rax]
cmp dil, 0x39
jg 0x140048e16
mov rcx, rbx
call fcn.140054350
lea ecx, [r15 + r15*4]
movsx eax, dil
lea r15d, [rcx - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jle 0x140048e09
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jl 0x140048e09
nop
cmp cl, 0x39
jg 0x140048e09
mov rcx, rbx
call fcn.140054350
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rax]
cmp cl, 0x30
jge 0x140048df0
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x140048dc0
neg r15d
movzx edx, byte [rsp + 0xc8]
test dl, dl
je 0x140048f81
lea ecx, [r15 + r13]
cmp ecx, 0xfffffecc
jge 0x140048f32
divsd xmm6, qword [0x1401bf5c8]
lea edx, [rcx + 0x134]
cmp edx, 0xfffffecc
jge 0x140048f10
movaps xmm6, xmm9
cmp byte [rsp + 0x20], 0
je 0x140048e65
xorps xmm6, xmmword [0x1401bf600]
movaps xmm1, xmm6
mov rcx, r12
call fcn.140053aa0
test al, al
jne 0x140049178
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x28]
mov dword [rdx + 0x30], shutdown
mov qword [rdx + 0x38], rax
jmp 0x140049178
mov ebp, 0x134
sub ebp, r13d
cmp dil, 0x30
jl 0x140048e19
nop word [rax + rax]
cmp dil, 0x39
jg 0x140048e19
mov rcx, rbx
call fcn.140054350
lea r15d, [r15 + r15*4]
movsx eax, dil
lea r15d, [r15 - 0x18]
lea r15d, [rax + r15*2]
cmp r15d, ebp
jg 0x140048f64
mov rax, qword [rbx + 0x28]
movzx edi, byte [rax]
cmp dil, 0x30
jge 0x140048eb0
jmp 0x140048e19
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0xc0]
add rax, rcx
mov qword [rdx + 0x38], rax
mov dword [rdx + 0x30], setsockopt
jmp 0x140049178
movsxd rax, ecx
lea rcx, [rax*8 + 0x9a0]
lea rax, [0x1401bd2c0]
test edx, edx
js 0x140048f2d
mulsd xmm6, qword [rcx + rax]
jmp 0x140048f56
sub rax, rcx
jmp 0x140048f52
movsxd rax, ecx
lea rdx, [rax*8]
lea rax, [0x1401bd2c0]
test ecx, ecx
js 0x140048f4f
mulsd xmm6, qword [rdx + rax]
jmp 0x140048f56
sub rax, rdx
divsd xmm6, qword [rax]
comisd xmm6, xmmword [0x1401bf5d0]
jbe 0x140048e57
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x28]
mov dword [rdx + 0x30], reloc.WS2_32.dll_listen
mov qword [rdx + 0x38], rax
jmp 0x140049178
cmp byte [rsp + 0xd8], 0
je 0x1400490b8
cmp byte [rsp + 0x20], 0
je 0x14004903a
mov rdx, qword [r12 + 0x38]
not rsi
inc rsi
lea rax, [rdx + 0x10]
cmp rax, qword [r12 + 0x40]
jbe 0x140048fc4
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.1400484f0
mov rdx, qword [r12 + 0x38]
lea rax, [rdx + 0x10]
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rdx + 8], rax
mov eax, 0x96
mov word [rdx + 0xe], ax
mov qword [rdx], rsi
test rsi, rsi
js 0x14004901f
movabs r8, 0xffffffff00000000
mov eax, 0x196
mov word [rdx + 0xe], ax
test r8, rsi
jne 0x140049005
mov eax, 0x1d6
mov word [rdx + 0xe], ax
test rsi, 0xffffffff80000000
jne 0x140049178
or ax, 0x20
mov word [rdx + 0xe], ax
jmp 0x140049178
cmp rsi, 0xffffffff80000000
jl 0x140049178
mov eax, 0xb6
mov word [rdx + 0xe], ax
jmp 0x140049178
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
cmp rax, qword [r12 + 0x40]
jbe 0x14004905e
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.1400484f0
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rcx + 8], rax
mov eax, 0x116
mov word [rcx + 0xe], ax
mov qword [rcx], rsi
test rsi, rsi
js 0x140049087
mov eax, 0x196
mov word [rcx + 0xe], ax
movabs r8, 0xffffffff00000000
test r8, rsi
jne 0x14004909e
or ax, 0x40
mov word [rcx + 0xe], ax
test rsi, 0xffffffff80000000
jne 0x140049178
or ax, 0x20
mov word [rcx + 0xe], ax
jmp 0x140049178
cmp byte [rsp + 0x20], 0
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
je 0x140049115
not r14d
inc r14d
cmp rax, qword [r12 + 0x40]
jbe 0x1400490e9
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.1400484f0
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
mov edx, 0x1f6
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rcx + 8], rax
test r14d, r14d
movsxd rax, r14d
mov qword [rcx], rax
mov eax, 0xb6
cmovns ax, dx
mov word [rcx + 0xe], ax
jmp 0x140049178
cmp rax, qword [r12 + 0x40]
jbe 0x140049130
mov edx, 1
lea rcx, [r12 + 0x20]
call fcn.1400484f0
mov rcx, qword [r12 + 0x38]
lea rax, [rcx + 0x10]
mov qword [r12 + 0x38], rax
xor eax, eax
mov qword [rcx + 8], rax
mov eax, r14d
shr r14d, 0x1a
not r14w
mov qword [rcx], rax
and r14w, 0x20
mov eax, 0x1d6
or r14w, ax
mov word [rcx + 0xe], r14w
jmp 0x140049178
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]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x80
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret