Function at 0x49d0f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x716f80]
xor eax, esp
mov dword [esp + 0x70], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [edx + 0x18]
push edi
mov dword [esp + 0x24], edx
mov cl, byte [esi]
mov edi, dword [ebx]
movzx eax, cl
add eax, 0xffffffec
mov dword [esp + 0x2c], edi
cmp eax, 0x98
ja case.0x49d134.21
movzx eax, byte [eax + 0x49db0c]
jmp dword [eax*4 + 0x49dae8]
mov ecx, dword [ebx + 4]
mov byte [esi], 0xa7
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
jmp case.0x49d134.21
xor ecx, ecx
mov edx, ebx
nop
cmp ecx, 8
jge 0x49d174
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x5c], eax
inc ecx
test edx, edx
jne 0x49d160
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49d188
push eax
push dword [esp + 0x28]
call fcn.004e6260
add esp, 8
cmp byte [edi + 0xdc], 2
jae 0x49d94e
push dword [esi + 0xc]
call fcn.004b1af0
add esp, 4
test eax, eax
jne 0x49d94e
mov eax, ebx
nop word [eax + eax]
test dword [eax + 0x18], 0x100000
je 0x49d94e
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x49d1b0
cmp byte [esi], 0x33
mov byte [esi], 0x9b
sete al
or dword [esi + 4], 0x800
mov dword [esi + 8], eax
xor ecx, ecx
nop dword [eax]
cmp ecx, 8
jge 0x49d1f4
mov eax, dword [esp + ecx*4 + 0x5c]
inc ecx
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x49d1e0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49d206
push eax
push dword [edi]
call fcn.004b4a30
add esp, 8
mov dword [esi + 0xc], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x49d24f
push esi
push ebx
mov edx, esi
xor eax, eax
push edx
push eax
xor ecx, ecx
push ecx
push edi
call fcn.0048f8d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x18], 0x28
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
je 0x49d272
push esi
push 0
push str.the__.__operator
push ebx
push edi
call fcn.00493340
mov eax, dword [esp + 0x28]
add esp, 0x14
mov edx, dword [esi + 0x10]
cmp byte [edx], 0x3b
jne 0x49d27e
xor ecx, ecx
jmp 0x49d28b
mov ecx, dword [eax + 8]
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x14], eax
cmp byte [edi + 0xdc], 2
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
jb 0x49d2c0
push edx
push esi
push edi
call fcn.004cbd20
push dword [esp + 0x20]
lea eax, [esi + 0x2c]
push eax
push edi
call fcn.004cbd20
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov eax, dword [esp + 0x18]
push esi
push ebx
push edx
push eax
push ecx
push edi
call fcn.0048f8d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x49d2ef
mov ecx, dword [eax]
jmp 0x49d2f1
xor ecx, ecx
mov edx, dword [edi]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov al, byte [edx + 0x54]
mov byte [esp + 0x34], al
mov eax, dword [ebx + 0x18]
and eax, 0x4001
test dword [esi + 4], 0x1000000
mov dword [esp + 0x30], eax
je 0x49d330
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
cmp byte [eax + 0x10], 0xa6
jne 0x49d338
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
push 0
push dword [esp + 0x38]
mov dword [esp + 0x30], eax
push ecx
push eax
push edx
call fcn.004b6960
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
test edx, edx
jne 0x49d38c
push eax
push dword [esp + 0x38]
push 0xfffffffffffffffe
push dword [esp + 0x34]
push dword [edi]
call fcn.004b6960
mov ecx, eax
xor edx, edx
add esp, 0x14
mov dword [esp + 0x10], ecx
test ecx, ecx
sete dl
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x18], eax
jmp 0x49d553
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [esp + 0x1c], eax
je 0x49d454
or dword [esi + 4], 0x80000
cmp dword [esp + 0x38], 2
jne 0x49d49b
mov eax, dword [esp + 0x14]
movsd xmm0, qword [0x68d170]
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0x1c]
cmp byte [eax], 0x99
je 0x49d3da
mov dword [esi + 0x1c], 0xffffffff
jmp 0x49d43e
mov edx, dword [eax + 8]
test edx, edx
jne 0x49d3e5
xor ecx, ecx
jmp 0x49d401
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49d3f0
sub ecx, dword [esp + 0x28]
and ecx, 0x3fffffff
push 1
push ecx
lea eax, [esp + 0x40]
push eax
push edx
call fcn.004a41e0
movsd xmm0, qword [esp + 0x48]
add esp, 0x10
comisd xmm0, xmmword [0x68d028]
jbe 0x49d42b
mov dword [esi + 0x1c], 0xffffffff
jmp 0x49d43e
mulsd xmm0, qword [0x68d0b0]
cvttsd2si eax, xmm0
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x49d450
push esi
push str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
push edi
call fcn.004b0ca0
add esp, 0xc
inc dword [ebx + 0x14]
mov edx, dword [esp + 0x10]
push 0
push dword [edx + 0x20]
push 0
push 0x1f
push edi
call fcn.004a53a0
add esp, 0x14
test eax, eax
je 0x49d4b8
cmp eax, 1
jne 0x49d481
push esi
push str.not_authorized_to_use_function:__T
push edi
call fcn.004b0ca0
add esp, 0xc
inc dword [ebx + 0x14]
mov byte [esi], 0x79
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x20]
mov ecx, 0x7800000
mov dword [esp + 0x28], 0x800000
cmp byte [eax], 0x75
cmove ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], ecx
jmp 0x49d454
mov edx, dword [esp + 0x10]
test dword [edx + 4], 0x2800
je 0x49d4cc
or dword [esi + 4], 0x100000
test dword [edx + 4], 0x800
jne 0x49d4f3
test byte [ebx + 0x18], 0x2a
je 0x49d50b
push esi
push 0
push str.non_deterministic_functions
push ebx
push edi
call fcn.00493340
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x49d50b
mov al, byte [ebx + 0x18]
and al, 0x2e
mov byte [esi + 2], al
test dword [ebx + 0x18], 0x40000
je 0x49d50b
or dword [esi + 4], 0x40000000
mov ecx, dword [edx + 4]
test ecx, 0x40000
je 0x49d531
cmp byte [edi + 0x12], 0
jne 0x49d531
mov eax, dword [edi]
test byte [eax + 0x18], 0x20
jne 0x49d531
xor ecx, ecx
mov edx, 1
mov dword [esp + 0x10], ecx
jmp 0x49d553
test ecx, 0x280000
je 0x49d54d
cmp byte [edi + 0xdc], 2
jae 0x49d54d
push edx
push esi
push edi
call fcn.004b4c80
add esp, 0xc
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp byte [edi + 0xdc], 2
jae 0x49d6df
mov eax, dword [esp + 0x20]
test ecx, ecx
je 0x49d602
cmp dword [ecx + 0x18], 0
jne 0x49d602
test eax, eax
je 0x49d602
push esi
push str._T___may_not_be_used_as_a_window_function
push edi
call fcn.004b0ca0
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc dword [ebx + 0x14]
test ecx, ecx
je 0x49d6f6
xor eax, eax
cmp dword [esp + 0x20], eax
setne al
add eax, 0xffffbffe
and dword [ebx + 0x18], eax
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.004e6210
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49d5d3
push dword [eax + 0x14]
push dword [esp + 0x28]
call fcn.004e6210
add esp, 8
cmp dword [esp + 0x20], 0
je 0x49d79c
cmp byte [edi + 0xdc], 2
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
jae 0x49d739
test eax, eax
je 0x49d716
mov eax, dword [eax + 0x48]
jmp 0x49d718
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x49d674
mov ecx, dword [ebx + 0x18]
test cl, 1
je 0x49d635
mov edi, dword [esp + 0x10]
test dword [edi + 4], 0x10000
mov edi, dword [esp + 0x2c]
je 0x49d629
test eax, eax
je 0x49d64b
jmp 0x49d62d
test eax, eax
je 0x49d670
test ecx, 0x4000
jne 0x49d670
mov ecx, dword [esp + 0x10]
test dword [ecx + 4], 0x10000
jne 0x49d64b
test eax, eax
mov eax, str.aggregate
je 0x49d650
mov eax, str.window
push esi
push eax
push str.misuse_of__s_function__T__
push edi
call fcn.004b0ca0
add esp, 0x10
mov dword [esp + 0x1c], 0
inc dword [ebx + 0x14]
jmp 0x49d6f6
mov ecx, dword [esp + 0x1c]
test edx, edx
je 0x49d68e
mov eax, dword [edi]
cmp byte [eax + 0xb1], 0
jne 0x49d68e
push esi
push str.no_such_function:__T
jmp 0x49d584
cmp dword [esp + 0x18], 0
je 0x49d6a0
push esi
push str.wrong_number_of_arguments_to_function__T__
jmp 0x49d584
test ecx, ecx
jne 0x49d59c
test dword [esi + 4], 0x1000000
je 0x49d6c5
push esi
push str.FILTER_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.004b0ca0
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x49d6f6
cmp dword [esi + 0xc], 0
je 0x49d6f6
push esi
push str.ORDER_BY_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.004b0ca0
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x49d6f6
test dword [esi + 4], 0x1000000
jne 0x49d5ad
cmp dword [esi + 0xc], 0
jne 0x49d5ad
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.004e6210
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x49d94e
jmp 0x49d5bd
xor eax, eax
push dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push esi
push eax
push edi
call fcn.004ee6a0
mov eax, dword [edi]
add esp, 0x10
cmp byte [eax + 0x57], 0
jne case.0x49d134.21
jmp 0x49d73d
mov esi, dword [esp + 0x20]
push dword [esi + 8]
mov edi, dword [esp + 0x28]
push edi
call fcn.004e6210
push dword [esi + 0xc]
push edi
call fcn.004e6210
mov eax, dword [esi + 0x28]
add esp, 0x10
test eax, eax
je 0x49d767
push eax
push edi
call fcn.004e6260
add esp, 8
push esi
push dword [esp + 0x2c]
call fcn.004edbe0
or dword [ebx + 0x18], 0x8000
add esp, 8
mov eax, dword [ebx + 0x18]
or eax, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa8
mov byte [esi + 2], 0
je 0x49d7c3
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x49d7c3
push eax
push dword [esp + 0x28]
call fcn.004e6260
add esp, 8
mov ecx, ebx
mov dword [esp + 0x14], ebx
nop dword [eax]
lea eax, [esp + 0x40]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x74], eax
xorps xmm0, xmm0
mov eax, dword [edi]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0x47f150
mov dword [esp + 0x64], 0x4a0fe0
mov dword [esp + 0x68], 0x4a1110
test eax, eax
je 0x49d858
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x18], eax
test edi, edi
jle 0x49d858
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x49d84c
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.004e6260
add esp, 8
test eax, eax
jne 0x49d858
mov eax, dword [esp + 0x18]
dec edi
add eax, 0x14
mov dword [esp + 0x18], eax
test edi, edi
jg 0x49d830
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49d89b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49d89b
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x18], eax
test edi, edi
jle 0x49d89b
mov ecx, dword [eax]
test ecx, ecx
je 0x49d88f
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.004e6260
add esp, 8
test eax, eax
jne 0x49d89b
mov eax, dword [esp + 0x18]
dec edi
add eax, 0x14
mov dword [esp + 0x18], eax
test edi, edi
jg 0x49d873
test dword [esi + 4], 0x1000000
je 0x49d8bc
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x49d8bc
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004e6260
add esp, 8
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x49d8d3
push eax
push dword [edi]
call fcn.004aecf0
add esp, 8
test byte [esp + 0x70], 1
jne 0x49d91c
cmp word [esp + 0x70], 0
je 0x49d91c
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x1c]
inc al
add byte [esi + 2], al
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x49d7d0
mov eax, dword [ebx + 0x18]
or eax, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
test edx, edx
je 0x49d944
mov ecx, dword [esp + 0x14]
mov al, byte [esi + 2]
add al, byte [ecx + 0x1c]
mov byte [esi + 2], al
mov eax, dword [edx + 4]
xor eax, 0xffffefff
and eax, 0x8001000
or eax, 0x10
or dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x18]
or eax, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000
je case.0x49d134.21
test byte [ebx + 0x18], 0x2e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
je 0x49d992
push esi
push esi
push str.subqueries
push ebx
push edi
call fcn.00493340
add esp, 0x14
jmp 0x49d99e
push dword [esi + 0x14]
push edx
call fcn.004e6320
add esp, 8
mov eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x10]
je 0x49d9b5
mov eax, dword [esi + 0x14]
or dword [esi + 4], 0x40
or dword [eax + 4], 0x20000000
or dword [ebx + 0x18], 0x40
jmp case.0x49d134.21
test byte [ebx + 0x18], 0x2e
je case.0x49d134.21
push esi
push esi
push str.parameters
push ebx
push edi
call fcn.00493340
add esp, 0x14
jmp case.0x49d134.21
push dword [esi + 0x10]
call fcn.004b66d0
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x49d134.48
mov al, byte [ebx]
cmp al, 0x3b
je 0x49d9f9
cmp al, 0xaa
jne case.0x49d134.48
push ebx
push edx
call fcn.0049d0f0
add esp, 8
cmp eax, 2
jne 0x49da1a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 0xaa
jne case.0x49d134.48
mov al, byte [esi]
mov byte [esi + 2], al
xor eax, eax
mov byte [esi], 0xaf
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0065469c
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne case.0x49d134.21
mov ecx, dword [esi + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x49da53
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x49da5e
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
jmp 0x49da71
cmp al, 0x8a
jne 0x49da6c
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
jmp 0x49da71
mov edx, 1
cmp byte [esi], 0x30
jne 0x49da8d
mov ebx, dword [esi + 0x14]
push dword [ebx + 8]
call fcn.004b67d0
add esp, 4
cmp eax, edx
jne 0x49da9d
mov eax, dword [ebx + 0x1c]
jmp 0x49da90
mov eax, dword [esi + 0x10]
push eax
call fcn.004b67d0
add esp, 4
cmp edx, eax
je case.0x49d134.21
push str.row_value_misused
push edi
call fcn.004b0ca0
mov ecx, dword [edi]
add esp, 8
nop dword [eax]
test byte [esi + 4], 3
jne 0x49dabd
mov eax, dword [esi + 0x24]
test eax, eax
jg 0x49dac6
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x49dab0
jmp case.0x49d134.21
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x7c]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
and eax, 2
call fcn.0065469c
mov esp, ebp
pop ebp
ret