Function at 0x140029fd0
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, 0x20
mov r13, qword [rcx + 0x20]
lea r14, [rcx + 0xca0]
mov qword [r9], 0
mov r15, r9
mov r12, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 5
mov r8, r12
mov rcx, rsi
lea edx, [rbp + 5]
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
mov rdx, rsi
mov rcx, r14
test rax, rax
je 0x14002a818
sub rdi, rsi
inc rdi
mov r8, rdi
call fcn.14000c130
test eax, eax
jne 0x14002a728
add qword [r15], rdi
add rsi, rdi
sub r12, rdi
mov qword [rsp + 0x68], rsi
cmp dword [rbx + 0x12c], eax
jne 0x14002a0c4
mov rcx, r14
call fcn.14000c190
mov rcx, r14
mov rsi, rax
call fcn.14000c1a0
mov rcx, qword [r13 + 0x360]
mov rdx, rax
test dword [rcx + 0x84], 0x40000
je 0x14002a0a9
xor edi, edi
lea rcx, str.RTSP_
cmp rsi, rbp
cmova rsi, rbp
setae dil
mov r8, rsi
call fcn.140021e40
test eax, eax
mov ecx, 2
cmovne ecx, edi
jmp 0x14002a0b6
mov r8, rsi
mov rcx, rbx
call fcn.140029580
mov ecx, eax
cmp ecx, 2
je 0x14002a73d
mov rsi, qword [rsp + 0x68]
lea rcx, [rbx + 0xca0]
call fcn.14000c1a0
mov rcx, r14
mov r15, rax
call fcn.14000c190
movzx ecx, byte [r15]
mov rbp, rax
cmp cl, 0xa
je 0x14002a607
cmp cl, 0xd
je 0x14002a607
mov edx, dword [rbx + 0x12c]
mov edi, 4
mov rsi, r14
lea ecx, [rdx + 1]
mov dword [rbx + 0x12c], ecx
test edx, edx
jne 0x14002a4cd
xor esi, esi
mov dword [rbx + 0x138], esi
mov rax, qword [r13 + 0x360]
mov ecx, dword [rax + 0x84]
test cl, 3
je 0x14002a2c3
movzx eax, byte [r15]
mov rdi, r15
test al, al
je 0x14002a153
nop dword [rax]
cmp al, 0x20
je 0x14002a148
cmp al, 9
jne 0x14002a153
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x14002a140
mov r8d, 5
lea rdx, str.HTTP_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14002a1fa
movsx edx, byte [rdi + 5]
mov ecx, edx
sub ecx, 0x31
je 0x14002a22a
sub ecx, 1
je 0x14002a18e
cmp ecx, 1
jne 0x14002a771
movzx eax, byte [rdi + 6]
cmp al, 0x20
je 0x14002a19a
cmp al, 9
jne 0x14002a1fa
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 0x14002a1fa
movsx edx, byte [rdi + 8]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14002a1fa
movsx r8d, byte [rdi + 9]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14002a1fa
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 0x14002a3a7
sub al, 9
cmp al, 4
jbe 0x14002a3a7
mov r8, rbp
mov rdx, r15
mov rcx, rbx
call fcn.140029580
cmp eax, 1
jne 0x14002a7bd
mov dword [rbx + 0x13c], reloc.WLDAP32.dll_Ordinal_200
mov dword [rbx + 0x138], 0xa
jmp 0x14002a3a7
cmp byte [rdi + 6], 0x2e
jne 0x14002a2aa
movsx ecx, byte [rdi + 7]
lea eax, [rcx - 0x30]
cmp al, 1
ja 0x14002a2aa
movzx eax, byte [rdi + 8]
cmp al, 0x20
je 0x14002a247
cmp al, 9
jne 0x14002a2aa
lea eax, [rcx - 0x26]
mov dword [rbx + 0x138], eax
movsx ecx, byte [rdi + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002a2aa
movsx edx, byte [rdi + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14002a2aa
movsx r8d, byte [rdi + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14002a2aa
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 0x14002a3a7
cmp al, 9
je 0x14002a3a7
sub al, 0xa
cmp al, 3
jbe 0x14002a3a7
lea rdx, str.Unsupported_HTTP_1_subversion_in_response
mov rcx, rbx
call fcn.140019e70
mov eax, 1
jmp 0x14002a728
bt ecx, 0x12
jae 0x14002a7bd
movzx eax, byte [r15]
mov rdi, r15
test al, al
je 0x14002a2eb
cmp al, 0x20
je 0x14002a2e0
cmp al, 9
jne 0x14002a2eb
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x14002a2d8
mov r8d, 5
lea rdx, str.RTSP_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14002a7bd
movzx eax, byte [rdi + 5]
sub al, 0x30
cmp al, 9
ja 0x14002a8b8
cmp byte [rdi + 6], 0x2e
jne 0x14002a8b8
movzx eax, byte [rdi + 7]
sub al, 0x30
cmp al, 9
ja 0x14002a8b8
movzx eax, byte [rdi + 8]
cmp al, 0x20
je 0x14002a33f
cmp al, 9
jne 0x14002a8b8
movsx ecx, byte [rdi + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002a8b8
movsx edx, byte [rdi + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14002a8b8
movsx r8d, byte [rdi + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14002a8b8
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 0x14002a39d
cmp al, 9
je 0x14002a39d
sub al, 0xa
cmp al, 3
ja 0x14002a8b8
mov dword [rbx + 0x138], recv
mov r9d, dword [rbx + 0x138]
mov ecx, r9d
sub ecx, 0xa
je 0x14002a3bf
cmp ecx, 1
jne 0x14002a787
mov byte [r13 + 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 [r13 + 0x778], al
movzx eax, byte [rbx + 0x12f1]
test al, al
je 0x14002a3ff
cmp eax, dword [rbx + 0x138]
jle 0x14002a40c
movzx eax, byte [rbx + 0x138]
mov byte [rbx + 0x12f1], al
cmp qword [rbx + 0x10f8], rsi
je 0x14002a431
cmp byte [rbx + 0x12f2], sil
jne 0x14002a431
cmp dword [rbx + 0x13c], 0x1a0
jne 0x14002a431
mov byte [rbx + 0x1da], 1
mov eax, dword [rbx + 0x138]
cmp eax, 0xa
jne 0x14002a45a
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, rbx
call fcn.140019f60
mov edx, 1
mov rcx, r13
call fcn.14001cba0
jmp 0x14002a47e
cmp eax, 0x14
je 0x14002a471
cmp dword [rbx + 0x144], 2
jne 0x14002a47e
cmp dword [rbx + 0x13c], 0x65
jne 0x14002a47e
mov rax, qword [r13 + 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 0x14002a4b0
cmp ecx, 0x64
jne 0x14002a4c5
cmp byte [rbx + 0x530], sil
je 0x14002a4b0
mov byte [rbx + 0x13ec], 1
mov qword [rbx + 0xf0], rsi
mov qword [rbx + 0xf8], rsi
mov byte [rbx + 0x1db], 1
mov edi, recv
mov rsi, r14
lea rcx, [rbx + 0xca0]
call fcn.14000c1a0
mov rcx, rsi
mov r14, rax
call fcn.14000c190
mov r8, rax
xor edx, edx
mov rcx, r14
mov rsi, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14002a7e4
mov edx, dword [rbx + 0x12c]
cmp edx, 2
jl 0x14002a534
movzx ecx, byte [r14]
cmp cl, 0x20
je 0x14002a516
cmp cl, 9
jne 0x14002a51b
cmp edx, 2
jg 0x14002a534
mov r8, rsi
mov edx, Ordinal_60
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14002a7c9
mov r9, rbp
mov r8, r15
mov rdx, r13
mov rcx, rbx
call fcn.140027a10
test eax, eax
jne 0x14002a728
mov r9, rbp
lea edx, [rax + 1]
mov r8, r15
mov rcx, rbx
call fcn.140019d80
mov eax, dword [rbx + 0x13c]
sub eax, 0x64
cmp eax, 0x64
jae 0x14002a56f
or edi, 0x20
mov r9, rbp
mov r8, r15
mov edx, edi
mov rcx, rbx
call fcn.14001af70
test eax, eax
jne 0x14002a728
mov edx, dword [rbx + 0x124]
mov r9d, 0x4b000
cmp rbp, r9
jae 0x14002a5cf
mov ecx, dword [rbx + 0x1358]
lea eax, [rdx + rbp]
add dword [rbx + 0x120], ebp
add ecx, ebp
mov dword [rbx + 0x1358], ecx
mov dword [rbx + 0x124], eax
cmp eax, r9d
ja 0x14002a5ca
cmp ecx, 0x5dc000
jbe 0x14002a5dc
mov r9d, 0x5dc000
mov eax, ecx
mov r8d, eax
jmp 0x14002a5d3
lea r8, [rdx + rbp]
test r8, r8
jne 0x14002a7ff
lea rcx, [rbx + 0xca0]
call fcn.14000c1b0
test r12, r12
je 0x14002a709
mov rsi, qword [rsp + 0x68]
lea r14, [rbx + 0xca0]
mov r15, qword [rsp + 0x78]
jmp 0x14002a007
mov r9, rbp
mov r8, r15
mov edx, 1
mov rcx, rbx
call fcn.140019d80
mov eax, dword [rbx + 0x13c]
mov edx, 4
sub eax, 0x64
mov r9, rbp
cmp eax, 0x64
mov r8, r15
mov eax, 0x24
mov rcx, rbx
cmovb edx, eax
call fcn.14001af70
test eax, eax
jne 0x14002a728
mov ecx, dword [rbx + 0x124]
mov r9d, 0x4b000
cmp rbp, r9
jae 0x14002a696
mov r8d, dword [rbx + 0x1358]
lea edx, [rcx + rbp]
add dword [rbx + 0x120], ebp
add r8d, ebp
mov dword [rbx + 0x1358], r8d
mov dword [rbx + 0x124], edx
cmp edx, r9d
ja 0x14002a691
cmp r8d, 0x5dc000
jbe 0x14002a6a3
mov r9d, 0x5dc000
mov edx, r8d
mov r8d, edx
jmp 0x14002a69a
lea r8, [rcx + rbp]
test r8, r8
jne 0x14002a7ff
lea rcx, [rbx + 0xca0]
call fcn.14000c1b0
mov eax, dword [rbx + 0x13c]
sub eax, 0x64
cmp eax, 0x63
ja 0x14002a6c5
mov eax, dword [rbx + 0x120]
jmp 0x14002a6c7
xor eax, eax
lea r9, [rsp + 0x60]
mov dword [rbx + 0x128], eax
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call fcn.1400296c0
test eax, eax
jne 0x14002a728
mov rax, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
sub r12, rax
add rsi, rax
add qword [r15], rax
cmp byte [rbx + 0x1d1], 0
je 0x14002a709
test r12, r12
jne 0x14002a007
xor bpl, bpl
cmp byte [rbx + 0x1d1], 0
jne 0x14002a726
test bpl, bpl
jne 0x14002a726
lea rcx, [rbx + 0xca0]
call fcn.14000c140
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 2
mov rcx, r13
call fcn.14001cba0
cmp byte [r13 + 0x778], 0xa
jae 0x14002a8a9
cmp byte [rbx + 0xac9], 0
je 0x14002a890
mov byte [rbx + 0x1d1], 0
mov bpl, 1
jmp 0x14002a70c
lea rdx, str.Unsupported_HTTP_version_in_response
mov rcx, rbx
call fcn.140019e70
mov eax, 1
jmp 0x14002a728
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.140019e70
mov eax, 1
jmp 0x14002a728
mov byte [rbx + 0x1d1], sil
jmp 0x14002a709
lea rdx, str.Header_without_colon
mov rcx, rbx
mov edi, 8
call fcn.140019e70
mov eax, edi
jmp 0x14002a728
lea rdx, str.Nul_byte_in_header
mov rcx, rbx
mov edi, 8
call fcn.140019e70
mov eax, edi
jmp 0x14002a728
lea rdx, str.Too_large_response_headers:__zu____u
mov rcx, rbx
call fcn.140019e70
mov eax, gethostname
jmp 0x14002a728
mov r8, r12
call fcn.14000c130
test eax, eax
jne 0x14002a728
add qword [r15], r12
cmp dword [rbx + 0x12c], eax
jne 0x14002a709
mov rcx, r14
call fcn.14000c190
mov rcx, r14
mov rdi, rax
call fcn.14000c1a0
mov r8, rax
mov r9, rdi
mov rdx, r13
mov rcx, rbx
call fcn.140029650
cmp eax, 2
jne 0x14002a709
mov edx, eax
mov byte [rbx + 0x1d1], 0
mov rcx, r13
call fcn.14001cba0
cmp byte [r13 + 0x778], 0xa
jae 0x14002a8a9
cmp byte [rbx + 0xac9], 0
je 0x14002a890
mov bpl, 1
jmp 0x14002a70c
lea rdx, str.Received_HTTP_0.9_when_not_allowed
mov rcx, rbx
call fcn.140019e70
mov eax, 1
jmp 0x14002a728
lea rdx, str.Invalid_status_line
mov rcx, rbx
call fcn.140019e70
mov eax, 8
jmp 0x14002a728