Function at 0x140174840
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.0x14017488b.21
lea rcx, [0x140000000]
cdqe
movzx eax, byte [rcx + rax + 0x17512c]
mov edx, dword [rcx + rax*4 + 0x175108]
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.0x14017488b.21
xor ebp, ebp
mov rdx, rdi
mov ecx, ebp
cmp rcx, 8
jge 0x1401748cf
mov eax, dword [rdx + 0x20]
mov rdx, qword [rdx + 0x18]
inc rcx
mov dword [rsp + rcx*4 + 0x64], eax
test rdx, rdx
jne 0x1401748b6
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1401748e0
mov rcx, r9
call fcn.1401e5240
mov rcx, qword [rbx + 0x10]
call fcn.14018cb80
test eax, eax
jne 0x140174951
cmp byte [rsi + 0x124], 2
jae 0x140174951
cmp byte [rbx], 0x33
jne 0x14017490b
or dword [rbx + 4], 0x10000000
lea rax, [0x14025452c]
jmp 0x140174919
or dword [rbx + 4], 0x20000000
lea rax, [0x140254554]
mov qword [rbx + 8], rax
mov byte [rbx], 0xaa
mov rdx, rbp
cmp rdx, 8
jge 0x14017493c
mov eax, dword [rsp + rdx*4 + 0x68]
inc rdx
mov dword [rdi + 0x20], eax
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140174923
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14017494d
mov rcx, qword [rsi]
call fcn.140190970
mov qword [rbx + 0x10], rbp
mov eax, 1
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp r8b, 0x3b
jne 0x140174976
mov r9, qword [rbx + 8]
xor ebp, ebp
mov r8d, ebp
jmp 0x140174a17
test byte [rdi + 0x28], 0x28
mov rdx, qword [rbx + 0x10]
mov qword [rsp + 0xc0], rdx
je 0x1401749aa
lea r8, str.the__.__operator
xor r9d, r9d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140168400
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rbx + 0x18]
cmp byte [rcx], 0x3b
jne 0x1401749b7
xor ebp, ebp
jmp 0x1401749c3
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 0x140174a17
mov rax, qword [rsi + 0x190]
test rax, rax
je 0x1401749f3
cmp qword [rax], rcx
je 0x1401749f0
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x1401749e0
jmp 0x1401749f3
mov qword [rax], rbx
mov rcx, qword [rsi + 0x190]
test rcx, rcx
je 0x140174a17
nop
cmp qword [rcx], rdx
je 0x140174a10
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140174a00
jmp 0x140174a17
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.140163b20
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 0x140174a4c
mov eax, dword [rax]
jmp 0x140174a4e
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 0x140174a95
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x48], rcx
cmp byte [rcx + 0x20], 0xa6
jne 0x140174a9a
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.140192c30
mov rcx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140174b0b
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.140192c30
mov rcx, rax
mov qword [rsp + 0x38], rax
test rax, rax
mov eax, 1
jne 0x140174b00
mov r8d, eax
jmp 0x140174d14
mov r9d, eax
mov r8d, ebp
jmp 0x140174d17
mov eax, ebp
cmp qword [rcx + 0x20], rax
setne al
test dword [rcx + 4], 0x400
mov dword [rsp + 0xd0], eax
je 0x140174beb
or dword [rbx + 4], 0x40000
cmp dword [rsp + 0x50], 2
jne 0x140174bd4
mov rcx, qword [rsp + 0x58]
movsd xmm0, qword [0x14025b7f0]
movsd qword [rsp + 0xc8], xmm0
mov rcx, qword [rcx + 0x28]
cmp byte [rcx], 0x99
je 0x140174b5f
or rax, 0xffffffffffffffff
jmp 0x140174bb6
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140174b6c
mov eax, ebp
jmp 0x140174b7e
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bpl
jne 0x140174b70
and eax, 0x3fffffff
lea rdx, [rsp + 0xc8]
mov r9b, 1
mov r8d, eax
call fcn.14017c9f0
movsd xmm2, qword [rsp + 0xc8]
comisd xmm2, xmmword [0x14023ec48]
jbe 0x140174baa
or rax, 0xffffffffffffffff
jmp 0x140174bb6
mulsd xmm2, qword [0x14025b798]
cvttsd2si eax, xmm2
mov dword [rbx + 0x2c], eax
test eax, eax
jns 0x140174beb
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.14018bbc0
inc dword [rdi + 0x24]
jmp 0x140174beb
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.14017d0e0
test eax, eax
je 0x140174c3a
cmp eax, 1
jne 0x140174c26
lea rdx, str.not_authorized_to_use_function:__T
mov r8, rbx
mov rcx, rsi
call fcn.14018bbc0
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 0x140174c4f
or dword [rbx + 4], 0x80000
test dword [rcx + 4], 0x800
jne 0x140174c83
mov rax, qword [rsp + 0x40]
test byte [rax], 0x2a
je 0x140174c9f
lea r8, str.non_deterministic_functions
xor r9d, r9d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140168400
mov rcx, qword [rsp + 0x38]
jmp 0x140174c9f
mov rdx, qword [rsp + 0x40]
movzx eax, byte [rdx]
and al, 0x2e
mov byte [rbx + 2], al
test dword [rdx], 0x40000
je 0x140174c9f
or dword [rbx + 4], 0x40000000
mov edx, dword [rcx + 4]
bt edx, 0x12
jae 0x140174ccc
cmp byte [rsi + 0x1e], bpl
jne 0x140174ccc
mov rax, qword [rsi]
test byte [rax + 0x2c], 0x20
jne 0x140174ccc
mov rcx, rbp
mov eax, 1
mov r8d, eax
mov qword [rsp + 0x38], rcx
mov r9d, ecx
jmp 0x140174d17
test edx, 0x280000
je 0x140174d0c
cmp byte [rsi + 0x124], 2
jae 0x140174d0c
test dword [rbx + 4], 0x40000000
je 0x140174d0c
bt edx, 0x13
jb 0x140174cf5
mov rax, qword [rsi]
test byte [rax + 0x30], 0x80
jne 0x140174d0c
lea rdx, str.unsafe_use_of__T__
mov r8, rbx
mov rcx, rsi
call fcn.14018bbc0
mov rcx, qword [rsp + 0x38]
mov eax, 1
mov r8d, ebp
mov r9d, ebp
cmp byte [rsi + 0x124], 2
jae 0x140174e35
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140174d45
cmp qword [rcx + 0x28], rbp
jne 0x140174d45
test rax, rax
je 0x140174d45
lea rdx, str._T___may_not_be_used_as_a_window_function
jmp 0x140174de1
mov edx, dword [rsp + 0xd0]
test edx, edx
je 0x140174dbb
mov rdx, qword [rsp + 0x40]
mov edx, dword [rdx]
test dl, 1
je 0x140174d77
test dword [rcx + 4], 0x10000
je 0x140174d6c
test rax, rax
je 0x140174d77
jmp 0x140174d71
test rax, rax
je 0x140174db4
bt edx, 0xe
jb 0x140174db4
test dword [rcx + 4], 0x10000
jne 0x140174d8c
lea r8, str.aggregate
test rax, rax
je 0x140174d93
lea r8, str.window
lea rdx, str.misuse_of__s_function__T__
mov r9, rbx
mov rcx, rsi
call fcn.14018bbc0
inc dword [rdi + 0x24]
mov dword [rsp + 0xd0], ebp
jmp 0x140174e4d
mov edx, dword [rsp + 0xd0]
test r8d, r8d
je 0x140174dd5
mov rax, qword [rsi]
cmp byte [rax + 0xc5], bpl
jne 0x140174dd5
lea rdx, str.no_such_function:__T
jmp 0x140174de1
test r9d, r9d
je 0x140174e11
lea rdx, str.wrong_number_of_arguments_to_function__T__
mov r8, rbx
mov rcx, rsi
call fcn.14018bbc0
inc dword [rdi + 0x24]
cmp dword [rsp + 0xd0], ebp
je 0x140174e4d
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 0x140174e4d
test edx, edx
jne 0x140174df8
test dword [rbx + 4], 0x1000000
je 0x140174e4d
lea rdx, str.FILTER_may_not_be_used_with_non_aggregate__T__
mov r8, rbx
mov rcx, rsi
call fcn.14018bbc0
inc dword [rdi + 0x24]
jmp 0x140174e4d
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.1401ce450
cmp dword [rsp + 0xd0], ebp
je 0x140174fa2
cmp qword [rsp + 0x48], rbp
je 0x140174f17
cmp byte [rsi + 0x124], 2
mov rbx, qword [rdi + 0x30]
jae 0x140174eb4
test rbx, rbx
je 0x140174e8d
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.1401d7110
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne case.0x14017488b.21
jmp 0x140174eb9
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0xc0]
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
call fcn.1401ce450
mov rdx, qword [rdi + 0x18]
mov rcx, rsi
call fcn.1401ce450
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x140174eea
mov rcx, rsi
call fcn.1401e5240
mov rdx, rdi
mov rcx, rbx
call fcn.1401d62d0
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 0x140174f41
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax + 0x48]
test rdx, rdx
je 0x140174f41
mov rcx, qword [rsp + 0xc0]
call fcn.1401e5240
mov r8, qword [rdi + 8]
mov rdx, rbx
mov rcx, rsi
call fcn.1401aee30
test eax, eax
jne 0x140174f7a
inc byte [rbx + 2]
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140174f41
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 0x140174f97
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.0x14017488b.21
test byte [rdi + 0x28], 0x2e
mov ebp, dword [rdi + 0x20]
je 0x140174fe5
lea r8, str.subqueries
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140168400
jmp 0x140174ff1
mov rdx, qword [rbx + 0x20]
mov rcx, r9
call fcn.1401ce4c0
cmp ebp, dword [rdi + 0x20]
je case.0x14017488b.21
or dword [rbx + 4], 0x20
or dword [rdi + 0x28], 0x40
jmp case.0x14017488b.21
test byte [rdi + 0x28], 0x2e
je case.0x14017488b.21
lea r8, str.parameters
mov r9, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call fcn.140168400
jmp case.0x14017488b.21
mov rcx, qword [rbx + 0x18]
call fcn.1401928e0
mov rdi, rax
test rax, rax
je case.0x14017488b.48
movzx eax, byte [rax]
cmp al, 0x3b
je 0x14017504c
cmp al, 0xaa
jne case.0x14017488b.48
mov rdx, rdi
mov rcx, r9
call fcn.140174840
cmp eax, 2
jne 0x140175068
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp byte [rdi], 0xaa
jne case.0x14017488b.48
movzx eax, byte [rbx]
mov byte [rbx], SQLSetStmtAttrW
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.0x14017488b.21
mov rcx, qword [rbx + 0x10]
call fcn.140192980
cmp byte [rbx], 0x30
mov edx, eax
jne 0x1401750b4
mov r8, qword [rbx + 0x20]
mov rcx, qword [r8 + 8]
call fcn.140192980
cmp eax, edx
jne 0x1401750c1
mov rcx, qword [r8 + 0x28]
jmp 0x1401750b8
mov rcx, qword [rbx + 0x18]
call fcn.140192980
cmp edx, eax
je case.0x14017488b.21
lea rdx, str.row_value_misused
mov rcx, rsi
call fcn.14018bbc0
mov rcx, qword [rsi]
test byte [rbx + 4], 1
jne 0x1401750df
cmp dword [rbx + 0x34], 0
jg 0x1401750ea
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401750d3
jmp case.0x14017488b.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