Function at 0x140070230
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]
mov rbx, rcx
mov rcx, qword [rcx + 0x138]
mov r15, r8
mov r13, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov rdi, rcx
lea r12, [rbx + 0xc00]
mov r14, rcx
mov rsi, rax
mov rbp, rax
mov r8, rax
mov edx, 0xa
mov qword [rsp + 0xb0], r14
call fcn.140123f10
mov rcx, rax
mov rdx, r14
test rax, rax
je 0x140070f54
lea r8, [rcx + 1]
sub rdi, rax
lea rax, [rsi - 1]
mov rcx, r12
add rax, rdi
xor ebp, ebp
mov qword [r15], rax
mov qword [rbx + 0x138], r8
sub r8, r14
call fcn.14004f830
test eax, eax
jne 0x140070474
cmp dword [rbx + 0x134], eax
jne 0x140070301
mov rcx, r12
call fcn.14000e3a0
mov rcx, r12
mov rdi, rax
call fcn.140005aa0
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call fcn.140071220
cmp eax, 2
je 0x140070d8b
mov rcx, r12
call fcn.140005aa0
mov r15, rax
movzx ecx, byte [rax]
cmp cl, 0xa
je 0x14007070d
cmp cl, 0xd
je 0x14007070d
mov edx, dword [rbx + 0x134]
mov esi, 2
lea ecx, [rdx + 1]
mov dword [rbx + 0x134], ecx
test edx, edx
jne 0x14007061a
mov rax, qword [r13 + 0x2e8]
mov ecx, dword [rax + 0x84]
test cl, 3
je 0x1400704ea
lea rax, [rsp + 0xb0]
mov byte [rsp + 0xb0], dl
mov qword [rsp + 0x30], rax
lea r14, [rbx + 0x148]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x44], ebp
lea rdx, str._HTTP__1d._1d_c_3d_c
mov rcx, r15
call fcn.1400323e0
mov edi, eax
cmp eax, 1
jne 0x1400703d4
cmp dword [rsp + 0x48], esi
jl 0x1400703d4
mov r9, r14
lea r8, [rsp + 0x4c]
lea rdx, str._HTTP__1_23___d
mov rcx, r15
call fcn.1400323e0
cmp eax, esi
jne 0x1400703d4
mov byte [r13 + 0x617], 0
lea edi, [rsi + 2]
mov byte [rsp + 0x40], 0x20
jmp 0x140070404
movzx eax, byte [rsp + 0xb0]
sub al, 0x30
cmp al, 9
jbe 0x140070e48
cmp edi, 4
jl 0x14007048c
cmp dword [r14], 0x64
jl 0x140070e48
cmp byte [rsp + 0x40], 0x20
jne 0x140070e2f
mov eax, dword [rsp + 0x48]
lea ecx, [rax + rax*4]
mov eax, dword [rsp + 0x44]
lea r8d, [rax + rcx*2]
mov ecx, r8d
mov dword [rsp + 0x44], r8d
sub ecx, 0xa
je 0x140070429
cmp ecx, 1
jne 0x140070de4
lea rsi, [r13 + 0x617]
mov byte [rsi], r8b
cmp dword [rbx + 0x164], 3
jne 0x140070451
cmp r8b, 0x14
je 0x140070451
lea rdx, str.Lying_server__not_serving_HTTP_2
mov rcx, rbx
call fcn.140062200
cmp byte [rsi], 0x14
jae 0x140070463
mov rax, qword [r13 + 0x5d8]
mov dword [rax], 0xffffffff
test edi, edi
jne 0x140070541
mov byte [rbx + 0x1b2], 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 0x140070e2f
mov r8, r14
lea rdx, str._HTTP__3d
mov rcx, r15
call fcn.1400323e0
lea rsi, [r13 + 0x617]
mov byte [rsi], 0xa
test eax, eax
jne 0x140070541
mov rcx, r12
call fcn.14000e3a0
mov rcx, r12
mov rdi, rax
call fcn.140005aa0
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.140071220
cmp eax, 1
jne 0x14007046b
mov dword [r14], 0xc8
mov byte [rsi], 0xa
jmp 0x140070541
bt ecx, 0x12
jae 0x14007046b
lea rax, [rsp + 0x41]
mov rcx, r15
lea r14, [rbx + 0x148]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea rdx, str._RTSP__1d._1d_c_3d
call fcn.1400323e0
cmp eax, 4
jne 0x14007046b
cmp byte [rsp + 0x41], 0x20
jne 0x14007046b
lea rsi, [r13 + 0x617]
mov byte [rsi], listen
mov edx, dword [r14]
movzx ecx, byte [rbx + 0x10d9]
mov dword [rbx + 0x1280], edx
movzx eax, byte [rsi]
mov dword [rbx + 0x1288], eax
movzx eax, byte [rsi]
test cl, cl
je 0x140070565
cmp cl, al
jbe 0x14007056b
mov byte [rbx + 0x10d9], al
cmp qword [rbx + 0x10e8], 0
je 0x14007058d
cmp byte [rbx + 0x1150], 0
jne 0x14007058d
cmp edx, 0x1a0
jne 0x14007058d
mov byte [rbx + 0x1b5], 1
movzx eax, byte [rsi]
cmp al, 0xa
jne 0x1400705b2
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, rbx
call fcn.140062200
mov edx, 1
mov rcx, r13
call fcn.140063170
jmp 0x1400705d1
cmp al, 0x14
je 0x1400705c4
cmp dword [rbx + 0x164], 2
jne 0x1400705d1
cmp edx, 0x65
jne 0x1400705d1
mov rax, qword [r13 + 0x5d8]
mov dword [rax], 2
mov ecx, dword [r14]
lea eax, [rcx - 0x64]
cmp eax, 0x63
setbe al
mov byte [rbx + 0x1b6], al
sub ecx, 0xcc
je 0x140070600
cmp ecx, 0x64
jne 0x140070615
cmp byte [rbx + 0x508], 0
je 0x140070600
mov byte [rbx + 0x1364], 1
mov qword [rbx + 0xe8], rbp
mov qword [rbx + 0xf0], rbp
mov byte [rbx + 0x1b6], 1
mov esi, 6
mov rcx, r12
call fcn.140005aa0
mov rcx, r12
mov rdi, rax
call fcn.14000e3a0
mov r8, rax
xor edx, edx
mov rcx, rdi
mov rbp, rax
call fcn.140123f10
test rax, rax
jne 0x140070e7c
mov edx, dword [rbx + 0x134]
cmp edx, 2
jl 0x14007067c
movzx ecx, byte [rdi]
cmp cl, 0x20
je 0x14007065e
cmp cl, 9
jne 0x140070663
cmp edx, 2
jg 0x14007067c
mov r8, rbp
mov edx, 0x3a
mov rcx, rdi
call fcn.140123f10
test rax, rax
je 0x140070e61
mov r8, r15
mov rdx, r13
mov rcx, rbx
call fcn.14006f1e0
test eax, eax
jne 0x140070474
cmp byte [rbx + 0xa1b], al
je 0x14007069d
or esi, 1
mov edi, dword [rbx + 0x148]
mov rcx, r12
call fcn.14000e3a0
mov r9, rax
mov r8, r15
mov edx, 1
mov rcx, rbx
call fcn.140062030
mov rcx, r12
call fcn.14000e3a0
mov edx, esi
mov r9, rax
or edx, 0x10
lea eax, [rdi - 0x64]
cmp eax, 0x64
mov r8, r15
mov rcx, rbx
cmovae edx, esi
call fcn.1400622a0
test eax, eax
jne 0x140070474
mov rcx, r12
call fcn.14000e3a0
add qword [rbx + 0x1298], rax
mov rcx, r12
call fcn.14000e3a0
add qword [rbx + 0x108], rax
jmp 0x140070d57
mov ecx, dword [rbx + 0x148]
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x1400707a4
sub ecx, 0x64
je 0x14007076a
cmp ecx, 1
je 0x140070746
lea r15, [rbx + 0x1b2]
mov dword [rbx + 0x134], ebp
mov byte [r15], 1
lea rsi, [rbx + 0xe8]
jmp 0x140070813
cmp dword [rbx + 0x164], 2
je 0x140070e97
lea r15, [rbx + 0x1b2]
mov byte [r15], 0
lea rsi, [rbx + 0xe8]
jmp 0x140070813
cmp dword [rbx + 0x160], 0
lea r15, [rbx + 0x1b2]
mov byte [r15], 1
mov dword [rbx + 0x134], ebp
jle 0x14007079b
or dword [rbx + 0x14c], 2
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x160], ebp
call fcn.140050120
lea rsi, [rbx + 0xe8]
jmp 0x140070813
lea rdi, [rbx + 0x1b2]
lea rsi, [rbx + 0xe8]
mov byte [rdi], 0
cmp qword [rsi], 0xffffffffffffffff
mov r15, rdi
jne 0x140070813
cmp byte [rbx + 0x1b7], 0
jne 0x140070813
cmp byte [r13 + 0x2ce], 0
jne 0x140070813
cmp byte [r13 + 0x617], 0xb
jne 0x140070813
mov rax, qword [r13 + 0x2e8]
test dword [rax + 0x84], 0x40000
jne 0x140070813
cmp byte [rbx + 0x1150], 5
je 0x140070813
lea rdx, str.no_chunk__no_close__no_size._Assume_close_to_signal_end
mov rcx, rbx
call fcn.140062200
mov edx, 2
mov rcx, r13
call fcn.140063170
cmp byte [r15], 0
jne 0x140070869
cmp byte [rbx + 0x1b8], 0
jne 0x14007085a
cmp byte [rsi + 0xcf], 0
jne 0x14007085a
mov rdx, qword [rsi]
cmp rdx, 0xffffffffffffffff
je 0x140070869
mov rax, qword [rbx + 0x6c8]
test rax, rax
je 0x140070849
cmp rdx, rax
jg 0x140070ec7
mov rcx, rbx
call fcn.140071dc0
mov rax, qword [rsi]
mov qword [rsi + 8], rax
jmp 0x140070869
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi], 0xffffffffffffffff
cmp byte [r13 + 0x2ce], 0
je 0x140070901
mov eax, dword [rbx + 0x148]
cmp eax, 0x191
jne 0x140070890
cmp dword [r13 + 0x3b0], 2
je 0x1400708a1
jmp 0x1400708b7
cmp eax, 0x197
jne 0x1400708b7
cmp dword [r13 + 0x3b4], 2
jne 0x1400708b7
lea rdx, str.Connection_closure_while_negotiating_auth__HTTP_1.0__
mov rcx, rbx
call fcn.140062200
mov byte [rbx + 0x126d], 1
cmp byte [r13 + 0x2ce], 0
je 0x140070901
mov eax, dword [rbx + 0x148]
cmp eax, 0x191
jne 0x1400708da
cmp dword [r13 + 0x4a8], 1
je 0x1400708eb
jmp 0x140070901
cmp eax, 0x197
jne 0x140070901
cmp dword [r13 + 0x4ac], 1
jne 0x140070901
lea rdx, str.Connection_closure_while_negotiating_auth__HTTP_1.0__
mov rcx, rbx
call fcn.140062200
mov byte [rbx + 0x126d], 1
cmp dword [r13 + 0x4a8], 3
jne 0x140070922
cmp dword [rbx + 0x148], 0x191
je 0x140070922
mov dword [r13 + 0x4a8], 4
cmp dword [r13 + 0x4ac], 3
jne 0x140070943
cmp dword [rbx + 0x148], 0x197
je 0x140070943
mov dword [r13 + 0x4ac], 4
mov eax, dword [rbx + 0x148]
mov rcx, r12
sub eax, 0x64
cmp eax, 0x64
mov eax, ebp
sbb edi, edi
and edi, 0x10
cmp byte [rbx + 0xa1b], 0
setne al
add eax, 2
or edi, eax
call fcn.14000e3a0
lea rcx, [rbx + 0xc00]
mov r12, rax
call fcn.140005aa0
mov r8, rax
mov r9, r12
mov edx, edi
mov rcx, rbx
call fcn.1400622a0
test eax, eax
jne 0x140070474
mov rdx, qword [rbx + 0x108]
movsxd rcx, r12d
add qword [rbx + 0x1298], rcx
add rdx, rcx
mov qword [rbx + 0x108], rdx
mov rcx, rbx
mov r8d, dword [rbx + 0x148]
call fcn.1400715d0
test al, al
jne 0x140070f3e
mov rsi, qword [rbx + 0x18]
lea eax, [r8 - 0x64]
cmp eax, 0x63
mov eax, 0xffffffff
cmova rdx, rbp
xor bpl, bpl
mov qword [rbx + 0x110], rdx
xor r14b, r14b
mov rcx, qword [rbx + 0x8e0]
xor edi, edi
test rcx, rcx
mov edx, 0xffffffbf
cmovne edx, eax
lea eax, [r8 - 0x64]
cmp eax, 0x63
jbe 0x140070be1
cmp byte [rbx + 0x126d], dil
je 0x140070a24
movzx eax, byte [rbx + 0xa16]
neg al
sbb edi, edi
and edi, 0x16
jmp 0x140070bd9
cmp qword [rbx + 0x1248], rdi
jne 0x140070a32
test rcx, rcx
je 0x140070a9c
cmp r8d, 0x191
je 0x140070a4d
cmp byte [rsi + 0x2d8], dil
je 0x140070a9c
cmp r8d, 0x12c
jge 0x140070a9c
lea rcx, [rbx + 0xd48]
call fcn.140071990
movzx ebp, al
test al, al
jne 0x140070a67
mov byte [rbx + 0x126d], 1
cmp dword [rbx + 0xd4c], 8
jne 0x140070a9c
cmp byte [rsi + 0x617], 0xb
jbe 0x140070a9c
lea rdx, str.Forcing_HTTP_1.1_for_NTLM
mov rcx, rbx
call fcn.140062200
mov edx, 1
mov rcx, rsi
call fcn.140063170
mov byte [rbx + 0x10d8], 2
cmp byte [rsi + 0x2ca], dil
je 0x140070ae2
mov eax, dword [rbx + 0x148]
cmp eax, 0x197
je 0x140070ac2
cmp byte [rsi + 0x2d8], dil
je 0x140070ae2
cmp eax, 0x12c
jge 0x140070ae2
lea rcx, [rbx + 0xd58]
mov edx, 0xffffffbf
call fcn.140071990
movzx r14d, al
test al, al
jne 0x140070ae2
mov byte [rbx + 0x126d], 1
test bpl, bpl
jne 0x140070b53
test r14b, r14b
jne 0x140070b53
cmp dword [rbx + 0x148], 0x12c
jge 0x140070bb5
cmp byte [rbx + 0xd54], dil
jne 0x140070bb5
cmp byte [rsi + 0x2d8], dil
je 0x140070bb5
movzx eax, byte [rbx + 0x1150]
test al, al
je 0x140070bb5
cmp al, 5
je 0x140070bb5
mov rcx, qword [rbx + 0x1158]
call qword [case.0x140055c58.0]
mov qword [rbx + 0x188], rax
test rax, rax
je 0x140070ee0
mov byte [rbx + 0xd54], 1
jmp 0x140070bb5
movzx eax, byte [rbx + 0x1150]
test al, al
je 0x140070b80
cmp al, 5
je 0x140070b80
cmp byte [rbx + 0x127b], dil
jne 0x140070b80
mov rdx, rsi
mov rcx, rbx
call fcn.1400713f0
mov edi, eax
test eax, eax
jne 0x140070ee5
mov rcx, qword [rbx + 0x188]
call qword [fcn.1400f122c]
mov rcx, qword [rbx + 0x1158]
mov qword [rbx + 0x188], 0
call qword [case.0x140055c58.0]
mov qword [rbx + 0x188], rax
test rax, rax
je 0x140070ee0
mov rcx, rbx
call fcn.1400715d0
test al, al
je 0x140070bd9
mov r8d, dword [rbx + 0x148]
lea rdx, str.The_requested_URL_returned_error:__d
call fcn.140062110
mov edi, socket
test edi, edi
jne 0x140070ee5
cmp dword [rbx + 0x148], 0x12c
jl 0x140070d46
cmp byte [r13 + 0x2d8], 0
jne 0x140070d1d
cmp byte [r13 + 0x2ce], 0
jne 0x140070d1d
cmp byte [rbx + 0x127b], 0
jne 0x140070d26
movzx ecx, byte [rbx + 0x1150]
sub ecx, 1
je 0x140070c39
sub ecx, 1
je 0x140070c39
sub ecx, 1
je 0x140070c39
cmp ecx, 1
jne 0x140070d1d
xor edx, edx
mov rcx, rbx
call fcn.140050120
cmp byte [rbx + 0x1b4], 0
jne 0x140070d1d
cmp dword [rbx + 0x148], 0x1a1
jne 0x140070ca0
cmp byte [rbx + 0x126f], 0
je 0x140070ca0
lea rdx, str.Got_417_while_waiting_for_a_100
mov rcx, rbx
call fcn.140062200
mov rcx, qword [rbx + 0x1158]
mov byte [rbx + 0x1270], 1
call qword [case.0x140055c58.0]
lea rdx, [rbx + 0xe8]
mov rcx, rbx
mov qword [rbx + 0x188], rax
call fcn.140068c00
jmp 0x140070d1d
cmp byte [rbx + 0xa17], 0
mov rcx, rbx
je 0x140070cd4
lea rdx, str.HTTP_error_before_end_of_send__keep_sending
call fcn.140062200
cmp dword [rbx + 0x160], 0
jle 0x140070d1d
or dword [rbx + 0x14c], 2
mov dword [rbx + 0x160], 0
jmp 0x140070d1d
lea rdx, str.HTTP_error_before_end_of_send__stop_sending
call fcn.140062200
mov edx, 2
mov rcx, r13
call fcn.140063170
lea rdx, [rbx + 0xe8]
mov rcx, rbx
call fcn.140068c00
test eax, eax
jne 0x140070474
mov byte [rbx + 0x1b4], 1
cmp byte [rbx + 0x126f], al
je 0x140070d1d
mov dword [rbx + 0x160], 3
cmp byte [rbx + 0x127b], 0
je 0x140070d46
cmp qword [r13 + 0x310], 0xffffffffffffffff
je 0x140070d46
lea rdx, str.Keep_sending_data_to_get_tossed_away
mov rcx, rbx
call fcn.140062200
or dword [rbx + 0x14c], 2
cmp byte [r15], 0
je 0x140070eec
lea r12, [rbx + 0xc00]
mov rcx, r12
call fcn.14004f890
mov rdi, qword [rbx + 0x138]
cmp byte [rdi], 0
je 0x140070472
mov r15, qword [rsp + 0xc0]
mov r14, rdi
mov rcx, rdi
mov rsi, qword [r15]
mov rbp, rsi
mov r8, rsi
jmp 0x140070281
mov edx, 2
mov rcx, r13
call fcn.140063170
cmp byte [rbx + 0xa3a], 0
je 0x140070fc1
mov byte [rbx + 0x1b2], 0
cmp qword [r15], 0
je 0x140070dc1
mov dword [rbx + 0x130], 1
jmp 0x140070472
mov rax, qword [rsp + 0x58]
mov dword [rbx + 0x130], 2
mov qword [r15], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x138], rax
jmp 0x140070472
mov r9d, r8d
mov eax, 0x66666667
imul r8d
mov eax, 0x66666667
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
imul r8d
add ecx, ecx
sar edx, 2
sub r9d, ecx
mov r8d, edx
mov rcx, rbx
shr r8d, 0x1f
add r8d, edx
lea rdx, str.Unsupported_HTTP_version___u._d__in_response
call fcn.140062110
mov eax, 1
jmp 0x140070474
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rbx
call fcn.140062110
mov eax, 1
jmp 0x140070474
lea rdx, str.Unsupported_response_code_in_HTTP_response
mov rcx, rbx
call fcn.140062110
mov eax, 1
jmp 0x140070474
lea rdx, str.Header_without_colon
mov rcx, rbx
mov edi, 8
call fcn.140062110
mov eax, edi
jmp 0x140070474
lea rdx, str.Nul_byte_in_header
mov rcx, rbx
mov edi, 8
call fcn.140062110
mov eax, edi
jmp 0x140070474
lea rdx, str.Received_101__Switching_to_HTTP_2
mov rcx, rbx
call fcn.140062200
mov eax, 1
mov dword [rbx + 0x164], 3
mov byte [rbx + 0x1b2], 1
mov dword [rbx + 0x134], ebp
jmp 0x140070474
lea rdx, str.Maximum_file_size_exceeded
mov rcx, rbx
call fcn.140062110
mov eax, 0x3f
jmp 0x140070474
mov edi, 0x1b
mov eax, edi
jmp 0x140070474
cmp byte [rbx + 0x1bc], 0
mov rcx, qword [rsp + 0xc8]
je 0x140070f04
mov byte [rcx], 1
mov al, 1
jmp 0x140070f07
movzx eax, byte [rcx]
cmp qword [rbx + 0xf0], 0
jne 0x140070f16
mov byte [rcx], 1
jmp 0x140070f1a
test al, al
je 0x140070f21
and dword [rbx + 0x14c], 0xfffffffe
mov r8, qword [rsp + 0xb0]
mov r9, r12
mov edx, 1
mov rcx, rbx
call fcn.140062030
jmp 0x140070472
lea rdx, str.The_requested_URL_returned_error:__d
call fcn.140062110
mov eax, socket
jmp 0x140070474
mov r8, rbp
mov rcx, r12
call fcn.14004f830
test eax, eax
jne 0x140070474
cmp dword [rbx + 0x134], eax
jne 0x140070472
mov rcx, r12
call fcn.14000e3a0
mov rcx, r12
mov rdi, rax
call fcn.140005aa0
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call fcn.140071220
cmp eax, 2
jne 0x140070472
mov edx, eax
mov byte [rbx + 0x1b2], 0
mov rcx, r13
mov dword [rbx + 0x130], eax
call fcn.140063170
cmp byte [rbx + 0xa3a], 0
jne 0x140070472
lea rdx, str.Received_HTTP_0.9_when_not_allowed
mov rcx, rbx
call fcn.140062110
mov eax, 1
jmp 0x140070474