Function at 0x5979d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x6d5ec0]
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.0x597a14.21
movzx eax, byte [eax + 0x5983ec]
jmp dword [eax*4 + 0x5983c8]
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.0x597a14.21
xor ecx, ecx
mov edx, ebx
nop
cmp ecx, 8
jge 0x597a54
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x5c], eax
inc ecx
test edx, edx
jne 0x597a40
mov eax, dword [esi + 0xc]
test eax, eax
je 0x597a68
push eax
push dword [esp + 0x28]
call fcn.005e0f60
add esp, 8
cmp byte [edi + 0xdc], 2
jae 0x59822e
push dword [esi + 0xc]
call fcn.005ac2e0
add esp, 4
test eax, eax
jne 0x59822e
mov eax, ebx
nop word [eax + eax]
test dword [eax + 0x18], 0x100000
je 0x59822e
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x597a90
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 0x597ad4
mov eax, dword [esp + ecx*4 + 0x5c]
inc ecx
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x597ac0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x597ae6
push eax
push dword [edi]
call fcn.005af220
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.0061eb08
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x597b2f
push esi
push ebx
mov edx, esi
xor eax, eax
push edx
push eax
xor ecx, ecx
push ecx
push edi
call fcn.0058a1c0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0061eb08
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x18], 0x28
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
je 0x597b52
push esi
push 0
push str.the__.__operator
push ebx
push edi
call fcn.0058dc10
mov eax, dword [esp + 0x28]
add esp, 0x14
mov edx, dword [esi + 0x10]
cmp byte [edx], 0x3b
jne 0x597b5e
xor ecx, ecx
jmp 0x597b6b
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 0x597ba0
push edx
push esi
push edi
call fcn.005c6730
push dword [esp + 0x20]
lea eax, [esi + 0x2c]
push eax
push edi
call fcn.005c6730
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.0058a1c0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0061eb08
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x597bcf
mov ecx, dword [eax]
jmp 0x597bd1
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 0x597c10
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
cmp byte [eax + 0x10], 0xa6
jne 0x597c18
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.005b11d0
mov edx, eax
add esp, 0x14
mov dword [esp + 0x10], edx
test edx, edx
jne 0x597c6c
push eax
push dword [esp + 0x38]
push 0xfffffffffffffffe
push dword [esp + 0x34]
push dword [edi]
call fcn.005b11d0
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 0x597e33
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [esp + 0x1c], eax
je 0x597d34
or dword [esi + 4], 0x80000
cmp dword [esp + 0x38], 2
jne 0x597d7b
mov eax, dword [esp + 0x14]
movsd xmm0, qword [0x67aac0]
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0x1c]
cmp byte [eax], 0x99
je 0x597cba
mov dword [esi + 0x1c], 0xffffffff
jmp 0x597d1e
mov edx, dword [eax + 8]
test edx, edx
jne 0x597cc5
xor ecx, ecx
jmp 0x597ce1
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x597cd0
sub ecx, dword [esp + 0x28]
and ecx, 0x3fffffff
push 1
push ecx
lea eax, [esp + 0x40]
push eax
push edx
call fcn.0059eaf0
movsd xmm0, qword [esp + 0x48]
add esp, 0x10
comisd xmm0, xmmword [0x6750b8]
jbe 0x597d0b
mov dword [esi + 0x1c], 0xffffffff
jmp 0x597d1e
mulsd xmm0, qword [0x6928a0]
cvttsd2si eax, xmm0
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x597d30
push esi
push str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
push edi
call fcn.005ab4e0
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.0059fd10
add esp, 0x14
test eax, eax
je 0x597d98
cmp eax, 1
jne 0x597d61
push esi
push str.not_authorized_to_use_function:__T
push edi
call fcn.005ab4e0
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.0061eb08
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 0x597d34
mov edx, dword [esp + 0x10]
test dword [edx + 4], 0x2800
je 0x597dac
or dword [esi + 4], 0x100000
test dword [edx + 4], 0x800
jne 0x597dd3
test byte [ebx + 0x18], 0x2a
je 0x597deb
push esi
push 0
push str.non_deterministic_functions
push ebx
push edi
call fcn.0058dc10
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x597deb
mov al, byte [ebx + 0x18]
and al, 0x2e
mov byte [esi + 2], al
test dword [ebx + 0x18], 0x40000
je 0x597deb
or dword [esi + 4], 0x40000000
mov ecx, dword [edx + 4]
test ecx, 0x40000
je 0x597e11
cmp byte [edi + 0x12], 0
jne 0x597e11
mov eax, dword [edi]
test byte [eax + 0x18], 0x20
jne 0x597e11
xor ecx, ecx
mov edx, 1
mov dword [esp + 0x10], ecx
jmp 0x597e33
test ecx, 0x280000
je 0x597e2d
cmp byte [edi + 0xdc], 2
jae 0x597e2d
push edx
push esi
push edi
call fcn.005af470
add esp, 0xc
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp byte [edi + 0xdc], 2
jae 0x597fbf
mov eax, dword [esp + 0x20]
test ecx, ecx
je 0x597ee2
cmp dword [ecx + 0x18], 0
jne 0x597ee2
test eax, eax
je 0x597ee2
push esi
push str._T___may_not_be_used_as_a_window_function
push edi
call fcn.005ab4e0
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc dword [ebx + 0x14]
test ecx, ecx
je 0x597fd6
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.005e0f10
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x597eb3
push dword [eax + 0x14]
push dword [esp + 0x28]
call fcn.005e0f10
add esp, 8
cmp dword [esp + 0x20], 0
je 0x59807c
cmp byte [edi + 0xdc], 2
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
jae 0x598019
test eax, eax
je 0x597ff6
mov eax, dword [eax + 0x48]
jmp 0x597ff8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x597f54
mov ecx, dword [ebx + 0x18]
test cl, 1
je 0x597f15
mov edi, dword [esp + 0x10]
test dword [edi + 4], 0x10000
mov edi, dword [esp + 0x2c]
je 0x597f09
test eax, eax
je 0x597f2b
jmp 0x597f0d
test eax, eax
je 0x597f50
test ecx, 0x4000
jne 0x597f50
mov ecx, dword [esp + 0x10]
test dword [ecx + 4], 0x10000
jne 0x597f2b
test eax, eax
mov eax, str.aggregate
je 0x597f30
mov eax, str.window
push esi
push eax
push str.misuse_of__s_function__T__
push edi
call fcn.005ab4e0
add esp, 0x10
mov dword [esp + 0x1c], 0
inc dword [ebx + 0x14]
jmp 0x597fd6
mov ecx, dword [esp + 0x1c]
test edx, edx
je 0x597f6e
mov eax, dword [edi]
cmp byte [eax + 0xb1], 0
jne 0x597f6e
push esi
push str.no_such_function:__T
jmp 0x597e64
cmp dword [esp + 0x18], 0
je 0x597f80
push esi
push str.wrong_number_of_arguments_to_function__T__
jmp 0x597e64
test ecx, ecx
jne 0x597e7c
test dword [esi + 4], 0x1000000
je 0x597fa5
push esi
push str.FILTER_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.005ab4e0
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x597fd6
cmp dword [esi + 0xc], 0
je 0x597fd6
push esi
push str.ORDER_BY_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.005ab4e0
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x597fd6
test dword [esi + 4], 0x1000000
jne 0x597e8d
cmp dword [esi + 0xc], 0
jne 0x597e8d
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.005e0f10
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x59822e
jmp 0x597e9d
xor eax, eax
push dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push esi
push eax
push edi
call fcn.005e9350
mov eax, dword [edi]
add esp, 0x10
cmp byte [eax + 0x57], 0
jne case.0x597a14.21
jmp 0x59801d
mov esi, dword [esp + 0x20]
push dword [esi + 8]
mov edi, dword [esp + 0x28]
push edi
call fcn.005e0f10
push dword [esi + 0xc]
push edi
call fcn.005e0f10
mov eax, dword [esi + 0x28]
add esp, 0x10
test eax, eax
je 0x598047
push eax
push edi
call fcn.005e0f60
add esp, 8
push esi
push dword [esp + 0x2c]
call fcn.005e8880
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.0061eb08
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa8
mov byte [esi + 2], 0
je 0x5980a3
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x5980a3
push eax
push dword [esp + 0x28]
call fcn.005e0f60
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], 0x579ab0
mov dword [esp + 0x64], 0x59b8a0
mov dword [esp + 0x68], 0x59b9d0
test eax, eax
je 0x598138
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x18], eax
test edi, edi
jle 0x598138
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x59812c
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.005e0f60
add esp, 8
test eax, eax
jne 0x598138
mov eax, dword [esp + 0x18]
dec edi
add eax, 0x14
mov dword [esp + 0x18], eax
test edi, edi
jg 0x598110
mov eax, dword [esi + 0xc]
test eax, eax
je 0x59817b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x59817b
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x18], eax
test edi, edi
jle 0x59817b
mov ecx, dword [eax]
test ecx, ecx
je 0x59816f
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.005e0f60
add esp, 8
test eax, eax
jne 0x59817b
mov eax, dword [esp + 0x18]
dec edi
add eax, 0x14
mov dword [esp + 0x18], eax
test edi, edi
jg 0x598153
test dword [esi + 4], 0x1000000
je 0x59819c
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x59819c
push eax
lea eax, [esp + 0x60]
push eax
call fcn.005e0f60
add esp, 8
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x5981b3
push eax
push dword [edi]
call fcn.005a9580
add esp, 8
test byte [esp + 0x70], 1
jne 0x5981fc
cmp word [esp + 0x70], 0
je 0x5981fc
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 0x5980b0
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.0061eb08
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
test edx, edx
je 0x598224
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.0061eb08
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000
je case.0x597a14.21
test byte [ebx + 0x18], 0x2e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
je 0x598272
push esi
push esi
push str.subqueries
push ebx
push edi
call fcn.0058dc10
add esp, 0x14
jmp 0x59827e
push dword [esi + 0x14]
push edx
call fcn.005e1020
add esp, 8
mov eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x10]
je 0x598295
mov eax, dword [esi + 0x14]
or dword [esi + 4], 0x40
or dword [eax + 4], 0x20000000
or dword [ebx + 0x18], 0x40
jmp case.0x597a14.21
test byte [ebx + 0x18], 0x2e
je case.0x597a14.21
push esi
push esi
push str.parameters
push ebx
push edi
call fcn.0058dc10
add esp, 0x14
jmp case.0x597a14.21
push dword [esi + 0x10]
call fcn.005b0ec0
mov ebx, eax
add esp, 4
test ebx, ebx
je case.0x597a14.48
mov al, byte [ebx]
cmp al, 0x3b
je 0x5982d9
cmp al, 0xaa
jne case.0x597a14.48
push ebx
push edx
call fcn.005979d0
add esp, 8
cmp eax, 2
jne 0x5982fa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0061eb08
mov esp, ebp
pop ebp
ret
cmp byte [ebx], 0xaa
jne case.0x597a14.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.0061eb08
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne case.0x597a14.21
mov ecx, dword [esi + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x598333
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x59833e
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
jmp 0x598351
cmp al, 0x8a
jne 0x59834c
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
jmp 0x598351
mov edx, 1
cmp byte [esi], 0x30
jne 0x59836d
mov ebx, dword [esi + 0x14]
push dword [ebx + 8]
call fcn.005b0fc0
add esp, 4
cmp eax, edx
jne 0x59837d
mov eax, dword [ebx + 0x1c]
jmp 0x598370
mov eax, dword [esi + 0x10]
push eax
call fcn.005b0fc0
add esp, 4
cmp edx, eax
je case.0x597a14.21
push str.row_value_misused
push edi
call fcn.005ab4e0
mov ecx, dword [edi]
add esp, 8
nop dword [eax]
test byte [esi + 4], 3
jne 0x59839d
mov eax, dword [esi + 0x24]
test eax, eax
jg 0x5983a6
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x598390
jmp case.0x597a14.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.0061eb08
mov esp, ebp
pop ebp
ret