Function at 0x18009cc80
Capabilities:
Inspect section memory permissions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
movzx r8d, byte [rdx]
mov rbx, rdx
mov rdi, qword [rcx + 0x28]
mov r13, rcx
lea eax, [r8 - 0x14]
mov rsi, qword [rdi]
cmp eax, 0x98
ja case.0x18009ccd5.21
lea rcx, [0x180000000]
cdqe
mov r12d, 1
movzx eax, byte [rcx + rax + 0x9d780]
mov edx, dword [rcx + rax*4 + 0x9d75c]
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], 0x44
jmp case.0x18009ccd5.21
xor r15d, r15d
mov rdx, rdi
mov ecx, r15d
cmp rcx, 8
jge 0x18009cd1b
mov eax, dword [rdx + 0x20]
mov rdx, qword [rdx + 0x18]
mov dword [rsp + rcx*4 + 0x58], eax
inc rcx
test rdx, rdx
jne 0x18009cd02
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x18009cd2c
mov rcx, r13
call fcn.18009ad00
cmp byte [rsi + 0x134], 2
jae 0x18009d567
mov rcx, qword [rbx + 0x10]
nop dword [rax]
movzx edx, byte [rcx]
lea eax, [rdx + 0x53]
cmp al, r12b
ja 0x18009cd51
mov rcx, qword [rcx + 0x10]
jmp 0x18009cd40
cmp dl, 0xb0
jne 0x18009cd5a
movzx edx, byte [rcx + 2]
movzx edx, dl
sub edx, 0x75
je 0x18009cdbd
sub edx, 0x24
je 0x18009cdbd
sub edx, r12d
je 0x18009cdbd
sub edx, r12d
je 0x18009cdbd
cmp edx, 0xc
jne 0x18009d567
test dword [rcx + 4], 0x200000
jne 0x18009d567
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x18009d567
movsx rdx, word [rcx + 0x30]
test dx, dx
js 0x18009cdbd
mov r8, qword [rax + 8]
test r8, r8
je 0x18009cdbd
cmp dx, word [rax + 0x36]
jge 0x18009cdbd
lea rcx, [rdx + rdx*2]
test byte [r8 + rcx*8 + 8], 0xf
je 0x18009d567
mov rax, rdi
test dword [rax + 0x28], 0x100000
je 0x18009d567
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x18009cdc0
cmp byte [rbx], 0x33
mov eax, r15d
mov byte [rbx], 0x9b
mov rdx, r15
sete al
or dword [rbx + 4], 0x800
mov dword [rbx + 8], eax
nop
cmp rdx, 8
jge 0x18009ce09
mov eax, dword [rsp + rdx*4 + 0x58]
inc rdx
mov dword [rdi + 0x20], eax
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x18009cdf0
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x18009ce1a
mov rcx, qword [rsi]
call fcn.1800a06d0
mov qword [rbx + 0x10], r15
mov eax, r12d
jmp 0x18009d745
cmp r8b, 0x3b
jne 0x18009ce3a
xor r15d, r15d
mov r9, rbx
mov r8d, r15d
jmp 0x18009cf17
mov eax, dword [rdi + 0x28]
mov rbp, qword [rbx + 0x10]
test al, 0x28
je 0x18009ceab
lea rcx, str.partial_index_WHERE_clauses
test al, 0x20
je 0x18009ce59
lea r9, str.index_expressions
jmp 0x18009ce73
test al, 4
je 0x18009ce66
lea r9, str.CHECK_constraints
jmp 0x18009ce73
test al, 8
lea r9, str.generated_columns
cmove r9, rcx
lea r8, str.the__.__operator
mov rcx, rsi
lea rdx, str._s_prohibited_in__s
call fcn.18005ee20
mov rdx, qword [rsi]
mov rax, rbx
nop
test byte [rax + 4], 3
jne 0x18009ce9d
mov ecx, dword [rax + 0x34]
test ecx, ecx
jg 0x18009cea8
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18009ce90
jmp 0x18009ceab
mov dword [rdx + 0x54], ecx
mov r9, qword [rbx + 0x18]
cmp byte [r9], 0x3b
jne 0x18009ceba
xor r15d, r15d
jmp 0x18009cec6
mov r15, qword [rbp + 8]
mov rbp, qword [r9 + 0x10]
mov r9, qword [r9 + 0x18]
cmp byte [rsi + 0x134], 2
mov r8, qword [rbp + 8]
jb 0x18009cf17
mov rax, qword [rsi + 0x1a0]
test rax, rax
je 0x18009cef3
nop
cmp qword [rax], r9
je 0x18009cef0
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x18009cee0
jmp 0x18009cef3
mov qword [rax], rbx
mov rcx, qword [rsi + 0x1a0]
test rcx, rcx
je 0x18009cf17
nop
cmp qword [rcx], rbp
je 0x18009cf10
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x18009cf00
jmp 0x18009cf17
lea rax, [rbx + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x28], rbx
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.18009b720
jmp 0x18009d745
mov rax, qword [rbx + 0x20]
xor r15d, r15d
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18009cf46
mov ebp, dword [rax]
jmp 0x18009cf49
mov ebp, r15d
mov rcx, qword [rsi]
lea rdx, [rdi + 0x28]
mov qword [rsp + 0x38], rdx
mov edx, dword [rdx]
and edx, 0x4001
mov dword [rsp + 0xe8], r15d
test dword [rbx + 4], 0x1000000
movzx eax, byte [rcx + 0x64]
mov byte [rsp + 0xd0], al
mov dword [rsp + 0x30], edx
je 0x18009cf8c
mov rdx, qword [rbx + 0x40]
mov qword [rsp + 0x40], rdx
cmp byte [rdx + 0x20], 0xa6
jne 0x18009cf91
mov qword [rsp + 0x40], r15
mov r14, qword [rbx + 8]
movzx r9d, al
mov rdx, r14
mov byte [rsp + 0x20], r15b
mov r8d, ebp
call fcn.1800c1090
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x18009cff0
movzx r9d, byte [rsp + 0xd0]
lea r8d, [rax - 2]
mov rcx, qword [rsi]
mov rdx, r14
mov byte [rsp + 0x20], r15b
call fcn.1800c1090
mov qword [rsp + 0x48], rax
mov r14, rax
test rax, rax
jne 0x18009cfe5
mov edx, r12d
jmp 0x18009d233
mov r8d, r12d
mov edx, r15d
jmp 0x18009d236
mov r14, qword [rsp + 0x48]
mov eax, r15d
cmp qword [r14 + 0x20], rax
setne al
test dword [r14 + 4], 0x400
mov dword [rsp + 0xe8], eax
je 0x18009d0e0
or dword [rbx + 4], 0x80000
cmp ebp, 2
jne 0x18009d0c9
mov rcx, qword [rsp + 0x50]
movsd xmm0, qword [0x18014dd90]
movsd qword [rsp + 0xd0], xmm0
mov rcx, qword [rcx + 0x28]
cmp byte [rcx], 0x99
je 0x18009d04c
mov dword [rbx + 0x2c], 0xffffffff
jmp 0x18009d0b2
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x18009d05a
mov eax, r15d
jmp 0x18009d06f
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r15b
jne 0x18009d061
and eax, 0x3fffffff
movzx r9d, r12b
lea rdx, [rsp + 0xd0]
mov r8d, eax
call fcn.18005f250
movsd xmm0, qword [rsp + 0xd0]
comisd xmm0, xmmword [0x18014dc40]
jbe 0x18009d09f
mov dword [rbx + 0x2c], 0xffffffff
jmp 0x18009d0b2
mulsd xmm0, qword [0x18014dcc8]
cvttsd2si eax, xmm0
mov dword [rbx + 0x2c], eax
test eax, eax
jns 0x18009d0e0
mov r8, rbx
lea rdx, str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
mov rcx, rsi
call fcn.18005ee20
inc dword [rdi + 0x24]
jmp 0x18009d0e0
mov rax, qword [r14 + 0x38]
mov ecx, 0x7800000
mov edx, 0x800000
cmp byte [rax], 0x75
cmove ecx, edx
mov dword [rbx + 0x2c], ecx
mov r9, qword [r14 + 0x38]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], r15
lea edx, [r8 + 0x1f]
call fcn.1800b42d0
test eax, eax
je 0x18009d121
cmp eax, r12d
jne 0x18009d116
mov r8, rbx
lea rdx, str.not_authorized_to_use_function:__T
mov rcx, rsi
call fcn.18005ee20
inc dword [rdi + 0x24]
mov byte [rbx], 0x79
mov eax, r12d
jmp 0x18009d745
mov eax, dword [r14 + 4]
test eax, 0x2800
je 0x18009d137
or dword [rbx + 4], 0x100000
mov eax, dword [r14 + 4]
bt eax, 0xb
jb 0x18009d1b3
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
test al, 0x2a
je 0x18009d1cf
lea rcx, str.partial_index_WHERE_clauses
test al, 0x20
je 0x18009d160
lea r9, str.index_expressions
jmp 0x18009d17a
test al, 4
je 0x18009d16d
lea r9, str.CHECK_constraints
jmp 0x18009d17a
test al, 8
lea r9, str.generated_columns
cmove r9, rcx
lea r8, str.non_deterministic_functions
mov rcx, rsi
lea rdx, str._s_prohibited_in__s
call fcn.18005ee20
mov rdx, qword [rsi]
mov rax, rbx
test byte [rax + 4], 3
jne 0x18009d1a3
mov ecx, dword [rax + 0x34]
test ecx, ecx
jg 0x18009d1ae
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18009d196
jmp 0x18009d1cf
mov dword [rdx + 0x54], ecx
jmp 0x18009d1cf
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx]
and al, 0x2e
mov byte [rbx + 2], al
test dword [rcx], 0x40000
je 0x18009d1cf
or dword [rbx + 4], 0x40000000
mov ecx, dword [r14 + 4]
bt ecx, 0x12
jae 0x18009d1f5
cmp byte [rsi + 0x1e], r15b
jne 0x18009d1f5
mov rax, qword [rsi]
test byte [rax + 0x2c], 0x20
jne 0x18009d1f5
mov edx, r12d
mov qword [rsp + 0x48], r15
mov r14, r15
jmp 0x18009d233
test ecx, 0x280000
je 0x18009d230
cmp byte [rsi + 0x134], 2
jae 0x18009d230
test dword [rbx + 4], 0x40000000
je 0x18009d230
bt ecx, 0x13
jb 0x18009d21e
mov rax, qword [rsi]
test byte [rax + 0x30], 0x80
jne 0x18009d230
mov r8, rbx
lea rdx, str.unsafe_use_of__T__
mov rcx, rsi
call fcn.18005ee20
mov edx, r15d
mov r8d, r15d
cmp byte [rsi + 0x134], 2
jae 0x18009d36b
mov rbp, qword [rsp + 0x40]
test r14, r14
je 0x18009d264
cmp qword [r14 + 0x28], r15
jne 0x18009d264
test rbp, rbp
je 0x18009d264
lea rdx, str._T___may_not_be_used_as_a_window_function
jmp 0x18009d2fb
mov ecx, dword [rsp + 0xe8]
test ecx, ecx
je 0x18009d2d6
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
test r12b, al
je 0x18009d297
test dword [r14 + 4], 0x10000
je 0x18009d28c
test rbp, rbp
je 0x18009d2ad
jmp 0x18009d291
test rbp, rbp
je 0x18009d2d6
bt eax, 0xe
jb 0x18009d2d6
test dword [r14 + 4], 0x10000
jne 0x18009d2ad
lea r8, str.aggregate
test rbp, rbp
je 0x18009d2b4
lea r8, str.window
mov r9, rbx
lea rdx, str.misuse_of__s_function__T__
mov rcx, rsi
call fcn.18005ee20
inc dword [rdi + 0x24]
mov dword [rsp + 0xe8], r15d
jmp 0x18009d382
test edx, edx
je 0x18009d2ef
mov rax, qword [rsi]
cmp byte [rax + 0xc5], r15b
jne 0x18009d2ef
lea rdx, str.no_such_function:__T
jmp 0x18009d2fb
test r8d, r8d
je 0x18009d32a
lea rdx, str.wrong_number_of_arguments_to_function__T__
mov r8, rbx
mov rcx, rsi
call fcn.18005ee20
inc dword [rdi + 0x24]
cmp dword [rsp + 0xe8], r15d
je 0x18009d382
mov rcx, qword [rsp + 0x38]
test rbp, rbp
mov eax, r15d
setne al
add eax, 0xffffbffe
and dword [rcx], eax
jmp 0x18009d382
test ecx, ecx
jne 0x18009d313
test dword [rbx + 4], 0x1000000
je 0x18009d34e
mov r8, rbx
lea rdx, str.FILTER_may_not_be_used_with_non_aggregate__T__
mov rcx, rsi
call fcn.18005ee20
inc dword [rdi + 0x24]
jmp 0x18009d382
cmp qword [rbx + 0x10], r15
je 0x18009d382
mov r8, rbx
lea rdx, str.ORDER_BY_may_not_be_used_with_non_aggregate__T__
mov rcx, rsi
call fcn.18005ee20
inc dword [rdi + 0x24]
jmp 0x18009d382
test dword [rbx + 4], 0x1000000
jne 0x18009d37a
cmp qword [rbx + 0x10], r15
je 0x18009d382
mov dword [rsp + 0xe8], r12d
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x18009d3b9
mov ebp, dword [rax]
lea r14, [rax + 8]
test ebp, ebp
jle 0x18009d3b9
nop word [rax + rax]
mov rdx, qword [r14]
mov rcx, r13
call fcn.18009adf0
test eax, eax
jne 0x18009d3b9
dec ebp
add r14, 0x20
test ebp, ebp
jg 0x18009d3a0
cmp dword [rsp + 0xe8], r15d
je 0x18009d567
mov r14, qword [rbx + 0x10]
test r14, r14
je 0x18009d3fd
mov r14, qword [r14 + 0x20]
test r14, r14
je 0x18009d3fd
mov ebp, dword [r14]
add r14, 8
test ebp, ebp
jle 0x18009d3fd
mov rdx, qword [r14]
mov rcx, r13
call fcn.18009adf0
test eax, eax
jne 0x18009d3fd
dec ebp
add r14, 0x20
test ebp, ebp
jg 0x18009d3e4
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x18009d4ce
cmp byte [rsi + 0x134], 2
mov rbp, qword [rdi + 0x30]
jae 0x18009d441
test rbp, rbp
je 0x18009d421
mov r15, qword [rbp + 0x78]
mov r9, qword [rsp + 0x48]
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.18010f250
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne case.0x18009ccd5.21
mov rdi, qword [r14 + 0x10]
test rdi, rdi
je 0x18009d46d
mov ebx, dword [rdi]
add rdi, 8
test ebx, ebx
jle 0x18009d46d
mov rdx, qword [rdi]
mov rcx, r13
call fcn.18009adf0
test eax, eax
jne 0x18009d46d
dec ebx
add rdi, 0x20
test ebx, ebx
jg 0x18009d454
mov rdi, qword [r14 + 0x18]
test rdi, rdi
je 0x18009d499
mov ebx, dword [rdi]
add rdi, 8
test ebx, ebx
jle 0x18009d499
mov rdx, qword [rdi]
mov rcx, r13
call fcn.18009adf0
test eax, eax
jne 0x18009d499
dec ebx
add rdi, 0x20
test ebx, ebx
jg 0x18009d480
mov rdx, qword [r14 + 0x48]
test rdx, rdx
je 0x18009d4aa
mov rcx, r13
call fcn.18009ad00
mov rdx, r14
mov rcx, rbp
call fcn.180110b20
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
or dword [rax], 0x8000
or dword [rax], ecx
mov eax, r12d
jmp 0x18009d745
test dword [rbx + 4], 0x1000000
mov byte [rbx], 0xa8
mov byte [rbx + 2], r15b
je 0x18009d500
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax + 0x48]
test rdx, rdx
je 0x18009d500
mov rcx, r13
call fcn.18009ad00
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rdi + 8]
mov rdx, rbx
mov rcx, rsi
call fcn.1800aa8c0
test eax, eax
jne 0x18009d538
movzx eax, byte [rdi + 0x2c]
inc al
add byte [rbx + 2], al
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x18009d500
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
or dword [rax], ecx
mov eax, r12d
jmp 0x18009d745
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18009d55c
movzx eax, byte [rdi + 0x2c]
add byte [rbx + 2], al
mov eax, dword [rcx + 4]
xor eax, 0xffffefff
and eax, 0x8001000
or eax, 0x10
or dword [rdi + 0x28], eax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
or dword [rax], ecx
mov eax, r12d
jmp 0x18009d745
test dword [rbx + 4], 0x1000
je case.0x18009ccd5.21
test byte [rdi + 0x28], 0x2e
mov ebp, dword [rdi + 0x20]
je 0x18009d5a1
mov r9, rbx
mov qword [rsp + 0x20], rbx
lea r8, str.subqueries
mov rdx, rdi
mov rcx, rsi
call fcn.18009cbe0
jmp 0x18009d5ad
mov rdx, qword [rbx + 0x20]
mov rcx, r13
call fcn.18009ae00
cmp ebp, dword [rdi + 0x20]
je 0x18009d5c1
mov rax, qword [rbx + 0x20]
or dword [rbx + 4], 0x40
or dword [rax + 4], 0x20000000
or dword [rdi + 0x28], 0x40
jmp case.0x18009ccd5.21
test byte [rdi + 0x28], 0x2e
je case.0x18009ccd5.21
mov r9, rbx
mov qword [rsp + 0x20], rbx
lea r8, str.parameters
mov rdx, rdi
mov rcx, rsi
call fcn.18009cbe0
jmp case.0x18009ccd5.21
mov rdi, qword [rbx + 0x18]
test rdi, rdi
je case.0x18009ccd5.48
nop dword [rax]
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x18009d650
bt eax, 0x13
jae 0x18009d61a
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
jmp 0x18009d623
cmp byte [rdi], 0x71
jne 0x18009d650
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x18009d600
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne case.0x18009ccd5.21
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rcx]
cmp al, 0xb0
jne 0x18009d644
movzx eax, byte [rcx + 2]
cmp al, 0xb1
jne 0x18009d68a
mov rax, qword [rcx + 0x20]
mov edx, dword [rax]
jmp 0x18009d69d
test rdi, rdi
je case.0x18009ccd5.48
movzx eax, byte [rdi]
cmp al, 0x3b
je 0x18009d660
cmp al, 0xaa
jne case.0x18009ccd5.48
mov rdx, rdi
mov rcx, r13
call fcn.18009cc80
cmp eax, 2
jne 0x18009d675
jmp 0x18009d745
cmp byte [rdi], 0xaa
jne case.0x18009ccd5.48
movzx eax, byte [rbx]
mov byte [rbx + 2], al
xor eax, eax
mov byte [rbx], 0xaf
jmp 0x18009d745
cmp al, 0x8a
jne 0x18009d69a
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
mov edx, dword [rcx]
jmp 0x18009d69d
mov edx, r12d
cmp byte [rbx], 0x30
jne 0x18009d6de
mov r8, qword [rbx + 0x20]
mov rcx, qword [r8 + 8]
movzx eax, byte [rcx]
cmp al, 0xb0
jne 0x18009d6b5
movzx eax, byte [rcx + 2]
cmp al, 0xb1
jne 0x18009d6c1
mov rax, qword [rcx + 0x20]
mov ecx, dword [rax]
jmp 0x18009d6d4
cmp al, 0x8a
jne 0x18009d6d1
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
mov ecx, dword [rcx]
jmp 0x18009d6d4
mov ecx, r12d
cmp ecx, edx
jne 0x18009d70e
mov rcx, qword [r8 + 0x28]
jmp 0x18009d6e2
mov rcx, qword [rbx + 0x18]
movzx eax, byte [rcx]
cmp al, 0xb0
jne 0x18009d6ed
movzx eax, byte [rcx + 2]
cmp al, 0xb1
jne 0x18009d6fa
mov rax, qword [rcx + 0x20]
mov r12d, dword [rax]
jmp 0x18009d709
cmp al, 0x8a
jne 0x18009d709
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 0x20]
mov r12d, dword [rcx]
cmp edx, r12d
je case.0x18009ccd5.21
lea rdx, str.row_value_misused
mov rcx, rsi
call fcn.18005ee20
mov rcx, qword [rsi]
test byte [rbx + 4], 3
jne 0x18009d72d
mov eax, dword [rbx + 0x34]
test eax, eax
jg 0x18009d738
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x18009d720
jmp case.0x18009ccd5.21
mov dword [rcx + 0x54], eax
mov eax, dword [rsi + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret