Function at 0x14003e460
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
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [r8]
lea r12, [rcx + 0xb38]
mov rbx, qword [rcx + 0x148]
mov rdi, rax
mov qword [rbp - 0x18], rax
mov r15, rax
mov qword [rbp - 0x10], rbx
mov r8, rax
mov r14, rdx
mov rsi, rcx
mov edx, 0xa
mov rcx, rbx
mov r13, rbx
call fcn.140051c60
mov rcx, rax
mov rdx, rbx
test rax, rax
je 0x14003ec82
sub rdi, rax
lea r8, [rcx + 1]
mov rcx, r12
lea rax, [rdi - 1]
mov rdi, qword [rbp + 0x50]
add rax, rbx
mov qword [rdi], rax
mov qword [rsi + 0x148], r8
sub r8, rbx
call fcn.14002fee8
xor r15d, r15d
test eax, eax
jne 0x14003e55e
cmp dword [rsi + 0x144], r15d
jne 0x14003e576
mov rcx, r12
call fcn.14002ff2c
mov rcx, r12
mov rbx, rax
call fcn.14002ff34
mov r8, rax
mov r9, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14003f170
lea ebx, [r15 + 2]
cmp eax, ebx
jne 0x14003e57b
mov edx, ebx
mov rcx, r14
call fcn.1400365fc
cmp byte [rsi + 0x98e], r15b
je 0x14003ecf6
mov byte [rsi + 0x1b9], r15b
cmp qword [rdi], r15
je 0x14003eba2
mov dword [rsi + 0x140], 1
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
mov ebx, 2
mov rcx, r12
call fcn.14002ff34
mov r15, rax
cmp byte [rax], 0xa
je 0x14003e80d
cmp byte [rax], 0xd
je 0x14003e80d
mov edx, dword [rsi + 0x144]
xor r13d, r13d
lea ecx, [rdx + 1]
mov dword [rsi + 0x144], ecx
test edx, edx
jne 0x14003e768
mov rax, qword [r14 + 0x2c8]
mov ecx, dword [rax + 0x84]
test cl, 3
je 0x14003e70d
lea rax, [rbp + 0x40]
mov dword [rbp - 0x2c], r13d
mov qword [rsp + 0x30], rax
lea rdi, [rsi + 0x158]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rdi
lea r9, [rbp - 0x2c]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x28]
mov byte [rbp + 0x40], r13b
lea rdx, str._HTTP__1d._1d_c_3d_c
mov rcx, r15
call fcn.14003ba70
mov ebx, eax
cmp eax, 1
jne 0x14003e63d
cmp dword [rbp - 0x28], 2
jl 0x14003e63d
mov r9, rdi
lea r8, [rbp - 0x24]
lea rdx, str._HTTP__1_23___d
mov rcx, r15
call fcn.14003ba70
cmp eax, 2
jne 0x14003e63d
mov byte [r14 + 0x5ff], r13b
lea ebx, [rax + 2]
mov byte [rbp - 0x30], 0x20
jmp 0x14003e662
mov al, byte [rbp + 0x40]
sub al, 0x30
cmp al, 9
jbe 0x14003ebfc
cmp ebx, 4
jl 0x14003e69d
cmp dword [rdi], 0x64
jl 0x14003ebfc
cmp byte [rbp - 0x30], 0x20
jne 0x14003ebf0
mov eax, dword [rbp - 0x28]
lea ecx, [rax + rax*4]
mov eax, dword [rbp - 0x2c]
lea r9d, [rax + rcx*2]
mov ecx, r9d
mov dword [rbp - 0x2c], r9d
sub ecx, 0xa
je 0x14003e684
cmp ecx, 1
jne 0x14003ebbf
mov byte [r14 + 0x5ff], r9b
cmp r9b, 0x14
jae 0x14003e6fd
mov rax, qword [r14 + 0x5c0]
or dword [rax], 0xffffffff
jmp 0x14003e6fd
test ebx, ebx
jne 0x14003ebf0
mov r8, rdi
lea rdx, str._HTTP__3d
mov rcx, r15
call fcn.14003ba70
mov byte [r14 + 0x5ff], 0xa
test eax, eax
jne 0x14003e752
mov rcx, r12
call fcn.14002ff2c
mov rcx, r12
mov rbx, rax
call fcn.14002ff34
mov rdx, rax
mov r8, rbx
mov rcx, rsi
call fcn.14003f0a4
cmp eax, 1
jne 0x14003e701
mov dword [rdi], 0xc8
mov ebx, eax
mov byte [r14 + 0x5ff], 0xa
test ebx, ebx
jne 0x14003e752
mov byte [rsi + 0x1b9], r13b
jmp 0x14003e55c
bt ecx, 0x12
jae 0x14003e701
lea rax, [rsi + 0x158]
mov rcx, r15
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
lea rax, [rbp - 0x2f]
lea r8, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
lea rdx, str._RTSP__1d._1d_c_3d
call fcn.14003ba70
cmp eax, 4
jne 0x14003e701
cmp byte [rbp - 0x2f], 0x20
jne 0x14003e701
mov byte [r14 + 0x5ff], 0xb
mov rdx, r14
mov rcx, rsi
call fcn.14003eee4
test eax, eax
jne 0x14003e55e
lea ebx, [rax + 6]
mov rcx, rsi
call fcn.14003f828
test eax, eax
jne 0x14003e55e
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.14003d7e8
test eax, eax
jne 0x14003e55e
mov edi, ebx
mov rcx, r12
or edi, 1
cmp byte [rsi + 0x972], r13b
cmove edi, ebx
mov ebx, dword [rsi + 0x158]
call fcn.14002ff2c
mov r9, rax
mov r8, r15
mov edx, 1
mov rcx, rsi
call fcn.140035b18
mov rcx, r12
call fcn.14002ff2c
mov edx, edi
mov r9, rax
or edx, 0x10
lea eax, [rbx - 0x64]
cmp eax, 0x64
mov r8, r15
mov rcx, rsi
cmovae edx, edi
call fcn.140035b10
test eax, eax
jne 0x14003e55e
mov rcx, r12
call fcn.14002ff2c
add qword [rsi + 0x11a0], rax
mov rcx, r12
call fcn.14002ff2c
add qword [rsi + 0x108], rax
jmp 0x14003eb78
mov ecx, dword [rsi + 0x158]
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x14003e88f
sub ecx, 0x64
je 0x14003e856
cmp ecx, 1
je 0x14003e83b
lea rdi, [rsi + 0x1b9]
xor r15d, r15d
mov byte [rdi], 1
mov dword [rsi + 0x144], r15d
jmp 0x14003e88a
cmp dword [rsi + 0x174], ebx
je 0x14003ec08
lea rdi, [rsi + 0x1b9]
xor r15d, r15d
mov byte [rdi], r15b
jmp 0x14003e88a
xor r15d, r15d
lea rdi, [rsi + 0x1b9]
mov byte [rdi], 1
mov dword [rsi + 0x144], r15d
cmp dword [rsi + 0x170], r15d
jle 0x14003e88a
or dword [rsi + 0x15c], ebx
xor edx, edx
mov rcx, rsi
mov dword [rsi + 0x170], r15d
call fcn.14002c90c
mov rbx, rdi
jmp 0x14003e8ed
xor r15d, r15d
lea rdi, [rsi + 0x1b9]
cmp qword [rsi + 0xe8], 0xffffffffffffffff
mov rbx, rdi
mov byte [rdi], r15b
jne 0x14003e8f2
cmp byte [rsi + 0x1be], r15b
jne 0x14003e8f2
cmp byte [r14 + 0x292], r15b
jne 0x14003e8f2
cmp byte [r14 + 0x5ff], 0xb
jne 0x14003e8f2
mov rax, qword [r14 + 0x2c8]
test dword [rax + 0x84], 0x40000
jne 0x14003e8f2
cmp byte [rsi + 0x1058], 5
je 0x14003e8f2
lea edx, [r15 + 2]
mov rcx, r14
call fcn.1400365fc
cmp byte [rbx], r15b
jne 0x14003e902
mov rcx, rsi
call fcn.14003ee68
test eax, eax
jne 0x14003e55e
mov al, byte [r14 + 0x292]
mov ecx, 0x191
test al, al
je 0x14003e977
mov eax, dword [rsi + 0x158]
cmp eax, ecx
jne 0x14003e926
cmp dword [r14 + 0x390], 2
je 0x14003e937
cmp eax, 0x197
jne 0x14003e949
cmp dword [r14 + 0x394], 2
jne 0x14003e949
mov byte [rsi + 0x1175], 1
mov al, byte [r14 + 0x292]
test al, al
je 0x14003e977
mov eax, dword [rsi + 0x158]
cmp eax, ecx
jne 0x14003e95f
cmp dword [r14 + 0x488], 1
je 0x14003e970
jmp 0x14003e977
cmp eax, 0x197
jne 0x14003e977
cmp dword [r14 + 0x48c], 1
jne 0x14003e977
mov byte [rsi + 0x1175], 1
cmp dword [r14 + 0x488], 3
jne 0x14003e994
cmp dword [rsi + 0x158], ecx
je 0x14003e994
mov dword [r14 + 0x488], 4
cmp dword [r14 + 0x48c], 3
jne 0x14003e9b5
cmp dword [rsi + 0x158], 0x197
je 0x14003e9b5
mov dword [r14 + 0x48c], 4
mov eax, dword [rsi + 0x158]
sub eax, 0x64
cmp eax, 0x64
mov al, byte [rsi + 0x972]
sbb ebx, ebx
and ebx, 0x10
neg al
sbb ecx, ecx
neg ecx
add ecx, 2
or ebx, ecx
mov rcx, r12
call fcn.14002ff2c
mov rcx, r12
mov r15, rax
call fcn.14002ff34
mov r8, rax
mov r9, r15
mov edx, ebx
mov rcx, rsi
call fcn.140035b10
xor ebx, ebx
test eax, eax
jne 0x14003e55e
mov r9, qword [rsi + 0x108]
movsxd rcx, r15d
add qword [rsi + 0x11a0], rcx
add r9, rcx
mov qword [rsi + 0x108], r9
mov rcx, rsi
mov r8d, dword [rsi + 0x158]
call fcn.14003f518
test al, al
jne 0x14003ec6c
lea eax, [r8 - 0x64]
cmp eax, 0x63
cmova r9, rbx
mov qword [rsi + 0x110], r9
call fcn.14003ccc4
test eax, eax
jne 0x14003e55e
cmp dword [rsi + 0x158], 0x12c
jl 0x14003eb6d
cmp byte [r14 + 0x29c], bl
jne 0x14003eb5d
cmp byte [r14 + 0x292], bl
jne 0x14003eb5d
cmp byte [r14 + 0x29d], bl
jne 0x14003eb66
movzx ecx, byte [rsi + 0x1058]
sub ecx, 1
je 0x14003eaab
sub ecx, 1
je 0x14003eaab
sub ecx, 1
je 0x14003eaab
cmp ecx, 1
jne 0x14003eb5d
xor edx, edx
mov rcx, rsi
call fcn.14002c90c
cmp byte [rsi + 0x1bb], bl
jne 0x14003eb5d
cmp dword [rsi + 0x158], 0x1a1
jne 0x14003eb01
cmp byte [rsi + 0x1177], bl
je 0x14003eb01
mov rcx, qword [rsi + 0x1060]
mov byte [rsi + 0x1178], 1
call qword [fcn.140067e08]
lea rdx, [rsi + 0xe8]
mov rcx, rsi
mov qword [rsi + 0x198], rax
call fcn.1400388c4
jmp 0x14003eb5d
cmp byte [rsi + 0x96e], bl
je 0x14003eb20
cmp dword [rsi + 0x170], ebx
jle 0x14003eb5d
or dword [rsi + 0x15c], 2
mov dword [rsi + 0x170], ebx
jmp 0x14003eb5d
mov edx, 2
mov rcx, r14
call fcn.1400365fc
lea rdx, [rsi + 0xe8]
mov rcx, rsi
call fcn.1400388c4
test eax, eax
jne 0x14003e55e
mov byte [rsi + 0x1bb], 1
cmp byte [rsi + 0x1177], bl
je 0x14003eb5d
mov dword [rsi + 0x170], 3
cmp byte [r14 + 0x29d], bl
je 0x14003eb6d
or dword [rsi + 0x15c], 2
cmp byte [rdi], bl
je 0x14003ec26
xor r13d, r13d
mov rcx, r12
call fcn.14002ff38
mov rbx, qword [rsi + 0x148]
cmp byte [rbx], r13b
je 0x14003e55c
mov rdi, qword [rbp + 0x50]
mov rdi, qword [rdi]
mov r15, rdi
mov r8, rdi
jmp 0x14003e4a9
mov rax, qword [rbp - 0x18]
mov dword [rsi + 0x140], ebx
mov qword [rdi], rax
mov rax, qword [rbp - 0x10]
mov qword [rsi + 0x148], rax
jmp 0x14003e55c
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, rsi
call fcn.140035bf4
jmp 0x14003ed05
lea rdx, str.Unsupported_HTTP_version_in_response
jmp 0x14003ecfd
lea rdx, str.Unsupported_response_code_in_HTTP_response
jmp 0x14003ecfd
xor eax, eax
mov dword [rsi + 0x174], 3
mov dword [rsi + 0x144], eax
mov byte [rsi + 0x1b9], 1
jmp 0x14003ed05
mov rcx, qword [rbp + 0x58]
cmp byte [rsi + 0x975], bl
je 0x14003ec39
mov byte [rcx], 1
mov al, 1
jmp 0x14003ec3b
mov al, byte [rcx]
cmp qword [rsi + 0xf0], rbx
jne 0x14003ec49
mov byte [rcx], 1
jmp 0x14003ec4d
test al, al
je 0x14003ec54
and dword [rsi + 0x15c], 0xfffffffe
mov r9, r15
mov r8, r13
mov edx, 1
mov rcx, rsi
call fcn.140035b18
jmp 0x14003e55c
lea rdx, str.The_requested_URL_returned_error:__d
call fcn.140035bf4
mov eax, socket
jmp 0x14003e55e
mov r8, r15
mov rcx, r12
call fcn.14002fee8
xor edi, edi
test eax, eax
jne 0x14003e55e
cmp dword [rsi + 0x144], edi
jne 0x14003e55c
mov rcx, r12
call fcn.14002ff2c
mov rcx, r12
mov rbx, rax
call fcn.14002ff34
mov r8, rax
mov r9, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14003f170
lea ecx, [rdi + 2]
cmp eax, ecx
jne 0x14003e55c
mov dword [rsi + 0x140], ecx
mov edx, ecx
mov rcx, r14
mov byte [rsi + 0x1b9], dil
call fcn.1400365fc
cmp byte [rsi + 0x98e], dil
jne 0x14003e55c
lea rdx, str.Received_HTTP_0.9_when_not_allowed
mov rcx, rsi
call fcn.140035bf4
mov eax, 1
jmp 0x14003e55e