Function at 0x1400313f0
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.1400461b0
mov rcx, rax
test rax, rax
je 0x140031b53
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.140021820
test eax, eax
jne 0x14003161c
cmp dword [rbx + 0x144], eax
jne 0x1400314cb
mov rcx, r15
call fcn.140021880
mov rcx, r15
mov rdi, rax
call fcn.140021890
mov r8, rax
mov r9, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140032200
cmp eax, 2
je 0x140031bdf
mov rcx, r15
call fcn.140021890
mov r14, rax
movzx ecx, byte [rax]
cmp cl, 0xa
je 0x1400317a0
cmp cl, 0xd
je 0x1400317a0
mov edx, dword [rbx + 0x144]
mov edi, 2
lea ecx, [rdx + 1]
mov dword [rbx + 0x144], ecx
test edx, edx
jne 0x1400316fc
mov rax, qword [rbp + 0x2c8]
mov ecx, dword [rax + 0x84]
test cl, 3
je 0x140031692
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.14002e690
mov edi, eax
cmp eax, 1
jne 0x1400315a1
cmp dword [rsp + 0x48], 2
jl 0x1400315a1
mov r9, rsi
lea r8, [rsp + 0x4c]
lea rdx, str._HTTP__1_23___d
mov rcx, r14
call fcn.14002e690
cmp eax, 2
jne 0x1400315a1
mov byte [rbp + 0x5ff], 0
lea edi, [rax + 2]
mov byte [rsp + 0x40], 0x20
jmp 0x1400315cc
movzx eax, byte [rsp + 0xb0]
sub al, 0x30
cmp al, 9
jbe 0x140031c83
cmp edi, 4
jl 0x140031634
cmp dword [rsi], 0x64
jl 0x140031c83
cmp byte [rsp + 0x40], 0x20
jne 0x140031c6a
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 0x1400315f1
cmp ecx, 1
jne 0x140031c34
mov byte [rbp + 0x5ff], r9b
cmp r9b, 0x14
jae 0x14003160b
mov rax, qword [rbp + 0x5c0]
mov dword [rax], 0xffffffff
test edi, edi
jne 0x1400316e6
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 0x140031c6a
mov r8, rsi
lea rdx, str._HTTP__3d
mov rcx, r14
call fcn.14002e690
mov byte [rbp + 0x5ff], 0xa
test eax, eax
jne 0x1400316e6
mov rcx, r15
call fcn.140021880
mov rcx, r15
mov rdi, rax
call fcn.140021890
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.140032110
cmp eax, 1
jne 0x140031613
mov dword [rsi], 0xc8
mov byte [rbp + 0x5ff], 0xa
jmp 0x1400316e6
bt ecx, 0x12
jae 0x140031613
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.14002e690
cmp eax, 4
jne 0x140031613
cmp byte [rsp + 0x41], 0x20
jne 0x140031613
mov byte [rbp + 0x5ff], ntohs
mov rdx, rbp
mov rcx, rbx
call fcn.140031f40
test eax, eax
jne 0x14003161c
lea edi, [rax + 6]
mov rcx, rbx
call fcn.140032a00
test eax, eax
jne 0x14003161c
mov r8, r14
mov rdx, rbp
mov rcx, rbx
call fcn.1400306c0
test eax, eax
jne 0x14003161c
mov esi, edi
mov rcx, r15
or esi, 1
cmp byte [rbx + 0x972], al
cmove esi, edi
mov edi, dword [rbx + 0x158]
call fcn.140021880
mov r9, rax
mov r8, r14
mov edx, 1
mov rcx, rbx
call fcn.140027eb0
mov rcx, r15
call fcn.140021880
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.140027ea0
test eax, eax
jne 0x14003161c
mov rcx, r15
call fcn.140021880
add qword [rbx + 0x11a0], rax
mov rcx, r15
call fcn.140021880
add qword [rbx + 0x108], rax
jmp 0x140031b0e
mov ecx, dword [rbx + 0x158]
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x140031827
sub ecx, 0x64
je 0x1400317f1
cmp ecx, 1
je 0x1400317d2
lea rsi, [rbx + 0x1b9]
xor eax, eax
mov byte [rsi], 1
mov rdi, rsi
mov dword [rbx + 0x144], eax
jmp 0x140031882
cmp dword [rbx + 0x174], 2
je 0x140031c9c
lea rsi, [rbx + 0x1b9]
mov byte [rsi], 0
mov rdi, rsi
jmp 0x140031882
xor eax, eax
lea rsi, [rbx + 0x1b9]
mov byte [rsi], 1
mov dword [rbx + 0x144], eax
cmp dword [rbx + 0x170], eax
jle 0x140031822
or dword [rbx + 0x15c], 2
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x170], eax
call fcn.14001ddd0
mov rdi, rsi
jmp 0x140031882
cmp qword [rbx + 0xe8], 0xffffffffffffffff
lea rsi, [rbx + 0x1b9]
mov rdi, rsi
mov byte [rsi], 0
jne 0x140031887
cmp byte [rbx + 0x1be], 0
jne 0x140031887
cmp byte [rbp + 0x292], 0
jne 0x140031887
cmp byte [rbp + 0x5ff], 0xb
jne 0x140031887
mov rax, qword [rbp + 0x2c8]
test dword [rax + 0x84], 0x40000
jne 0x140031887
cmp byte [rbx + 0x1058], 5
je 0x140031887
mov edx, 2
mov rcx, rbp
call fcn.140028a10
cmp byte [rdi], 0
jne 0x140031897
mov rcx, rbx
call fcn.140031eb0
test eax, eax
jne 0x14003161c
movzx eax, byte [rbp + 0x292]
test al, al
je 0x140031909
mov eax, dword [rbx + 0x158]
cmp eax, 0x191
jne 0x1400318b8
cmp dword [rbp + 0x390], 2
je 0x1400318c8
cmp eax, 0x197
jne 0x1400318da
cmp dword [rbp + 0x394], 2
jne 0x1400318da
mov byte [rbx + 0x1175], 1
movzx eax, byte [rbp + 0x292]
test al, al
je 0x140031909
mov eax, dword [rbx + 0x158]
cmp eax, 0x191
jne 0x1400318f2
cmp dword [rbp + 0x488], 1
je 0x140031902
jmp 0x140031909
cmp eax, 0x197
jne 0x140031909
cmp dword [rbp + 0x48c], 1
jne 0x140031909
mov byte [rbx + 0x1175], 1
cmp dword [rbp + 0x488], 3
jne 0x140031928
cmp dword [rbx + 0x158], 0x191
je 0x140031928
mov dword [rbp + 0x488], 4
cmp dword [rbp + 0x48c], 3
jne 0x140031947
cmp dword [rbx + 0x158], 0x197
je 0x140031947
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.140021880
mov rcx, r15
mov r14, rax
call fcn.140021890
mov r8, rax
mov r9, r14
mov edx, edi
mov rcx, rbx
call fcn.140027ea0
test eax, eax
jne 0x14003161c
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.140032630
test al, al
jne 0x140031d0b
lea eax, [r8 - 0x64]
mov edi, 0
cmp eax, 0x63
cmova rdx, rdi
mov qword [rbx + 0x110], rdx
call fcn.14002fb00
test eax, eax
jne 0x14003161c
cmp dword [rbx + 0x158], 0x12c
jl 0x140031b05
cmp byte [rbp + 0x29c], dil
jne 0x140031af5
cmp byte [rbp + 0x292], dil
jne 0x140031af5
cmp byte [rbp + 0x29d], dil
jne 0x140031afe
movzx ecx, byte [rbx + 0x1058]
sub ecx, 1
je 0x140031a3f
sub ecx, 1
je 0x140031a3f
sub ecx, 1
je 0x140031a3f
cmp ecx, 1
jne 0x140031af5
xor edx, edx
mov rcx, rbx
call fcn.14001ddd0
cmp byte [rbx + 0x1bb], dil
jne 0x140031af5
cmp dword [rbx + 0x158], 0x1a1
jne 0x140031a97
cmp byte [rbx + 0x1177], dil
je 0x140031a97
mov rcx, qword [rbx + 0x1060]
mov byte [rbx + 0x1178], 1
call qword [fcn.14005c358]
lea rdx, [rbx + 0xe8]
mov rcx, rbx
mov qword [rbx + 0x198], rax
call fcn.14002b0b0
jmp 0x140031af5
cmp byte [rbx + 0x96e], dil
je 0x140031ab7
cmp dword [rbx + 0x170], edi
jle 0x140031af5
or dword [rbx + 0x15c], 2
mov dword [rbx + 0x170], edi
jmp 0x140031af5
mov edx, 2
mov rcx, rbp
call fcn.140028a10
lea rdx, [rbx + 0xe8]
mov rcx, rbx
call fcn.14002b0b0
test eax, eax
jne 0x14003161c
mov byte [rbx + 0x1bb], 1
cmp byte [rbx + 0x1177], dil
je 0x140031af5
mov dword [rbx + 0x170], 3
cmp byte [rbp + 0x29d], dil
je 0x140031b05
or dword [rbx + 0x15c], 2
cmp byte [rsi], dil
je 0x140031cbf
mov rcx, r15
call fcn.1400218a0
mov rsi, qword [rbx + 0x148]
cmp byte [rsi], 0
je 0x14003161a
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.1400461b0
mov rcx, rax
test rax, rax
jne 0x140031460
mov r8, r14
mov rdx, r12
mov rcx, r15
call fcn.140021820
test eax, eax
jne 0x14003161c
cmp dword [rbx + 0x144], eax
jne 0x14003161a
mov rcx, r15
call fcn.140021880
mov rcx, r15
mov rdi, rax
call fcn.140021890
mov r8, rax
mov r9, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140032200
cmp eax, 2
jne 0x14003161a
mov edx, eax
mov byte [rbx + 0x1b9], 0
mov rcx, rbp
mov dword [rbx + 0x140], eax
call fcn.140028a10
cmp byte [rbx + 0x98e], 0
jne 0x14003161a
lea rdx, str.Received_HTTP_0.9_when_not_allowed
mov rcx, rbx
call fcn.140027f90
mov eax, 1
jmp 0x14003161c
mov edx, 2
mov rcx, rbp
call fcn.140028a10
cmp byte [rbx + 0x98e], 0
je 0x140031bc6
mov byte [rbx + 0x1b9], 0
cmp qword [rsi], 0
je 0x140031c11
mov dword [rbx + 0x140], 1
jmp 0x14003161a
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 0x14003161a
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.140027f90
mov eax, 1
jmp 0x14003161c
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rbx
call fcn.140027f90
mov eax, 1
jmp 0x14003161c
lea rdx, str.Unsupported_response_code_in_HTTP_response
mov rcx, rbx
call fcn.140027f90
mov eax, 1
jmp 0x14003161c
xor eax, eax
mov dword [rbx + 0x174], 3
mov dword [rbx + 0x144], eax
mov eax, 1
mov byte [rbx + 0x1b9], 1
jmp 0x14003161c
mov rcx, qword [rsp + 0xc8]
cmp byte [rbx + 0x975], dil
je 0x140031cd7
mov byte [rcx], 1
mov al, 1
jmp 0x140031cda
movzx eax, byte [rcx]
cmp qword [rbx + 0xf0], rdi
jne 0x140031ce8
mov byte [rcx], 1
jmp 0x140031cec
test al, al
je 0x140031cf3
and dword [rbx + 0x15c], 0xfffffffe
mov r9, r14
mov r8, r12
mov edx, 1
mov rcx, rbx
call fcn.140027eb0
jmp 0x14003161a
lea rdx, str.The_requested_URL_returned_error:__d
call fcn.140027f90
mov eax, socket
jmp 0x14003161c