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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, qword [rsp + 0x98]
xor r12d, r12d
mov r15, r9
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
mov qword [r14], r12
movzx eax, byte [rdx]
cmp al, 0xa
je 0x1400b3ef6
cmp al, 0xd
je 0x1400b3ef6
lea r14, [rcx + 0x13c]
mov ebx, 4
mov ecx, dword [r14]
mov r15d, 1
lea eax, [rcx + 1]
mov dword [r14], eax
test ecx, ecx
jne 0x1400b3e11
mov dword [rdi + 0x148], r12d
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x3e0]
mov eax, dword [rcx + 0x8c]
test al, 3
je 0x1400b3bae
movzx eax, byte [rdx]
mov rbx, rdx
test al, al
je 0x1400b3a2c
cmp al, 0x20
je 0x1400b3a21
cmp byte [rbx], 9
jne 0x1400b3a2c
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x1400b3a18
mov r8d, 5
lea rdx, str.HTTP_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400b3ae6
movsx edx, byte [rbx + 5]
mov ecx, edx
sub ecx, 0x31
je 0x1400b3b16
sub ecx, r15d
je 0x1400b3a7a
cmp ecx, r15d
je 0x1400b3a7a
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rdi
call fcn.1400a01d0
mov eax, r15d
jmp 0x1400b3f7f
movzx eax, byte [rbx + 6]
cmp al, 0x20
je 0x1400b3a86
cmp al, 9
jne 0x1400b3ae6
lea eax, [rdx - 0x30]
lea ecx, [rax + rax*4]
add ecx, ecx
mov dword [rdi + 0x148], ecx
movsx ecx, byte [rbx + 7]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400b3ae6
movsx edx, byte [rbx + 8]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400b3ae6
movsx r8d, byte [rbx + 9]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400b3ae6
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 [rdi + 0x14c], ecx
movzx eax, byte [rbx + 0xa]
cmp al, 0x20
je 0x1400b3c92
sub al, 9
cmp al, 4
jbe 0x1400b3c92
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1400b2b40
cmp eax, r15d
jne 0x1400b3e3c
mov dword [rdi + 0x14c], reloc.WLDAP32.dll_Ordinal_200
mov dword [rdi + 0x148], 0xa
jmp 0x1400b3c92
cmp byte [rbx + 6], 0x2e
jne 0x1400b3b97
movsx ecx, byte [rbx + 7]
lea eax, [rcx - 0x30]
cmp al, r15b
ja 0x1400b3b97
movzx eax, byte [rbx + 8]
cmp al, 0x20
je 0x1400b3b34
cmp al, 9
jne 0x1400b3b97
lea eax, [rcx - 0x26]
mov dword [rdi + 0x148], eax
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400b3b97
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400b3b97
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400b3b97
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 [rdi + 0x14c], ecx
movzx eax, byte [rbx + 0xc]
cmp al, 0x20
je 0x1400b3c92
cmp al, 9
je 0x1400b3c92
sub al, 0xa
cmp al, 3
jbe 0x1400b3c92
lea rdx, str.Unsupported_HTTP_1_subversion_in_response
mov rcx, rdi
call fcn.1400a01d0
mov eax, r15d
jmp 0x1400b3f7f
bt eax, 0x12
jae 0x1400b3e3c
movzx eax, byte [rdx]
mov rbx, rsi
test al, al
je 0x1400b3bd6
cmp al, 0x20
je 0x1400b3bcb
cmp byte [rbx], 9
jne 0x1400b3bd6
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x1400b3bc2
mov r8d, 5
lea rdx, str.RTSP_
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400b3e3c
movzx eax, byte [rbx + 5]
sub al, 0x30
cmp al, 9
ja 0x1400b3e43
cmp byte [rbx + 6], 0x2e
jne 0x1400b3e43
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 9
ja 0x1400b3e43
movzx eax, byte [rbx + 8]
cmp al, 0x20
je 0x1400b3c2a
cmp al, 9
jne 0x1400b3e43
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400b3e43
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400b3e43
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400b3e43
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 [rdi + 0x14c], ecx
movzx eax, byte [rbx + 0xc]
cmp al, 0x20
je 0x1400b3c88
cmp al, 9
je 0x1400b3c88
sub al, 0xa
cmp al, 3
ja 0x1400b3e43
mov dword [rdi + 0x148], send
mov r9d, dword [rdi + 0x148]
mov ecx, r9d
mov rbx, qword [rdi + 0x18]
sub ecx, 0xa
je 0x1400b3ce2
cmp ecx, r15d
je 0x1400b3ce2
mov eax, 0x66666667
mov rcx, rdi
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
call fcn.1400a01d0
mov eax, r15d
jmp 0x1400b3f7f
movzx eax, byte [rbx + 0x7e0]
test al, al
je 0x1400b3d31
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 0x1400b3d31
lea rdx, str.Version_mismatch__from_HTTP__u_to_HTTP__u_
mov rcx, rdi
call fcn.1400a01d0
mov eax, r15d
jmp 0x1400b3f7f
mov eax, dword [rdi + 0x14c]
mov dword [rdi + 0x1338], eax
mov eax, dword [rdi + 0x148]
mov dword [rdi + 0x1340], eax
movzx eax, byte [rdi + 0x148]
mov byte [rbx + 0x7e0], al
movzx eax, byte [rdi + 0x1319]
test al, al
je 0x1400b3d69
cmp eax, dword [rdi + 0x148]
jle 0x1400b3d76
movzx eax, byte [rdi + 0x148]
mov byte [rdi + 0x1319], al
cmp qword [rdi + 0x1120], r12
je 0x1400b3d9b
cmp byte [rdi + 0x131a], r12b
jne 0x1400b3d9b
cmp dword [rdi + 0x14c], 0x1a0
jne 0x1400b3d9b
mov byte [rdi + 0x1e3], r15b
cmp dword [rdi + 0x148], 0xa
jne 0x1400b3dbe
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, rdi
call fcn.1400a02c0
mov edx, r15d
mov rcx, rbx
call fcn.1400a30b0
mov ecx, dword [rdi + 0x14c]
lea eax, [rcx - 0x64]
cmp eax, 0x63
setbe al
mov byte [rdi + 0x1e4], al
sub ecx, 0xcc
je 0x1400b3df0
cmp ecx, 0x64
jne 0x1400b3e05
cmp byte [rdi + 0x538], r12b
je 0x1400b3df0
mov byte [rdi + 0x1414], r15b
mov qword [rdi + 0x100], r12
mov qword [rdi + 0x108], r12
mov byte [rdi + 0x1e4], r15b
mov ebx, ntohs
lea r14, [rdi + 0x13c]
mov r8, rbp
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400b3e4d
lea rdx, str.Nul_byte_in_header
mov rcx, rdi
mov ebx, 8
call fcn.1400a01d0
jmp 0x1400b3f7d
mov byte [rdi + 0x1d9], r12b
mov eax, 8
jmp 0x1400b3f7f
mov ecx, dword [r14]
cmp ecx, 2
jl 0x1400b3e93
movzx eax, byte [rsi]
cmp al, 0x20
je 0x1400b3e60
cmp al, 9
jne 0x1400b3e65
cmp ecx, 2
jg 0x1400b3e93
mov r8, rbp
mov edx, Ordinal_60
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1400b3e93
lea rdx, str.Header_without_colon
mov rcx, rdi
mov ebx, 8
call fcn.1400a01d0
jmp 0x1400b3f7d
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1400b0f50
test eax, eax
jne 0x1400b3f7f
mov r9, rbp
mov r8, rsi
mov edx, r15d
mov rcx, rdi
call fcn.1400a00e0
mov eax, dword [rdi + 0x14c]
sub eax, 0x64
cmp eax, 0x64
jae 0x1400b3ecb
or ebx, 0x20
mov r9, rbp
mov r8, rsi
mov edx, ebx
mov rcx, rdi
call fcn.1400a16e0
test eax, eax
jne 0x1400b3f7f
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call fcn.1400b0450
jmp 0x1400b3f7f
lea rdx, [r8 + 1]
lea rcx, [rsp + 0x30]
call fcn.140090f00
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140090ec0
test eax, eax
jne 0x1400b3f7f
lea rcx, [rdi + 0xc58]
call fcn.140090f40
lea rcx, [rsp + 0x30]
call fcn.140090f20
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140090f30
mov rcx, qword [rsp + 0x90]
mov rdx, rax
lea rax, [rsp + 0x98]
mov r9, r15
mov qword [rsp + 0x28], rax
mov r8, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.1400b2c80
mov rcx, qword [rsp + 0x98]
mov ebx, eax
add qword [r14], rcx
lea rcx, [rsp + 0x30]
call fcn.140090ed0
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret