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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [r8]
lea r15, [rcx + 0xb38]
mov rsi, qword [rcx + 0x148]
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rax
mov r8, rax
mov qword [rsp + 0x60], rsi
mov rcx, rsi
mov edx, 0xa
mov r12, rsi
mov rdi, rax
mov r14, rax
call fcn.140044450
mov rcx, rax
test rax, rax
je 0x14002ff73
nop dword [rax]
nop dword [rax + rax]
lea r8, [rcx + 1]
sub rdi, rcx
lea rax, [rsi - 1]
mov rdx, r12
mov rsi, qword [rsp + 0xc0]
add rax, rdi
mov rcx, r15
mov qword [rsi], rax
mov qword [rbx + 0x148], r8
sub r8, r12
call fcn.14001fc40
test eax, eax
jne 0x14002fa3c
cmp dword [rbx + 0x144], eax
jne 0x14002f8eb
mov rcx, r15
call fcn.14001fca0
mov rcx, r15
mov rdi, rax
call fcn.14001fcb0
mov r8, rax
mov r9, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140030620
cmp eax, 2
je 0x14002ffff
mov rcx, r15
call fcn.14001fcb0
mov r14, rax
movzx ecx, byte [rax]
cmp cl, 0xa
je 0x14002fbc0
cmp cl, 0xd
je 0x14002fbc0
mov edx, dword [rbx + 0x144]
mov edi, 2
lea ecx, [rdx + 1]
mov dword [rbx + 0x144], ecx
test edx, edx
jne 0x14002fb1c
mov rax, qword [rbp + 0x2c8]
mov ecx, dword [rax + 0x84]
test cl, 3
je 0x14002fab2
xor eax, eax
lea rsi, [rbx + 0x158]
mov dword [rsp + 0x44], eax
lea r9, [rsp + 0x44]
mov byte [rsp + 0xb0], al
lea r8, [rsp + 0x48]
lea rax, [rsp + 0xb0]
mov rcx, r14
mov qword [rsp + 0x30], rax
lea rdx, str._HTTP__1d._1d_c_3d_c
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.14002cab0
mov edi, eax
cmp eax, 1
jne 0x14002f9c1
cmp dword [rsp + 0x48], 2
jl 0x14002f9c1
mov r9, rsi
lea r8, [rsp + 0x4c]
lea rdx, str._HTTP__1_23___d
mov rcx, r14
call fcn.14002cab0
cmp eax, 2
jne 0x14002f9c1
mov byte [rbp + 0x5ff], 0
lea edi, [rax + 2]
mov byte [rsp + 0x40], 0x20
jmp 0x14002f9ec
movzx eax, byte [rsp + 0xb0]
sub al, 0x30
cmp al, 9
jbe 0x1400300a3
cmp edi, 4
jl 0x14002fa54
cmp dword [rsi], 0x64
jl 0x1400300a3
cmp byte [rsp + 0x40], 0x20
jne 0x14003008a
mov eax, dword [rsp + 0x48]
lea ecx, [rax + rax*4]
mov eax, dword [rsp + 0x44]
lea r9d, [rax + rcx*2]
mov ecx, r9d
mov dword [rsp + 0x44], r9d
sub ecx, 0xa
je 0x14002fa11
cmp ecx, 1
jne 0x140030054
mov byte [rbp + 0x5ff], r9b
cmp r9b, 0x14
jae 0x14002fa2b
mov rax, qword [rbp + 0x5c0]
mov dword [rax], 0xffffffff
test edi, edi
jne 0x14002fb06
mov byte [rbx + 0x1b9], 0
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test edi, edi
jne 0x14003008a
mov r8, rsi
lea rdx, str._HTTP__3d
mov rcx, r14
call fcn.14002cab0
mov byte [rbp + 0x5ff], 0xa
test eax, eax
jne 0x14002fb06
mov rcx, r15
call fcn.14001fca0
mov rcx, r15
mov rdi, rax
call fcn.14001fcb0
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.140030530
cmp eax, 1
jne 0x14002fa33
mov dword [rsi], 0xc8
mov byte [rbp + 0x5ff], 0xa
jmp 0x14002fb06
bt ecx, 0x12
jae 0x14002fa33
lea rax, [rbx + 0x158]
mov rcx, r14
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x41]
lea r8, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea rdx, str._RTSP__1d._1d_c_3d
call fcn.14002cab0
cmp eax, 4
jne 0x14002fa33
cmp byte [rsp + 0x41], 0x20
jne 0x14002fa33
mov byte [rbp + 0x5ff], ntohs
mov rdx, rbp
mov rcx, rbx
call fcn.140030360
test eax, eax
jne 0x14002fa3c
lea edi, [rax + 6]
mov rcx, rbx
call fcn.140030e20
test eax, eax
jne 0x14002fa3c
mov r8, r14
mov rdx, rbp
mov rcx, rbx
call fcn.14002eae0
test eax, eax
jne 0x14002fa3c
mov esi, edi
mov rcx, r15
or esi, 1
cmp byte [rbx + 0x972], al
cmove esi, edi
mov edi, dword [rbx + 0x158]
call fcn.14001fca0
mov r9, rax
mov r8, r14
mov edx, 1
mov rcx, rbx
call fcn.1400262d0
mov rcx, r15
call fcn.14001fca0
mov edx, esi
mov r9, rax
or edx, 0x10
lea eax, [rdi - 0x64]
cmp eax, 0x64
mov r8, r14
mov rcx, rbx
cmovae edx, esi
call fcn.1400262c0
test eax, eax
jne 0x14002fa3c
mov rcx, r15
call fcn.14001fca0
add qword [rbx + 0x11a0], rax
mov rcx, r15
call fcn.14001fca0
add qword [rbx + 0x108], rax
jmp 0x14002ff2e
mov ecx, dword [rbx + 0x158]
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x14002fc47
sub ecx, 0x64
je 0x14002fc11
cmp ecx, 1
je 0x14002fbf2
lea rsi, [rbx + 0x1b9]
xor eax, eax
mov byte [rsi], 1
mov rdi, rsi
mov dword [rbx + 0x144], eax
jmp 0x14002fca2
cmp dword [rbx + 0x174], 2
je 0x1400300bc
lea rsi, [rbx + 0x1b9]
mov byte [rsi], 0
mov rdi, rsi
jmp 0x14002fca2
xor eax, eax
lea rsi, [rbx + 0x1b9]
mov byte [rsi], 1
mov dword [rbx + 0x144], eax
cmp dword [rbx + 0x170], eax
jle 0x14002fc42
or dword [rbx + 0x15c], 2
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x170], eax
call fcn.14001c1f0
mov rdi, rsi
jmp 0x14002fca2
cmp qword [rbx + 0xe8], 0xffffffffffffffff
lea rsi, [rbx + 0x1b9]
mov rdi, rsi
mov byte [rsi], 0
jne 0x14002fca7
cmp byte [rbx + 0x1be], 0
jne 0x14002fca7
cmp byte [rbp + 0x292], 0
jne 0x14002fca7
cmp byte [rbp + 0x5ff], 0xb
jne 0x14002fca7
mov rax, qword [rbp + 0x2c8]
test dword [rax + 0x84], 0x40000
jne 0x14002fca7
cmp byte [rbx + 0x1058], 5
je 0x14002fca7
mov edx, 2
mov rcx, rbp
call fcn.140026e30
cmp byte [rdi], 0
jne 0x14002fcb7
mov rcx, rbx
call fcn.1400302d0
test eax, eax
jne 0x14002fa3c
movzx eax, byte [rbp + 0x292]
test al, al
je 0x14002fd29
mov eax, dword [rbx + 0x158]
cmp eax, 0x191
jne 0x14002fcd8
cmp dword [rbp + 0x390], 2
je 0x14002fce8
cmp eax, 0x197
jne 0x14002fcfa
cmp dword [rbp + 0x394], 2
jne 0x14002fcfa
mov byte [rbx + 0x1175], 1
movzx eax, byte [rbp + 0x292]
test al, al
je 0x14002fd29
mov eax, dword [rbx + 0x158]
cmp eax, 0x191
jne 0x14002fd12
cmp dword [rbp + 0x488], 1
je 0x14002fd22
jmp 0x14002fd29
cmp eax, 0x197
jne 0x14002fd29
cmp dword [rbp + 0x48c], 1
jne 0x14002fd29
mov byte [rbx + 0x1175], 1
cmp dword [rbp + 0x488], 3
jne 0x14002fd48
cmp dword [rbx + 0x158], 0x191
je 0x14002fd48
mov dword [rbp + 0x488], 4
cmp dword [rbp + 0x48c], 3
jne 0x14002fd67
cmp dword [rbx + 0x158], 0x197
je 0x14002fd67
mov dword [rbp + 0x48c], 4
mov eax, dword [rbx + 0x158]
mov rcx, r15
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [rbx + 0x972], al
setne al
add eax, 2
or edi, eax
call fcn.14001fca0
mov rcx, r15
mov r14, rax
call fcn.14001fcb0
mov r8, rax
mov r9, r14
mov edx, edi
mov rcx, rbx
call fcn.1400262c0
test eax, eax
jne 0x14002fa3c
mov rdx, qword [rbx + 0x108]
movsxd rcx, r14d
add qword [rbx + 0x11a0], rcx
add rdx, rcx
mov qword [rbx + 0x108], rdx
mov rcx, rbx
mov r8d, dword [rbx + 0x158]
call fcn.140030a50
test al, al
jne 0x14003012b
lea eax, [r8 - 0x64]
mov edi, 0
cmp eax, 0x63
cmova rdx, rdi
mov qword [rbx + 0x110], rdx
call fcn.14002df20
test eax, eax
jne 0x14002fa3c
cmp dword [rbx + 0x158], 0x12c
jl 0x14002ff25
cmp byte [rbp + 0x29c], dil
jne 0x14002ff15
cmp byte [rbp + 0x292], dil
jne 0x14002ff15
cmp byte [rbp + 0x29d], dil
jne 0x14002ff1e
movzx ecx, byte [rbx + 0x1058]
sub ecx, 1
je 0x14002fe5f
sub ecx, 1
je 0x14002fe5f
sub ecx, 1
je 0x14002fe5f
cmp ecx, 1
jne 0x14002ff15
xor edx, edx
mov rcx, rbx
call fcn.14001c1f0
cmp byte [rbx + 0x1bb], dil
jne 0x14002ff15
cmp dword [rbx + 0x158], 0x1a1
jne 0x14002feb7
cmp byte [rbx + 0x1177], dil
je 0x14002feb7
mov rcx, qword [rbx + 0x1060]
mov byte [rbx + 0x1178], 1
call qword [fcn.14005a868]
lea rdx, [rbx + 0xe8]
mov rcx, rbx
mov qword [rbx + 0x198], rax
call fcn.1400294d0
jmp 0x14002ff15
cmp byte [rbx + 0x96e], dil
je 0x14002fed7
cmp dword [rbx + 0x170], edi
jle 0x14002ff15
or dword [rbx + 0x15c], 2
mov dword [rbx + 0x170], edi
jmp 0x14002ff15
mov edx, 2
mov rcx, rbp
call fcn.140026e30
lea rdx, [rbx + 0xe8]
mov rcx, rbx
call fcn.1400294d0
test eax, eax
jne 0x14002fa3c
mov byte [rbx + 0x1bb], 1
cmp byte [rbx + 0x1177], dil
je 0x14002ff15
mov dword [rbx + 0x170], 3
cmp byte [rbp + 0x29d], dil
je 0x14002ff25
or dword [rbx + 0x15c], 2
cmp byte [rsi], dil
je 0x1400300df
mov rcx, r15
call fcn.14001fcc0
mov rsi, qword [rbx + 0x148]
cmp byte [rsi], 0
je 0x14002fa3a
mov rdi, qword [rsp + 0xc0]
mov edx, 0xa
mov rcx, rsi
mov r12, rsi
mov rdi, qword [rdi]
mov r8, rdi
mov r14, rdi
call fcn.140044450
mov rcx, rax
test rax, rax
jne 0x14002f880
mov r8, r14
mov rdx, r12
mov rcx, r15
call fcn.14001fc40
test eax, eax
jne 0x14002fa3c
cmp dword [rbx + 0x144], eax
jne 0x14002fa3a
mov rcx, r15
call fcn.14001fca0
mov rcx, r15
mov rdi, rax
call fcn.14001fcb0
mov r8, rax
mov r9, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140030620
cmp eax, 2
jne 0x14002fa3a
mov edx, eax
mov byte [rbx + 0x1b9], 0
mov rcx, rbp
mov dword [rbx + 0x140], eax
call fcn.140026e30
cmp byte [rbx + 0x98e], 0
jne 0x14002fa3a
lea rdx, str.Received_HTTP_0.9_when_not_allowed
mov rcx, rbx
call fcn.1400263b0
mov eax, 1
jmp 0x14002fa3c
mov edx, 2
mov rcx, rbp
call fcn.140026e30
cmp byte [rbx + 0x98e], 0
je 0x14002ffe6
mov byte [rbx + 0x1b9], 0
cmp qword [rsi], 0
je 0x140030031
mov dword [rbx + 0x140], 1
jmp 0x14002fa3a
mov rax, qword [rsp + 0x58]
mov dword [rbx + 0x140], 2
mov qword [rsi], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x148], rax
jmp 0x14002fa3a
mov eax, 0x66666667
imul r9d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov r8d, edx
lea ecx, [rdx + rdx*4]
add ecx, ecx
lea rdx, str.Unsupported_HTTP_version___u._d__in_response
sub r9d, ecx
mov rcx, rbx
call fcn.1400263b0
mov eax, 1
jmp 0x14002fa3c
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rbx
call fcn.1400263b0
mov eax, 1
jmp 0x14002fa3c
lea rdx, str.Unsupported_response_code_in_HTTP_response
mov rcx, rbx
call fcn.1400263b0
mov eax, 1
jmp 0x14002fa3c
xor eax, eax
mov dword [rbx + 0x174], 3
mov dword [rbx + 0x144], eax
mov eax, 1
mov byte [rbx + 0x1b9], 1
jmp 0x14002fa3c
mov rcx, qword [rsp + 0xc8]
cmp byte [rbx + 0x975], dil
je 0x1400300f7
mov byte [rcx], 1
mov al, 1
jmp 0x1400300fa
movzx eax, byte [rcx]
cmp qword [rbx + 0xf0], rdi
jne 0x140030108
mov byte [rcx], 1
jmp 0x14003010c
test al, al
je 0x140030113
and dword [rbx + 0x15c], 0xfffffffe
mov r9, r14
mov r8, r12
mov edx, 1
mov rcx, rbx
call fcn.1400262d0
jmp 0x14002fa3a
lea rdx, str.The_requested_URL_returned_error:__d
call fcn.1400263b0
mov eax, socket
jmp 0x14002fa3c