Function at 0x5982b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x6d6ec0]
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.0x5982f4.21
movzx eax, byte [eax + 0x598ccc]
jmp dword [eax*4 + 0x598ca8]
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.0x5982f4.21
xor ecx, ecx
mov edx, ebx
nop
cmp ecx, 8
jge 0x598334
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x5c], eax
inc ecx
test edx, edx
jne 0x598320
mov eax, dword [esi + 0xc]
test eax, eax
je 0x598348
push eax
push dword [esp + 0x28]
call fcn.005e1800
add esp, 8
cmp byte [edi + 0xdc], 2
jae 0x598b0e
push dword [esi + 0xc]
call fcn.005acb70
add esp, 4
test eax, eax
jne 0x598b0e
mov eax, ebx
nop word [eax + eax]
test dword [eax + 0x18], 0x100000
je 0x598b0e
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x598370
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 0x5983b4
mov eax, dword [esp + ecx*4 + 0x5c]
inc ecx
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x5983a0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5983c6
push eax
push dword [edi]
call fcn.005afab0
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.0061f478
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x59840f
push esi
push ebx
mov edx, esi
xor eax, eax
push edx
push eax
xor ecx, ecx
push ecx
push edi
call fcn.0058aab0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0061f478
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x18], 0x28
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
je 0x598432
push esi
push 0
push str.the__.__operator
push ebx
push edi
call fcn.0058e500
mov eax, dword [esp + 0x28]
add esp, 0x14
mov edx, dword [esi + 0x10]
cmp byte [edx], 0x3b
jne 0x59843e
xor ecx, ecx
jmp 0x59844b
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 0x598480
push edx
push esi
push edi
call fcn.005c6fc0
push dword [esp + 0x20]
lea eax, [esi + 0x2c]
push eax
push edi
call fcn.005c6fc0
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.0058aab0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0061f478
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x5984af
mov ecx, dword [eax]
jmp 0x5984b1
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 0x5984f0
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
cmp byte [eax + 0x10], 0xa6
jne 0x5984f8
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.005b1a60
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
test edx, edx
jne 0x59854c
push eax
push dword [esp + 0x38]
push 0xfffffffffffffffe
push dword [esp + 0x34]
push dword [edi]
call fcn.005b1a60
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 0x598713
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [esp + 0x1c], eax
je 0x598614
or dword [esi + 4], 0x80000
cmp dword [esp + 0x38], 2
jne 0x59865b
mov eax, dword [esp + 0x14]
movsd xmm0, qword [0x67bac0]
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0x1c]
cmp byte [eax], 0x99
je 0x59859a
mov dword [esi + 0x1c], 0xffffffff
jmp 0x5985fe
mov edx, dword [eax + 8]
test edx, edx
jne 0x5985a5
xor ecx, ecx
jmp 0x5985c1
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5985b0
sub ecx, dword [esp + 0x28]
and ecx, 0x3fffffff
push 1
push ecx
lea eax, [esp + 0x40]
push eax
push edx
call fcn.0059f380
movsd xmm0, qword [esp + 0x48]
add esp, 0x10
comisd xmm0, xmmword [0x6760b8]
jbe 0x5985eb
mov dword [esi + 0x1c], 0xffffffff
jmp 0x5985fe
mulsd xmm0, qword [0x6938a0]
cvttsd2si eax, xmm0
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x598610
push esi
push str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
push edi
call fcn.005abd70
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.005a05a0
add esp, 0x14
test eax, eax
je 0x598678
cmp eax, 1
jne 0x598641
push esi
push str.not_authorized_to_use_function:__T
push edi
call fcn.005abd70
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.0061f478
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 0x598614
mov edx, dword [esp + 0x10]
test dword [edx + 4], 0x2800
je 0x59868c
or dword [esi + 4], 0x100000
test dword [edx + 4], 0x800
jne 0x5986b3
test byte [ebx + 0x18], 0x2a
je 0x5986cb
push esi
push 0
push str.non_deterministic_functions
push ebx
push edi
call fcn.0058e500
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x5986cb
mov al, byte [ebx + 0x18]
and al, 0x2e
mov byte [esi + 2], al
test dword [ebx + 0x18], 0x40000
je 0x5986cb
or dword [esi + 4], 0x40000000
mov ecx, dword [edx + 4]
test ecx, 0x40000
je 0x5986f1
cmp byte [edi + 0x12], 0
jne 0x5986f1
mov eax, dword [edi]
test byte [eax + 0x18], 0x20
jne 0x5986f1
xor ecx, ecx
mov edx, 1
mov dword [esp + 0x10], ecx
jmp 0x598713
test ecx, 0x280000
je 0x59870d
cmp byte [edi + 0xdc], 2
jae 0x59870d
push edx
push esi
push edi
call fcn.005afd00
add esp, 0xc
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp byte [edi + 0xdc], 2
jae 0x59889f
mov eax, dword [esp + 0x20]
test ecx, ecx
je 0x5987c2
cmp dword [ecx + 0x18], 0
jne 0x5987c2
test eax, eax
je 0x5987c2
push esi
push str._T___may_not_be_used_as_a_window_function
push edi
call fcn.005abd70
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc dword [ebx + 0x14]
test ecx, ecx
je 0x5988b6
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.005e17b0
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x598793
push dword [eax + 0x14]
push dword [esp + 0x28]
call fcn.005e17b0
add esp, 8
cmp dword [esp + 0x20], 0
je 0x59895c
cmp byte [edi + 0xdc], 2
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
jae 0x5988f9
test eax, eax
je 0x5988d6
mov eax, dword [eax + 0x48]
jmp 0x5988d8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x598834
mov ecx, dword [ebx + 0x18]
test cl, 1
je 0x5987f5
mov edi, dword [esp + 0x10]
test dword [edi + 4], 0x10000
mov edi, dword [esp + 0x2c]
je 0x5987e9
test eax, eax
je 0x59880b
jmp 0x5987ed
test eax, eax
je 0x598830
test ecx, 0x4000
jne 0x598830
mov ecx, dword [esp + 0x10]
test dword [ecx + 4], 0x10000
jne 0x59880b
test eax, eax
mov eax, str.aggregate
je 0x598810
mov eax, str.window
push esi
push eax
push str.misuse_of__s_function__T__
push edi
call fcn.005abd70
add esp, 0x10
mov dword [esp + 0x1c], 0
inc dword [ebx + 0x14]
jmp 0x5988b6
mov ecx, dword [esp + 0x1c]
test edx, edx
je 0x59884e
mov eax, dword [edi]
cmp byte [eax + 0xb1], 0
jne 0x59884e
push esi
push str.no_such_function:__T
jmp 0x598744
cmp dword [esp + 0x18], 0
je 0x598860
push esi
push str.wrong_number_of_arguments_to_function__T__
jmp 0x598744
test ecx, ecx
jne 0x59875c
test dword [esi + 4], 0x1000000
je 0x598885
push esi
push str.FILTER_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.005abd70
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x5988b6
cmp dword [esi + 0xc], 0
je 0x5988b6
push esi
push str.ORDER_BY_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.005abd70
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x5988b6
test dword [esi + 4], 0x1000000
jne 0x59876d
cmp dword [esi + 0xc], 0
jne 0x59876d
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.005e17b0
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x598b0e
jmp 0x59877d
xor eax, eax
push dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push esi
push eax
push edi
call fcn.005e9bf0
mov eax, dword [edi]
add esp, 0x10
cmp byte [eax + 0x57], 0
jne case.0x5982f4.21
jmp 0x5988fd
mov esi, dword [esp + 0x20]
push dword [esi + 8]
mov edi, dword [esp + 0x28]
push edi
call fcn.005e17b0
push dword [esi + 0xc]
push edi
call fcn.005e17b0
mov eax, dword [esi + 0x28]
add esp, 0x10
test eax, eax
je 0x598927
push eax
push edi
call fcn.005e1800
add esp, 8
push esi
push dword [esp + 0x2c]
call fcn.005e9120
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.0061f478
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa8
mov byte [esi + 2], 0
je 0x598983
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x598983
push eax
push dword [esp + 0x28]
call fcn.005e1800
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], 0x57a380
mov dword [esp + 0x64], 0x59c180
mov dword [esp + 0x68], 0x59c2b0
test eax, eax
je 0x598a18
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x18], eax
test edi, edi
jle 0x598a18
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x598a0c
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.005e1800
add esp, 8
test eax, eax
jne 0x598a18
mov eax, dword [esp + 0x18]
dec edi
add eax, 0x14
mov dword [esp + 0x18], eax
test edi, edi
jg 0x5989f0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x598a5b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x598a5b
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x18], eax
test edi, edi
jle 0x598a5b
mov ecx, dword [eax]
test ecx, ecx
je 0x598a4f
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.005e1800
add esp, 8
test eax, eax
jne 0x598a5b
mov eax, dword [esp + 0x18]
dec edi
add eax, 0x14
mov dword [esp + 0x18], eax
test edi, edi
jg 0x598a33
test dword [esi + 4], 0x1000000
je 0x598a7c
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x598a7c
push eax
lea eax, [esp + 0x60]
push eax
call fcn.005e1800
add esp, 8
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x598a93
push eax
push dword [edi]
call fcn.005a9e10
add esp, 8
test byte [esp + 0x70], 1
jne 0x598adc
cmp word [esp + 0x70], 0
je 0x598adc
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 0x598990
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.0061f478
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
test edx, edx
je 0x598b04
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.0061f478
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000
je case.0x5982f4.21
test byte [ebx + 0x18], 0x2e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
je 0x598b52
push esi
push esi
push str.subqueries
push ebx
push edi
call fcn.0058e500
add esp, 0x14
jmp 0x598b5e
push dword [esi + 0x14]
push edx
call fcn.005e18c0
add esp, 8
mov eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x10]
je 0x598b75
mov eax, dword [esi + 0x14]
or dword [esi + 4], 0x40
or dword [eax + 4], 0x20000000
or dword [ebx + 0x18], 0x40
jmp case.0x5982f4.21
test byte [ebx + 0x18], 0x2e
je case.0x5982f4.21
push esi
push esi
push str.parameters
push ebx
push edi
call fcn.0058e500
add esp, 0x14
jmp case.0x5982f4.21
push dword [esi + 0x10]
call fcn.005b1750
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x5982f4.48
mov al, byte [ebx]
cmp al, 0x3b
je 0x598bb9
cmp al, 0xaa
jne case.0x5982f4.48
push ebx
push edx
call fcn.005982b0
add esp, 8
cmp eax, 2
jne 0x598bda
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0061f478
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 0xaa
jne case.0x5982f4.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.0061f478
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne case.0x5982f4.21
mov ecx, dword [esi + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x598c13
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x598c1e
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
jmp 0x598c31
cmp al, 0x8a
jne 0x598c2c
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
jmp 0x598c31
mov edx, 1
cmp byte [esi], 0x30
jne 0x598c4d
mov ebx, dword [esi + 0x14]
push dword [ebx + 8]
call fcn.005b1850
add esp, 4
cmp eax, edx
jne 0x598c5d
mov eax, dword [ebx + 0x1c]
jmp 0x598c50
mov eax, dword [esi + 0x10]
push eax
call fcn.005b1850
add esp, 4
cmp edx, eax
je case.0x5982f4.21
push str.row_value_misused
push edi
call fcn.005abd70
mov ecx, dword [edi]
add esp, 8
nop dword [eax]
test byte [esi + 4], 3
jne 0x598c7d
mov eax, dword [esi + 0x24]
test eax, eax
jg 0x598c86
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x598c70
jmp case.0x5982f4.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.0061f478
mov esp, ebp
pop ebp
ret