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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rcx + 0x20]
lea r13, [rcx + 0xca0]
mov qword [rsp + 0x70], rbp
mov r14, r9
mov r12, r8
mov qword [r9], 0
mov rsi, rdx
mov rbx, rcx
mov r15d, 5
mov r8, r12
mov rcx, rsi
lea edx, [r15 + 5]
call fcn.140219eb0
mov rdi, rax
mov rdx, rsi
mov rcx, r13
test rax, rax
je 0x1401839c8
sub rdi, rsi
inc rdi
mov r8, rdi
call fcn.140147870
test eax, eax
jne 0x1401838da
add qword [r14], rdi
add rsi, rdi
sub r12, rdi
mov qword [rsp + 0x78], rsi
cmp dword [rbx + 0x12c], eax
jne 0x14018328b
mov rcx, r13
call fcn.1401478d0
mov rcx, r13
mov rsi, rax
call fcn.1401478e0
mov rdx, rax
mov rax, qword [rbp + 0x360]
test dword [rax + 0x84], 0x40000
je 0x140183270
xor edi, edi
lea rcx, str.RTSP_
cmp rsi, r15
cmova rsi, r15
setae dil
mov r8, rsi
call fcn.140146090
test eax, eax
mov ecx, 2
cmovne ecx, edi
jmp 0x14018327d
mov r8, rsi
mov rcx, rbx
call fcn.140182730
mov ecx, eax
cmp ecx, 2
je 0x1401838f2
mov rsi, qword [rsp + 0x78]
mov rcx, r13
call fcn.1401478e0
mov rcx, r13
mov r15, rax
call fcn.1401478d0
movzx ecx, byte [r15]
mov r14, rax
cmp cl, 0xa
je 0x1401837c0
cmp cl, 0xd
je 0x1401837c0
mov ecx, dword [rbx + 0x12c]
mov edi, 4
lea eax, [rcx + 1]
mov dword [rbx + 0x12c], eax
test ecx, ecx
jne 0x14018368b
xor esi, esi
mov dword [rbx + 0x138], esi
mov rax, qword [rbp + 0x360]
mov ecx, dword [rax + 0x84]
test cl, 3
je 0x140183482
movzx eax, byte [r15]
mov rdi, r15
test al, al
je 0x140183313
nop dword [rax]
cmp al, 0x20
je 0x140183308
cmp al, 9
jne 0x140183313
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140183300
mov r8d, 5
lea rdx, str.HTTP_
mov rcx, rdi
call fcn.1401ef140
test eax, eax
jne 0x1401833b9
movsx edx, byte [rdi + 5]
mov ecx, edx
sub ecx, 0x31
je 0x1401833e9
sub ecx, 1
je 0x14018334d
cmp ecx, 1
jne 0x140183925
movzx eax, byte [rdi + 6]
cmp al, 0x20
je 0x140183359
cmp al, 9
jne 0x1401833b9
lea eax, [rdx - 0x30]
lea ecx, [rax + rax*4]
add ecx, ecx
mov dword [rbx + 0x138], ecx
movsx ecx, byte [rdi + 7]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1401833b9
movsx edx, byte [rdi + 8]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1401833b9
movsx r8d, byte [rdi + 9]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1401833b9
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 + 0x13c], ecx
movzx eax, byte [rdi + 0xa]
cmp al, 0x20
je 0x140183565
sub al, 9
cmp al, 4
jbe 0x140183565
mov r8, r14
mov rdx, r15
mov rcx, rbx
call fcn.140182730
cmp eax, 1
jne 0x140183971
mov dword [rbx + 0x13c], 0xc8
mov dword [rbx + 0x138], 0xa
jmp 0x140183565
cmp byte [rdi + 6], 0x2e
jne 0x140183469
movsx ecx, byte [rdi + 7]
lea eax, [rcx - 0x30]
cmp al, 1
ja 0x140183469
movzx eax, byte [rdi + 8]
cmp al, 0x20
je 0x140183406
cmp al, 9
jne 0x140183469
lea eax, [rcx - 0x26]
mov dword [rbx + 0x138], eax
movsx ecx, byte [rdi + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140183469
movsx edx, byte [rdi + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140183469
movsx r8d, byte [rdi + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x140183469
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 + 0x13c], ecx
movzx eax, byte [rdi + 0xc]
cmp al, 0x20
je 0x140183565
cmp al, 9
je 0x140183565
sub al, 0xa
cmp al, 3
jbe 0x140183565
lea rdx, str.Unsupported_HTTP_1_subversion_in_response
mov rcx, rbx
call fcn.140147bd0
mov eax, 1
jmp 0x1401838da
bt ecx, 0x12
jae 0x140183971
movzx eax, byte [r15]
mov rdi, r15
test al, al
je 0x1401834aa
cmp al, 0x20
je 0x14018349f
cmp al, 9
jne 0x1401834aa
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140183497
mov r8d, 5
lea rdx, str.RTSP_
mov rcx, rdi
call fcn.1401ef140
test eax, eax
jne 0x140183971
movzx eax, byte [rdi + 5]
sub al, 0x30
cmp al, 9
ja 0x140183a3d
cmp byte [rdi + 6], 0x2e
jne 0x140183a3d
movzx eax, byte [rdi + 7]
sub al, 0x30
cmp al, 9
ja 0x140183a3d
movzx eax, byte [rdi + 8]
cmp al, 0x20
je 0x1401834fd
cmp al, 9
jne 0x140183a3d
movsx ecx, byte [rdi + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140183a3d
movsx edx, byte [rdi + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140183a3d
movsx r8d, byte [rdi + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x140183a3d
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 + 0x13c], ecx
movzx eax, byte [rdi + 0xc]
cmp al, 0x20
je 0x14018355b
cmp al, 9
je 0x14018355b
sub al, 0xa
cmp al, 3
ja 0x140183a3d
mov dword [rbx + 0x138], select
mov r9d, dword [rbx + 0x138]
mov ecx, r9d
sub ecx, 0xa
je 0x14018357d
cmp ecx, 1
jne 0x14018393b
mov byte [rbp + 0x778], r9b
mov eax, dword [rbx + 0x13c]
mov dword [rbx + 0x1310], eax
mov eax, dword [rbx + 0x138]
mov dword [rbx + 0x1318], eax
movzx eax, byte [rbx + 0x138]
mov byte [rbp + 0x778], al
movzx eax, byte [rbx + 0x12f1]
test al, al
je 0x1401835c0
mov ecx, dword [rbx + 0x138]
cmp eax, ecx
jle 0x1401835d3
jmp 0x1401835c7
movzx ecx, byte [rbx + 0x138]
mov byte [rbx + 0x12f1], cl
mov ecx, dword [rbx + 0x138]
cmp qword [rbx + 0x10f8], rsi
je 0x1401835f8
cmp byte [rbx + 0x12f2], sil
jne 0x1401835f8
cmp dword [rbx + 0x13c], 0x1a0
jne 0x1401835f8
mov byte [rbx + 0x1da], 1
cmp ecx, 0xa
jne 0x14018361b
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, rbx
call fcn.140147cc0
mov edx, 1
mov rcx, rbp
call fcn.14015e100
jmp 0x14018363f
cmp ecx, 0x14
je 0x140183632
cmp dword [rbx + 0x144], 2
jne 0x14018363f
cmp dword [rbx + 0x13c], 0x65
jne 0x14018363f
mov rax, qword [rbp + 0x740]
mov dword [rax], 2
mov ecx, dword [rbx + 0x13c]
lea eax, [rcx - 0x64]
cmp eax, 0x63
setbe al
mov byte [rbx + 0x1db], al
sub ecx, 0xcc
je 0x140183671
cmp ecx, 0x64
jne 0x140183686
cmp byte [rbx + 0x530], sil
je 0x140183671
mov byte [rbx + 0x13ec], 1
mov qword [rbx + 0xf0], rsi
mov qword [rbx + 0xf8], rsi
mov byte [rbx + 0x1db], 1
mov edi, recv
mov rcx, r13
call fcn.1401478e0
mov rcx, r13
mov rsi, rax
call fcn.1401478d0
mov r8, rax
xor edx, edx
mov rcx, rsi
mov rbp, rax
call fcn.140219eb0
test rax, rax
jne 0x140183996
mov edx, dword [rbx + 0x12c]
cmp edx, 2
jl 0x1401836ed
movzx ecx, byte [rsi]
cmp cl, 0x20
je 0x1401836cf
cmp cl, 9
jne 0x1401836d4
cmp edx, 2
jg 0x1401836ed
mov r8, rbp
mov edx, 0x3a
mov rcx, rsi
call fcn.140219eb0
test rax, rax
je 0x14018397d
mov rbp, qword [rsp + 0x70]
mov r9, r14
mov rdx, rbp
mov r8, r15
mov rcx, rbx
call fcn.140180c40
test eax, eax
jne 0x1401838da
mov r9, r14
lea edx, [rax + 1]
mov r8, r15
mov rcx, rbx
call fcn.140147af0
mov eax, dword [rbx + 0x13c]
sub eax, 0x64
cmp eax, 0x64
jae 0x14018372d
or edi, 0x20
mov r9, r14
mov r8, r15
mov edx, edi
mov rcx, rbx
call fcn.140145150
test eax, eax
jne 0x1401838da
mov edx, dword [rbx + 0x124]
mov r9d, 0x4b000
cmp r14, r9
jae 0x140183790
mov ecx, dword [rbx + 0x1358]
lea eax, [r14 + rdx]
add dword [rbx + 0x120], r14d
add ecx, r14d
mov dword [rbx + 0x1358], ecx
mov dword [rbx + 0x124], eax
cmp eax, r9d
ja 0x14018378b
cmp ecx, 0x5dc000
jbe 0x14018379d
mov r9d, 0x5dc000
mov eax, ecx
mov r8d, eax
jmp 0x140183794
lea r8, [r14 + rdx]
test r8, r8
jne 0x1401839af
mov rcx, r13
call fcn.1401478f0
test r12, r12
je 0x1401838bf
mov rsi, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
jmp 0x1401831cc
mov r9, r14
mov r8, r15
mov edx, 1
mov rcx, rbx
call fcn.140147af0
mov eax, dword [rbx + 0x13c]
mov edx, 4
sub eax, 0x64
mov r9, r14
cmp eax, 0x64
mov r8, r15
mov eax, 0x24
mov rcx, rbx
cmovb edx, eax
call fcn.140145150
test eax, eax
jne 0x1401838da
mov edx, dword [rbx + 0x124]
mov r9d, 0x4b000
cmp r14, r9
jae 0x14018384d
mov ecx, dword [rbx + 0x1358]
lea eax, [r14 + rdx]
add dword [rbx + 0x120], r14d
add ecx, r14d
mov dword [rbx + 0x1358], ecx
mov dword [rbx + 0x124], eax
cmp eax, r9d
ja 0x140183848
cmp ecx, 0x5dc000
jbe 0x14018385a
mov r9d, 0x5dc000
mov eax, ecx
mov r8d, eax
jmp 0x140183851
lea r8, [r14 + rdx]
test r8, r8
jne 0x1401839af
mov rcx, r13
call fcn.1401478f0
mov eax, dword [rbx + 0x13c]
sub eax, 0x64
cmp eax, 0x63
ja 0x140183878
mov eax, dword [rbx + 0x120]
jmp 0x14018387a
xor eax, eax
lea r9, [rsp + 0x20]
mov dword [rbx + 0x128], eax
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call fcn.140182880
test eax, eax
jne 0x1401838da
mov rax, qword [rsp + 0x20]
mov r14, qword [rsp + 0x88]
sub r12, rax
add rsi, rax
add qword [r14], rax
cmp byte [rbx + 0x1d1], 0
je 0x1401838bf
test r12, r12
jne 0x1401831cc
xor r15b, r15b
cmp byte [rbx + 0x1d1], 0
jne 0x1401838d8
test r15b, r15b
jne 0x1401838d8
mov rcx, r13
call fcn.140147880
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 2
mov rcx, rbp
call fcn.14015e100
cmp byte [rbp + 0x778], 0xa
jae 0x140183a2e
cmp byte [rbx + 0xac9], 0
je 0x140183a54
mov byte [rbx + 0x1d1], 0
mov r15b, 1
jmp 0x1401838c2
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rbx
call fcn.140147bd0
mov eax, 1
jmp 0x1401838da
mov eax, 0x66666667
mov rcx, rbx
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov r8d, edx
lea eax, [rdx + rdx*4]
add eax, eax
lea rdx, str.Unsupported_HTTP_version___u._d__in_response
sub r9d, eax
call fcn.140147bd0
mov eax, 1
jmp 0x1401838da
mov byte [rbx + 0x1d1], sil
jmp 0x1401838bf
lea rdx, str.Header_without_colon
mov rcx, rbx
call fcn.140147bd0
mov eax, 8
jmp 0x1401838da
lea rdx, str.Nul_byte_in_header
mov rcx, rbx
call fcn.140147bd0
mov eax, 8
jmp 0x1401838da
lea rdx, str.Too_large_response_headers:__zu____u
mov rcx, rbx
call fcn.140147bd0
mov eax, gethostname
jmp 0x1401838da
mov r8, r12
call fcn.140147870
test eax, eax
jne 0x1401838da
add qword [r14], r12
cmp dword [rbx + 0x12c], eax
jne 0x1401838bf
mov rcx, r13
call fcn.1401478d0
mov rcx, r13
mov rdi, rax
call fcn.1401478e0
mov r8, rax
mov r9, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140182810
cmp eax, 2
jne 0x1401838bf
mov edx, eax
mov byte [rbx + 0x1d1], 0
mov rcx, rbp
call fcn.14015e100
cmp byte [rbp + 0x778], 0xa
jb 0x140183a47
lea rdx, str.Invalid_status_line
mov rcx, rbx
call fcn.140147bd0
mov eax, 8
jmp 0x1401838da
cmp byte [rbx + 0xac9], 0
jne 0x140183920
lea rdx, str.Received_HTTP_0.9_when_not_allowed
mov rcx, rbx
call fcn.140147bd0
mov eax, 1
jmp 0x1401838da