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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0x98]
xor r12d, r12d
movzx eax, byte [rdx]
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [r15], r12
cmp al, 0xa
je 0x1400905ac
cmp al, 0xd
je 0x1400905ac
lea rdi, [rcx + 0x13c]
mov qword [rsp + 0x70], rbp
mov ecx, dword [rdi]
mov ebp, 4
lea eax, [rcx + 1]
mov dword [rdi], eax
test ecx, ecx
jne 0x1400904c6
mov dword [rbx + 0x148], r12d
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x3d8]
mov eax, dword [rcx + 0x8c]
test eax, 0xc0000003
je 0x14009024d
movzx eax, byte [rdx]
mov rdi, rdx
test al, al
je 0x1400900c7
cmp al, 0x20
je 0x1400900bc
cmp byte [rdi], 9
jne 0x1400900c7
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400900b3
mov r8d, 5
lea rdx, str.HTTP_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140090184
movsx edx, byte [rdi + 5]
mov ecx, edx
sub ecx, 0x31
je 0x1400901b4
sub ecx, 1
je 0x140090117
cmp ecx, 1
je 0x140090117
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rbx
call fcn.140077850
mov eax, 1
jmp 0x1400903c1
movzx eax, byte [rdi + 6]
cmp al, 0x20
je 0x140090123
cmp al, 9
jne 0x140090184
lea eax, [rdx - 0x30]
lea ecx, [rax + rax*4]
add ecx, ecx
mov dword [rbx + 0x148], ecx
movsx ecx, byte [rdi + 7]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140090184
movsx edx, byte [rdi + 8]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140090184
movsx r8d, byte [rdi + 9]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x140090184
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rbx + 0x14c], ecx
movzx eax, byte [rdi + 0xa]
cmp al, 0x20
je 0x140090331
sub al, 9
cmp al, bpl
jbe 0x140090331
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14008dc20
cmp eax, 1
jne 0x1400904f1
mov dword [rbx + 0x14c], 0xc8
mov dword [rbx + 0x148], 0xa
jmp 0x140090331
cmp byte [rdi + 6], 0x2e
jne 0x140090234
movsx ecx, byte [rdi + 7]
lea eax, [rcx - 0x30]
cmp al, 1
ja 0x140090234
movzx eax, byte [rdi + 8]
cmp al, 0x20
je 0x1400901d1
cmp al, 9
jne 0x140090234
lea eax, [rcx - 0x26]
mov dword [rbx + 0x148], eax
movsx ecx, byte [rdi + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140090234
movsx edx, byte [rdi + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140090234
movsx r8d, byte [rdi + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x140090234
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rbx + 0x14c], ecx
movzx eax, byte [rdi + 0xc]
cmp al, 0x20
je 0x140090331
cmp al, 9
je 0x140090331
sub al, 0xa
cmp al, 3
jbe 0x140090331
lea rdx, str.Unsupported_HTTP_1_subversion_in_response
mov rcx, rbx
call fcn.140077850
mov eax, 1
jmp 0x1400903c1
bt eax, 0x12
jae 0x1400904f1
movzx eax, byte [rdx]
mov rdi, rsi
test al, al
je 0x140090275
cmp al, 0x20
je 0x14009026a
cmp byte [rdi], 9
jne 0x140090275
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140090261
mov r8d, 5
lea rdx, str.RTSP_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400904f1
movzx eax, byte [rdi + 5]
sub al, 0x30
cmp al, 9
ja 0x1400904f8
cmp byte [rdi + 6], 0x2e
jne 0x1400904f8
movzx eax, byte [rdi + 7]
sub al, 0x30
cmp al, 9
ja 0x1400904f8
movzx eax, byte [rdi + 8]
cmp al, 0x20
je 0x1400902c9
cmp al, 9
jne 0x1400904f8
movsx ecx, byte [rdi + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400904f8
movsx edx, byte [rdi + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400904f8
movsx r8d, byte [rdi + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400904f8
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rbx + 0x14c], ecx
movzx eax, byte [rdi + 0xc]
cmp al, 0x20
je 0x140090327
cmp al, 9
je 0x140090327
sub al, 0xa
cmp al, 3
ja 0x1400904f8
mov dword [rbx + 0x148], recv
mov r9d, dword [rbx + 0x148]
mov ecx, r9d
mov rdi, qword [rbx + 0x18]
sub ecx, 0xa
je 0x140090373
cmp ecx, 1
je 0x140090373
mov eax, 0x66666667
imul r9d
mov r8d, edx
lea rdx, str.Unsupported_HTTP_version___u._d__in_response
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
lea eax, [r8 + r8*4]
add eax, eax
sub r9d, eax
jmp 0x1400903b2
movzx eax, byte [rdi + 0x6c4]
test al, al
je 0x1400903e1
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, 0x66666667
mov r8d, edx
imul r9d
shr r8d, 3
mov r9d, edx
sar r9d, 2
mov eax, r9d
shr eax, 0x1f
add r9d, eax
cmp r9d, r8d
je 0x1400903e1
lea rdx, str.Version_mismatch__from_HTTP__u_to_HTTP__u_
mov rcx, rbx
mov edi, 1
call fcn.140077850
mov eax, edi
mov rbp, qword [rsp + 0x70]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov eax, dword [rbx + 0x14c]
mov dword [rbx + 0x1240], eax
mov eax, dword [rbx + 0x148]
mov dword [rbx + 0x1248], eax
movzx eax, byte [rbx + 0x148]
mov byte [rdi + 0x6c4], al
movzx eax, byte [rbx + 0x1229]
test al, al
je 0x140090419
cmp eax, dword [rbx + 0x148]
jle 0x140090426
movzx eax, byte [rbx + 0x148]
mov byte [rbx + 0x1229], al
cmp qword [rbx + 0x1068], r12
je 0x14009044b
cmp byte [rbx + 0x122a], r12b
jne 0x14009044b
cmp dword [rbx + 0x14c], 0x1a0
jne 0x14009044b
mov byte [rbx + 0x1e3], 1
cmp dword [rbx + 0x148], 0xa
jne 0x140090473
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, rbx
call fcn.140077a60
cmp byte [rdi + 0x3bd], 1
je 0x140090473
mov byte [rdi + 0x3bd], 1
mov ecx, dword [rbx + 0x14c]
lea eax, [rcx - 0x64]
cmp eax, 0x63
setbe al
mov byte [rbx + 0x1e4], al
sub ecx, 0xcc
je 0x1400904a5
cmp ecx, 0x64
jne 0x1400904ba
cmp byte [rbx + 0x530], r12b
je 0x1400904a5
mov byte [rbx + 0x131c], 1
mov qword [rbx + 0x100], r12
mov qword [rbx + 0x108], r12
mov byte [rbx + 0x1e4], 1
mov ebp, recv
lea rdi, [rbx + 0x13c]
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140090502
lea rdx, str.Nul_byte_in_header
mov rcx, rbx
mov edi, 8
call fcn.140077850
jmp 0x1400903bf
mov byte [rbx + 0x1d9], r12b
mov eax, 8
jmp 0x1400903c1
mov ecx, dword [rdi]
cmp ecx, 2
jl 0x140090547
movzx eax, byte [rsi]
cmp al, 0x20
je 0x140090514
cmp al, 9
jne 0x140090519
cmp ecx, 2
jg 0x140090547
mov r8, r14
mov edx, 0x3a
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140090547
lea rdx, str.Header_without_colon
mov rcx, rbx
mov edi, 8
call fcn.140077850
jmp 0x1400903bf
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14008dda0
test eax, eax
jne 0x1400903c1
mov r9, r14
mov r8, rsi
mov edx, 1
mov rcx, rbx
call fcn.140077750
mov eax, dword [rbx + 0x14c]
sub eax, 0x64
cmp eax, 0x64
jae 0x140090581
or ebp, 0x20
mov r9, r14
mov r8, rsi
mov edx, ebp
mov rcx, rbx
call fcn.1400656f0
test eax, eax
jne 0x1400903c1
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.14008f650
jmp 0x1400903c1
lea rax, [r8 + 1]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
call fcn.1400678e0
test eax, eax
jne 0x1400903c6
cmp qword [rbx + 0xba8], r12
je 0x1400905e9
mov rax, qword [rbx + 0xba0]
mov byte [rax], r12b
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x98]
mov rdx, qword [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rbx + 0xba8], r12
call fcn.14008f870
mov rdx, qword [rsp + 0x98]
mov ebx, eax
add qword [r15], rdx
mov rcx, qword [rsp + 0x30]
call qword [0x1401630a8]
mov eax, ebx
jmp 0x1400903c6