Function at 0x4e1510
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [edx + 0x18]
mov cl, byte [esi]
movzx eax, cl
mov ebx, dword [edi]
add eax, 0xffffffec
cmp eax, 0x98
ja case.0x4e153e.21
movzx eax, byte [eax + 0x4e1c28]
jmp dword [eax*4 + 0x4e1c04]
mov ecx, dword [edi + 4]
mov byte [esi], 0xa7
pop edi
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x34]
dec word [esi + 0x20]
mov dword [esi + 0x1c], eax
mov byte [esi + 1], 0x44
mov eax, dword [ebx + 0x24]
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 2
pop ebx
add esp, 0x40
ret
xor ecx, ecx
mov edx, edi
cmp ecx, 8
jge 0x4e1589
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x30], eax
inc ecx
test edx, edx
jne 0x4e1575
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4e159d
push eax
push dword [esp + 0x58]
call fcn.0053a2d0
add esp, 8
push dword [esi + 0xc]
call fcn.004f3d60
add esp, 4
test eax, eax
jne 0x4e160d
cmp byte [ebx + 0xd0], 2
jae 0x4e160d
cmp byte [esi], 0x33
jne 0x4e15ca
or dword [esi + 4], 0x10000000
mov dword [esi + 8], str.true
jmp 0x4e15d8
or dword [esi + 4], 0x20000000
mov dword [esi + 8], str.false
mov byte [esi], 0xaa
xor ecx, ecx
lea ecx, [ecx]
cmp ecx, 8
jge 0x4e15f4
mov eax, dword [esp + ecx*4 + 0x30]
inc ecx
mov dword [edi + 0x10], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4e15e0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4e1606
push eax
push dword [ebx]
call fcn.004f6c70
add esp, 8
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
cmp cl, 0x3b
jne 0x4e163c
mov eax, dword [esi + 8]
xor ecx, ecx
push esi
push edi
push eax
push ecx
xor edx, edx
push edx
push ebx
call fcn.004d3d30
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test byte [edi + 0x18], 0x28
mov ebp, dword [esi + 0xc]
je 0x4e1657
push esi
push 0
push str.the__.__operator
push edi
push ebx
call fcn.004d7990
add esp, 0x14
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x3b
jne 0x4e1663
xor edx, edx
jmp 0x4e166c
mov edx, dword [ebp + 8]
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp byte [ebx + 0xd0], 2
mov esi, dword [eax + 8]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x24], ecx
jb 0x4e16a1
push eax
push esi
push ebx
call fcn.0050fca0
push ebp
lea eax, [esi + 0x2c]
push eax
push ebx
call fcn.0050fca0
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov eax, dword [esp + 0x54]
push esi
push edi
push eax
push ecx
push edx
push ebx
call fcn.004d3d30
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4e16ca
mov edx, dword [eax]
jmp 0x4e16cc
xor edx, edx
mov ebp, dword [ebx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0
mov al, byte [ebp + 0x54]
mov byte [esp + 0x18], al
lea eax, [edi + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
and eax, 0x4001
test dword [esi + 4], 0x1000000
mov dword [esp + 0x2c], eax
je 0x4e1711
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
cmp byte [eax + 0x10], 0xa6
jne 0x4e1717
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 8]
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x30], eax
push edx
push eax
push ebp
call fcn.004f8880
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4e1765
push eax
push dword [esp + 0x1c]
push 0xfffffffffffffffe
push dword [esp + 0x34]
push dword [ebx]
call fcn.004f8880
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4e1758
lea edx, [eax + 1]
jmp 0x4e189a
mov dword [esp + 0x20], 1
jmp 0x4e1898
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
test dword [ebp + 4], 0x400
mov dword [esp + 0x58], eax
je 0x4e17cd
or dword [esi + 4], 0x40000
cmp dword [esp + 0x1c], 2
jne 0x4e17b2
mov eax, dword [esp + 0x24]
push dword [eax + 0x1c]
call fcn.004b8aa0
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x4e17cd
push esi
push str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
push ebx
call fcn.004f3220
add esp, 0xc
inc dword [edi + 0x14]
jmp 0x4e17cd
mov eax, dword [ebp + 0x20]
xor ecx, ecx
cmp byte [eax], 0x75
setne cl
dec ecx
and ecx, 0xf9000000
add ecx, 0x7800000
mov dword [esi + 0x1c], ecx
push 0
push dword [ebp + 0x20]
push 0
push 0x1f
push ebx
call fcn.004e7a40
add esp, 0x14
test eax, eax
je 0x4e180a
cmp eax, 1
jne 0x4e17fa
push esi
push str.not_authorized_to_use_function:__T
push ebx
call fcn.004f3220
add esp, 0xc
inc dword [edi + 0x14]
pop edi
mov byte [esi], 0x79
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test dword [ebp + 4], 0x2800
je 0x4e181a
or dword [esi + 4], 0x80000
test dword [ebp + 4], 0x800
jne 0x4e1840
mov eax, dword [esp + 0x10]
test byte [eax], 0x2a
je 0x4e185a
push esi
push 0
push str.non_deterministic_functions
push edi
push ebx
call fcn.004d7990
add esp, 0x14
jmp 0x4e185a
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
and al, 0x2e
mov byte [esi + 2], al
test dword [ecx], 0x40000
je 0x4e185a
or dword [esi + 4], 0x40000000
mov ecx, dword [ebp + 4]
test ecx, 0x40000
je 0x4e187c
cmp byte [ebx + 0x12], 0
jne 0x4e187c
mov eax, dword [ebx]
test byte [eax + 0x18], 0x20
jne 0x4e187c
mov edx, 1
xor ebp, ebp
jmp 0x4e189a
test ecx, 0x280000
je 0x4e1898
cmp byte [ebx + 0xd0], 2
jae 0x4e1898
push ebp
push esi
push ebx
call fcn.004f6ed0
add esp, 0xc
xor edx, edx
cmp byte [ebx + 0xd0], 2
jae 0x4e199f
mov eax, dword [esp + 0x14]
test ebp, ebp
je 0x4e18c4
cmp dword [ebp + 0x18], 0
jne 0x4e18c4
test eax, eax
je 0x4e18c4
push esi
push str._T___may_not_be_used_as_a_window_function
jmp 0x4e1951
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4e192d
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
test cl, 1
je 0x4e18f2
test dword [ebp + 4], 0x10000
je 0x4e18e6
test eax, eax
je 0x4e18f2
jmp 0x4e18ea
test eax, eax
je 0x4e1929
test ecx, 0x4000
jne 0x4e1929
test dword [ebp + 4], 0x10000
jne 0x4e1904
test eax, eax
mov eax, str.aggregate
je 0x4e1909
mov eax, str.window
push esi
push eax
push str.misuse_of__s_function__T__
push ebx
call fcn.004f3220
add esp, 0x10
mov dword [esp + 0x58], 0
inc dword [edi + 0x14]
jmp 0x4e19b0
mov ecx, dword [esp + 0x58]
test edx, edx
je 0x4e1944
mov eax, dword [ebx]
cmp byte [eax + 0xb1], 0
jne 0x4e1944
push esi
push str.no_such_function:__T
jmp 0x4e1951
cmp dword [esp + 0x20], 0
je 0x4e197e
push esi
push str.wrong_number_of_arguments_to_function__T__
push ebx
call fcn.004f3220
inc dword [edi + 0x14]
add esp, 0xc
cmp dword [esp + 0x58], 0
je 0x4e19b0
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
sete al
or eax, 0x4000
not eax
and dword [ecx], eax
jmp 0x4e19b0
test ecx, ecx
jne 0x4e1964
test dword [esi + 4], 0x1000000
je 0x4e19b0
push esi
push str.FILTER_may_not_be_used_with_non_aggregate__T__
push ebx
call fcn.004f3220
add esp, 0xc
inc dword [edi + 0x14]
jmp 0x4e19b0
test dword [esi + 4], 0x1000000
je 0x4e19b0
mov dword [esp + 0x58], 1
push dword [esp + 0x24]
push dword [esp + 0x58]
call fcn.00528940
add esp, 8
cmp dword [esp + 0x58], 0
je 0x4e1ac1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e1a4c
cmp byte [ebx + 0xd0], 2
mov esi, dword [edi + 0x1c]
jae 0x4e1a02
test esi, esi
je 0x4e19e8
mov ecx, dword [esi + 0x48]
jmp 0x4e19ea
xor ecx, ecx
push ebp
push eax
push ecx
push ebx
call fcn.0052f640
mov eax, dword [ebx]
add esp, 0x10
cmp byte [eax + 0x57], 0
jne case.0x4e153e.21
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x54]
push dword [ebx + 8]
push ebp
call fcn.00528940
push dword [ebx + 0xc]
push ebp
call fcn.00528940
push dword [ebx + 0x28]
push ebp
call fcn.00528920
push ebx
push esi
call fcn.0052eca0
mov eax, dword [esp + 0x30]
add esp, 0x20
mov ecx, dword [esp + 0x2c]
or dword [eax], 0x8000
or dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa8
mov byte [esi + 2], 0
je 0x4e1a70
mov eax, dword [esi + 0x2c]
push dword [eax + 0x28]
push dword [esp + 0x58]
call fcn.00528920
add esp, 8
mov edi, edi
push dword [edi + 4]
push esi
push ebx
call fcn.0050f1d0
add esp, 0xc
test eax, eax
jne 0x4e1aa0
inc byte [esi + 2]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4e1a70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
or dword [eax], ecx
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test ebp, ebp
je 0x4e1ab7
mov eax, dword [ebp + 4]
xor eax, 0xffffefff
and eax, 0x8001000
or eax, 0x10
or dword [edi + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
or dword [eax], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
test dword [esi + 4], 0x800
je case.0x4e153e.21
test byte [edi + 0x18], 0x2e
mov ebp, dword [edi + 0x10]
je 0x4e1af7
push esi
push esi
push str.subqueries
push edi
push ebx
call fcn.004d7990
add esp, 0x14
jmp 0x4e1b03
push dword [esi + 0x14]
push edx
call fcn.00528990
add esp, 8
cmp ebp, dword [edi + 0x10]
je case.0x4e153e.21
or dword [esi + 4], 0x20
or dword [edi + 0x18], 0x40
mov eax, dword [ebx + 0x24]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 2
pop ebx
add esp, 0x40
ret
test byte [edi + 0x18], 0x2e
je case.0x4e153e.21
push esi
push esi
push str.parameters
push edi
push ebx
call fcn.004d7990
mov eax, dword [ebx + 0x24]
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
pop ebp
and eax, 2
pop ebx
add esp, 0x40
ret
push dword [esi + 0x10]
call fcn.004f86b0
mov edi, eax
add esp, 4
test edi, edi
je case.0x4e153e.48
mov al, byte [edi]
cmp al, 0x3b
je 0x4e1b6e
cmp al, 0xaa
jne case.0x4e153e.48
push edi
push edx
call fcn.004e1510
add esp, 8
cmp eax, 2
jne 0x4e1b85
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp byte [edi], 0xaa
jne case.0x4e153e.48
mov al, byte [esi]
pop edi
mov byte [esi + 2], al
xor eax, eax
mov byte [esi], 0xaf
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
jne case.0x4e153e.21
push dword [esi + 0xc]
call fcn.004f8750
add esp, 4
mov edx, eax
cmp byte [esi], 0x30
jne 0x4e1bcd
mov edi, dword [esi + 0x14]
push dword [edi + 8]
call fcn.004f8750
add esp, 4
cmp eax, edx
jne 0x4e1bdc
push dword [edi + 0x1c]
jmp 0x4e1bd0
push dword [esi + 0x10]
call fcn.004f8750
add esp, 4
cmp edx, eax
je case.0x4e153e.21
push str.row_value_misused
push ebx
call fcn.004f3220
push esi
push dword [ebx]
call fcn.0050f1a0
add esp, 0x10
mov eax, dword [ebx + 0x24]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 2
pop ebx
add esp, 0x40
ret