Function at 0x140173450
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
movzx r8d, byte [rdx]
mov rdi, qword [rcx + 0x28]
mov rbx, rdx
mov rsi, qword [rdi]
lea eax, [r8 - 0x14]
mov r9, rcx
cmp eax, 0x98
ja case.0x14017349b.21
lea rcx, [0x140000000]
cdqe
movzx eax, byte [rcx + rax + 0x173d3c]
mov edx, dword [rcx + rax*4 + 0x173d18]
add rdx, rcx
jmp rdx
mov rcx, qword [rdi + 8]
mov byte [rbx], 0xa7
mov rax, qword [rcx + 0x28]
mov qword [rbx + 0x40], rax
mov eax, dword [rcx + 0x4c]
dec word [rbx + 0x30]
mov dword [rbx + 0x2c], eax
mov byte [rbx + 1], MsiGetPropertyW
jmp case.0x14017349b.21
xor ebp, ebp
mov rdx, rdi
mov ecx, ebp
cmp rcx, 8
jge 0x1401734df
mov eax, dword [rdx + 0x20]
mov rdx, qword [rdx + 0x18]
inc rcx
mov dword [rsp + rcx*4 + 0x64], eax
test rdx, rdx
jne 0x1401734c6
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1401734f0
mov rcx, r9
call fcn.1401e3e50
mov rcx, qword [rbx + 0x10]
call fcn.14018b790
test eax, eax
jne 0x140173561
cmp byte [rsi + 0x124], 2
jae 0x140173561
cmp byte [rbx], 0x33
jne 0x14017351b
or dword [rbx + 4], 0x10000000
lea rax, [0x14025235c]
jmp 0x140173529
or dword [rbx + 4], 0x20000000
lea rax, [0x140252384]
mov qword [rbx + 8], rax
mov byte [rbx], 0xaa
mov rdx, rbp
cmp rdx, 8
jge 0x14017354c
mov eax, dword [rsp + rdx*4 + 0x68]
inc rdx
mov dword [rdi + 0x20], eax
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140173533
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14017355d
mov rcx, qword [rsi]
call fcn.14018f580
mov qword [rbx + 0x10], rbp
mov eax, 1
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp r8b, 0x3b
jne 0x140173586
mov r9, qword [rbx + 8]
xor ebp, ebp
mov r8d, ebp
jmp 0x140173627
test byte [rdi + 0x28], 0x28
mov rdx, qword [rbx + 0x10]
mov qword [rsp + 0xc0], rdx
je 0x1401735ba
lea r8, str.the__.__operator
xor r9d, r9d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140167010
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rbx + 0x18]
cmp byte [rcx], 0x3b
jne 0x1401735c7
xor ebp, ebp
jmp 0x1401735d3
mov rbp, qword [rdx + 8]
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
cmp byte [rsi + 0x124], 2
mov r8, qword [rdx + 8]
mov r9, qword [rcx + 8]
jb 0x140173627
mov rax, qword [rsi + 0x190]
test rax, rax
je 0x140173603
cmp qword [rax], rcx
je 0x140173600
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x1401735f0
jmp 0x140173603
mov qword [rax], rbx
mov rcx, qword [rsi + 0x190]
test rcx, rcx
je 0x140173627
nop
cmp qword [rcx], rdx
je 0x140173620
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140173610
jmp 0x140173627
lea rax, [rbx + 0x40]
mov qword [rcx], rax
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.140162730
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rbx + 0x20]
xor ebp, ebp
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14017365c
mov eax, dword [rax]
jmp 0x14017365e
mov eax, ebp
mov r10, qword [rsi]
lea rcx, [rdi + 0x28]
mov dword [rsp + 0x50], eax
movzx edx, byte [r10 + 0x64]
mov qword [rsp + 0x40], rcx
mov ecx, dword [rcx]
and ecx, 0x4001
test dword [rbx + 4], 0x1000000
mov dword [rsp + 0xd0], ebp
mov dword [rsp + 0x54], ecx
mov byte [rsp + 0xc8], dl
je 0x1401736a5
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x48], rcx
cmp byte [rcx + 0x20], 0xa6
jne 0x1401736aa
mov qword [rsp + 0x48], rbp
mov rcx, qword [rbx + 8]
movzx r9d, dl
mov r8d, eax
mov qword [rsp + 0x60], rcx
mov rdx, rcx
mov rcx, r10
mov byte [rsp + 0x20], bpl
call fcn.140191840
mov rcx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14017371b
movzx r9d, byte [rsp + 0xc8]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsi]
lea r8d, [rax - 2]
mov byte [rsp + 0x20], bpl
call fcn.140191840
mov rcx, rax
mov qword [rsp + 0x38], rax
test rax, rax
mov eax, 1
jne 0x140173710
mov r8d, eax
jmp 0x140173924
mov r9d, eax
mov r8d, ebp
jmp 0x140173927
mov eax, ebp
cmp qword [rcx + 0x20], rax
setne al
test dword [rcx + 4], 0x400
mov dword [rsp + 0xd0], eax
je 0x1401737fb
or dword [rbx + 4], 0x40000
cmp dword [rsp + 0x50], 2
jne 0x1401737e4
mov rcx, qword [rsp + 0x58]
movsd xmm0, qword [0x140259620]
movsd qword [rsp + 0xc8], xmm0
mov rcx, qword [rcx + 0x28]
cmp byte [rcx], 0x99
je 0x14017376f
or rax, 0xffffffffffffffff
jmp 0x1401737c6
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x14017377c
mov eax, ebp
jmp 0x14017378e
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bpl
jne 0x140173780
and eax, 0x3fffffff
lea rdx, [rsp + 0xc8]
mov r9b, 1
mov r8d, eax
call fcn.14017b600
movsd xmm2, qword [rsp + 0xc8]
comisd xmm2, xmmword [0x14023ca78]
jbe 0x1401737ba
or rax, 0xffffffffffffffff
jmp 0x1401737c6
mulsd xmm2, qword [0x1402595c8]
cvttsd2si eax, xmm2
mov dword [rbx + 0x2c], eax
test eax, eax
jns 0x1401737fb
lea rdx, str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
mov r8, rbx
mov rcx, rsi
call fcn.14018a7d0
inc dword [rdi + 0x24]
jmp 0x1401737fb
mov rax, qword [rcx + 0x38]
mov edx, 0x800000
mov ecx, 0x7800000
cmp byte [rax], 0x75
cmove ecx, edx
mov dword [rbx + 0x2c], ecx
mov rax, qword [rsp + 0x38]
xor r8d, r8d
mov rcx, rsi
mov r9, qword [rax + 0x38]
lea edx, [r8 + 0x1f]
mov qword [rsp + 0x20], rbp
call fcn.14017bcf0
test eax, eax
je 0x14017384a
cmp eax, 1
jne 0x140173836
lea rdx, str.not_authorized_to_use_function:__T
mov r8, rbx
mov rcx, rsi
call fcn.14018a7d0
inc dword [rdi + 0x24]
mov byte [rbx], 0x79
mov eax, 1
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x38]
test dword [rcx + 4], 0x2800
je 0x14017385f
or dword [rbx + 4], 0x80000
test dword [rcx + 4], 0x800
jne 0x140173893
mov rax, qword [rsp + 0x40]
test byte [rax], 0x2a
je 0x1401738af
lea r8, str.non_deterministic_functions
xor r9d, r9d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140167010
mov rcx, qword [rsp + 0x38]
jmp 0x1401738af
mov rdx, qword [rsp + 0x40]
movzx eax, byte [rdx]
and al, 0x2e
mov byte [rbx + 2], al
test dword [rdx], 0x40000
je 0x1401738af
or dword [rbx + 4], 0x40000000
mov edx, dword [rcx + 4]
bt edx, 0x12
jae 0x1401738dc
cmp byte [rsi + 0x1e], bpl
jne 0x1401738dc
mov rax, qword [rsi]
test byte [rax + 0x2c], 0x20
jne 0x1401738dc
mov rcx, rbp
mov eax, 1
mov r8d, eax
mov qword [rsp + 0x38], rcx
mov r9d, ecx
jmp 0x140173927
test edx, 0x280000
je 0x14017391c
cmp byte [rsi + 0x124], 2
jae 0x14017391c
test dword [rbx + 4], 0x40000000
je 0x14017391c
bt edx, 0x13
jb 0x140173905
mov rax, qword [rsi]
test byte [rax + 0x30], 0x80
jne 0x14017391c
lea rdx, str.unsafe_use_of__T__
mov r8, rbx
mov rcx, rsi
call fcn.14018a7d0
mov rcx, qword [rsp + 0x38]
mov eax, 1
mov r8d, ebp
mov r9d, ebp
cmp byte [rsi + 0x124], 2
jae 0x140173a45
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140173955
cmp qword [rcx + 0x28], rbp
jne 0x140173955
test rax, rax
je 0x140173955
lea rdx, str._T___may_not_be_used_as_a_window_function
jmp 0x1401739f1
mov edx, dword [rsp + 0xd0]
test edx, edx
je 0x1401739cb
mov rdx, qword [rsp + 0x40]
mov edx, dword [rdx]
test dl, 1
je 0x140173987
test dword [rcx + 4], 0x10000
je 0x14017397c
test rax, rax
je 0x140173987
jmp 0x140173981
test rax, rax
je 0x1401739c4
bt edx, 0xe
jb 0x1401739c4
test dword [rcx + 4], 0x10000
jne 0x14017399c
lea r8, str.aggregate
test rax, rax
je 0x1401739a3
lea r8, str.window
lea rdx, str.misuse_of__s_function__T__
mov r9, rbx
mov rcx, rsi
call fcn.14018a7d0
inc dword [rdi + 0x24]
mov dword [rsp + 0xd0], ebp
jmp 0x140173a5d
mov edx, dword [rsp + 0xd0]
test r8d, r8d
je 0x1401739e5
mov rax, qword [rsi]
cmp byte [rax + 0xc5], bpl
jne 0x1401739e5
lea rdx, str.no_such_function:__T
jmp 0x1401739f1
test r9d, r9d
je 0x140173a21
lea rdx, str.wrong_number_of_arguments_to_function__T__
mov r8, rbx
mov rcx, rsi
call fcn.14018a7d0
inc dword [rdi + 0x24]
cmp dword [rsp + 0xd0], ebp
je 0x140173a5d
mov rcx, qword [rsp + 0x40]
mov eax, ebp
cmp qword [rsp + 0x48], rax
sete al
bts eax, 0xe
not eax
and dword [rcx], eax
jmp 0x140173a5d
test edx, edx
jne 0x140173a08
test dword [rbx + 4], 0x1000000
je 0x140173a5d
lea rdx, str.FILTER_may_not_be_used_with_non_aggregate__T__
mov r8, rbx
mov rcx, rsi
call fcn.14018a7d0
inc dword [rdi + 0x24]
jmp 0x140173a5d
mov ecx, dword [rsp + 0xd0]
test dword [rbx + 4], 0x1000000
cmovne ecx, eax
mov dword [rsp + 0xd0], ecx
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
call fcn.1401cd060
cmp dword [rsp + 0xd0], ebp
je 0x140173bb2
cmp qword [rsp + 0x48], rbp
je 0x140173b27
cmp byte [rsi + 0x124], 2
mov rbx, qword [rdi + 0x30]
jae 0x140173ac4
test rbx, rbx
je 0x140173a9d
mov rbp, qword [rbx + 0x78]
mov rdi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x38]
mov rdx, rbp
mov r8, rdi
mov rcx, rsi
call fcn.1401d5d20
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne case.0x14017349b.21
jmp 0x140173ac9
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0xc0]
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
call fcn.1401cd060
mov rdx, qword [rdi + 0x18]
mov rcx, rsi
call fcn.1401cd060
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x140173afa
mov rcx, rsi
call fcn.1401e3e50
mov rdx, rdi
mov rcx, rbx
call fcn.1401d4ee0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x54]
or dword [rax], 0x8000
or dword [rax], ecx
mov eax, 1
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
test dword [rbx + 4], 0x1000000
mov byte [rbx], 0xa8
mov byte [rbx + 2], bpl
je 0x140173b51
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax + 0x48]
test rdx, rdx
je 0x140173b51
mov rcx, qword [rsp + 0xc0]
call fcn.1401e3e50
mov r8, qword [rdi + 8]
mov rdx, rbx
mov rcx, rsi
call fcn.1401ada40
test eax, eax
jne 0x140173b8a
inc byte [rbx + 2]
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140173b51
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x54]
or dword [rax], ecx
lea eax, [rdi + 1]
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140173ba7
mov eax, dword [rax + 4]
xor eax, 0xffffefff
and eax, 0x8001000
or eax, 0x10
or dword [rdi + 0x28], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x54]
or dword [rax], ecx
mov eax, 1
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
test dword [rbx + 4], 0x800
je case.0x14017349b.21
test byte [rdi + 0x28], 0x2e
mov ebp, dword [rdi + 0x20]
je 0x140173bf5
lea r8, str.subqueries
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140167010
jmp 0x140173c01
mov rdx, qword [rbx + 0x20]
mov rcx, r9
call fcn.1401cd0d0
cmp ebp, dword [rdi + 0x20]
je case.0x14017349b.21
or dword [rbx + 4], 0x20
or dword [rdi + 0x28], 0x40
jmp case.0x14017349b.21
test byte [rdi + 0x28], 0x2e
je case.0x14017349b.21
lea r8, str.parameters
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140167010
jmp case.0x14017349b.21
mov rcx, qword [rbx + 0x18]
call fcn.1401914f0
mov rdi, rax
test rax, rax
je case.0x14017349b.48
movzx eax, byte [rax]
cmp al, 0x3b
je 0x140173c5c
cmp al, 0xaa
jne case.0x14017349b.48
mov rdx, rdi
mov rcx, r9
call fcn.140173450
cmp eax, 2
jne 0x140173c78
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp byte [rdi], 0xaa
jne case.0x14017349b.48
movzx eax, byte [rbx]
mov byte [rbx], 0xaf
mov byte [rbx + 2], al
xor eax, eax
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne case.0x14017349b.21
mov rcx, qword [rbx + 0x10]
call fcn.140191590
cmp byte [rbx], 0x30
mov edx, eax
jne 0x140173cc4
mov r8, qword [rbx + 0x20]
mov rcx, qword [r8 + 8]
call fcn.140191590
cmp eax, edx
jne 0x140173cd1
mov rcx, qword [r8 + 0x28]
jmp 0x140173cc8
mov rcx, qword [rbx + 0x18]
call fcn.140191590
cmp edx, eax
je case.0x14017349b.21
lea rdx, str.row_value_misused
mov rcx, rsi
call fcn.14018a7d0
mov rcx, qword [rsi]
test byte [rbx + 4], 1
jne 0x140173cef
cmp dword [rbx + 0x34], 0
jg 0x140173cfa
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140173ce3
jmp case.0x14017349b.21
mov eax, dword [rbx + 0x34]
mov dword [rcx + 0x54], eax
mov eax, dword [rsi + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret