Function at 0x488d50
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [edx + 0x18]
mov dword [ebp - 0x2c], edx
mov cl, byte [esi]
movzx eax, cl
mov ebx, dword [edi]
add eax, 0xffffffec
cmp eax, 0x97
ja case.0x488d8b.21
movzx eax, byte [eax + 0x4894e0]
jmp dword [eax*4 + 0x4894bc]
mov ecx, dword [edi + 4]
mov byte [esi], 0xa6
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.0x488d8b.21
xor ecx, ecx
mov edx, edi
cmp ecx, 8
jge 0x488dc9
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ebp + ecx*4 - 0x24], eax
inc ecx
test edx, edx
jne 0x488db5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x488ddc
push eax
push dword [ebp - 0x2c]
call fcn.004d59a0
add esp, 8
push dword [esi + 0xc]
call fcn.004999f0
add esp, 4
test eax, eax
jne 0x488e4d
cmp byte [ebx + 0xc8], 2
jae 0x488e4d
cmp byte [esi], 0x33
jne 0x488e09
or dword [esi + 4], 0x10000000
mov dword [esi + 8], str.true
jmp 0x488e17
or dword [esi + 4], 0x20000000
mov dword [esi + 8], str.false
mov byte [esi], 0xa9
xor ecx, ecx
lea esp, [esp]
cmp ecx, 8
jge 0x488e34
mov eax, dword [ebp + ecx*4 - 0x24]
inc ecx
mov dword [edi + 0x10], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x488e20
mov eax, dword [esi + 0xc]
test eax, eax
je 0x488e46
push eax
push dword [ebx]
call fcn.0049c5c0
add esp, 8
mov dword [esi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x488e8e
mov edx, dword [esi + 8]
xor eax, eax
push esi
push edi
push edx
push eax
xor ecx, ecx
push ecx
push ebx
call fcn.0047d4e0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
test byte [edi + 0x18], 0x28
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x4c], edx
je 0x488eae
push 0
push str.the__.__operator
push edi
push ebx
call fcn.00480770
mov edx, dword [ebp - 0x4c]
add esp, 0x10
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x3b
jne 0x488eba
xor ecx, ecx
jmp 0x488ec3
mov ecx, dword [edx + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp byte [ebx + 0xc8], 2
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x44], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x2c]
jb 0x488ef7
push eax
push esi
push ebx
call fcn.004ae3a0
push edx
lea eax, [esi + 0x2c]
push eax
push ebx
call fcn.004ae3a0
mov ecx, dword [ebp - 0x2c]
add esp, 0x18
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push esi
push edi
push edx
push eax
push ecx
push ebx
call fcn.0047d4e0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x488f2d
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
jmp 0x488f34
mov dword [ebp - 0x40], 0
mov eax, dword [ebx]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x30], 0
mov al, byte [eax + 0x50]
mov byte [ebp - 0x54], al
lea eax, [edi + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [eax]
and eax, 0x4001
test dword [esi + 4], 0x1000000
mov dword [ebp - 0x50], eax
je 0x488f76
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x3c], eax
cmp byte [eax + 0x10], 0xa5
jne 0x488f7d
mov dword [ebp - 0x3c], 0
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 0x38], eax
call fcn.004b3b70
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push dword [ebx]
call fcn.0049dcd0
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x488fde
push eax
push dword [ebp - 0x54]
push 0xfffffffffffffffe
push dword [ebp - 0x38]
push dword [ebx]
call fcn.0049dcd0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x28], ecx
test ecx, ecx
jne 0x488fd2
mov dword [ebp - 0x44], 1
jmp 0x48912d
mov dword [ebp - 0x58], 1
jmp 0x48912d
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [ebp - 0x30], eax
je 0x489028
or dword [esi + 4], 0x40000
cmp dword [ebp - 0x40], 2
jne 0x489073
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x1c]
call fcn.00473a80
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x489025
push str.second_argument_to_likelihood___must_be_a_constant_between_0.0_and_1.0
push ebx
call fcn.00498f80
add esp, 8
inc dword [edi + 0x14]
mov edx, dword [ebp - 0x28]
push 0
push dword [edx + 0x20]
push 0
push 0x1f
push ebx
call fcn.0048ef10
add esp, 0x14
test eax, eax
je 0x489090
cmp eax, 1
jne 0x48905a
mov eax, dword [ebp - 0x28]
push dword [eax + 0x20]
push str.not_authorized_to_use_function:__s
push ebx
call fcn.00498f80
add esp, 0xc
inc dword [edi + 0x14]
pop edi
mov byte [esi], 0x78
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x20]
xor ecx, ecx
cmp byte [eax], 0x75
setne cl
dec ecx
and ecx, 0xf9000000
add ecx, 0x7800000
mov dword [esi + 0x1c], ecx
jmp 0x489028
mov ecx, dword [ebp - 0x28]
test dword [ecx + 4], 0x2800
je 0x4890a3
or dword [esi + 4], 0x80000
test dword [ecx + 4], 0x800
jne 0x4890ca
mov eax, dword [ebp - 0x34]
test byte [eax], 0x2a
je 0x4890e3
push 0
push str.non_deterministic_functions
push edi
push ebx
call fcn.00480770
mov ecx, dword [ebp - 0x28]
add esp, 0x10
jmp 0x4890e3
mov edx, dword [ebp - 0x34]
mov al, byte [edx]
and al, 0x2e
mov byte [esi + 2], al
test dword [edx], 0x40000
je 0x4890e3
or dword [esi + 4], 0x40000000
mov edx, dword [ecx + 4]
test edx, 0x40000
je 0x48910a
cmp byte [ebx + 0x12], 0
jne 0x48910a
mov eax, dword [ebx]
test byte [eax + 0x18], 0x20
jne 0x48910a
xor ecx, ecx
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x28], ecx
jmp 0x48912d
test edx, 0x280000
je 0x48912d
cmp byte [ebx + 0xc8], 2
jae 0x489240
push ecx
push esi
push ebx
call fcn.0049c810
mov ecx, dword [ebp - 0x28]
add esp, 0xc
cmp byte [ebx + 0xc8], 2
jae 0x489240
mov eax, dword [ebp - 0x3c]
test ecx, ecx
je 0x48915b
cmp dword [ecx + 0x18], 0
jne 0x48915b
test eax, eax
je 0x48915b
push dword [ebp - 0x38]
push dword [ebp - 0x48]
push str._.s___may_not_be_used_as_a_window_function
jmp 0x4891f4
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4891c5
mov edx, dword [ebp - 0x34]
mov edx, dword [edx]
test dl, 1
je 0x489187
test dword [ecx + 4], 0x10000
je 0x48917b
test eax, eax
je 0x489187
jmp 0x48917f
test eax, eax
je 0x4891c2
test edx, 0x4000
jne 0x4891c2
test dword [ecx + 4], 0x10000
jne 0x489199
test eax, eax
mov eax, str.aggregate
je 0x48919e
mov eax, str.window
push dword [ebp - 0x38]
push dword [ebp - 0x48]
push eax
push str.misuse_of__s_function__.s__
push ebx
call fcn.00498f80
add esp, 0x14
mov dword [ebp - 0x30], 0
inc dword [edi + 0x14]
jmp 0x489250
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x44], 0
je 0x4891e3
mov eax, dword [ebx]
cmp byte [eax + 0xa9], 0
jne 0x4891e3
push dword [ebp - 0x38]
push dword [ebp - 0x48]
push str.no_such_function:__.s
jmp 0x4891f4
cmp dword [ebp - 0x58], 0
je 0x48921a
push dword [ebp - 0x38]
push dword [ebp - 0x48]
push str.wrong_number_of_arguments_to_function__.s__
push ebx
call fcn.00498f80
inc dword [edi + 0x14]
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x489250
mov ecx, dword [ebp - 0x34]
xor eax, eax
cmp dword [ebp - 0x3c], eax
setne al
add eax, 0xffffbffe
and dword [ecx], eax
jmp 0x489250
test edx, edx
jne 0x489206
test dword [esi + 4], 0x1000000
je 0x489250
push dword [ebp - 0x38]
push dword [ebp - 0x48]
push str.FILTER_may_not_be_used_with_non_aggregate__.s__
push ebx
call fcn.00498f80
add esp, 0x10
inc dword [edi + 0x14]
jmp 0x489250
test dword [esi + 4], 0x1000000
je 0x489250
mov dword [ebp - 0x30], 1
push dword [ebp - 0x4c]
push dword [ebp - 0x2c]
call fcn.004c50d0
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x489378
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4892ff
cmp byte [ebx + 0xc8], 2
mov esi, dword [edi + 0x1c]
jae 0x4892a5
test esi, esi
je 0x489288
mov edx, dword [esi + 0x48]
jmp 0x48928a
xor edx, edx
mov eax, dword [ebp - 0x28]
push eax
push ecx
push edx
push ebx
call fcn.004cb880
mov eax, dword [ebx]
add esp, 0x10
cmp byte [eax + 0x53], 0
jne case.0x488d8b.21
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x2c]
push dword [ebx + 8]
push edi
call fcn.004c50d0
push dword [ebx + 0xc]
push edi
call fcn.004c50d0
mov eax, dword [ebx + 0x28]
add esp, 0x10
test eax, eax
je 0x4892d1
push eax
push edi
call fcn.004d59a0
add esp, 8
push ebx
push esi
call fcn.004caee0
mov eax, dword [ebp - 0x34]
add esp, 8
mov ecx, dword [ebp - 0x50]
or dword [eax], 0x8000
or dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa7
mov byte [esi + 2], 0
je 0x489325
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x489325
push eax
push dword [ebp - 0x2c]
call fcn.004d59a0
add esp, 8
push dword [edi + 4]
push esi
call fcn.004a02c0
add esp, 8
test eax, eax
jne 0x48935b
inc byte [esi + 2]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x489325
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
or dword [eax], ecx
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x489370
mov eax, dword [eax + 4]
and eax, 0x1000
or eax, 0x10
or dword [edi + 0x18], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
or dword [eax], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x800
je case.0x488d8b.21
test byte [edi + 0x18], 0x2e
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x50], eax
je 0x4893ba
push esi
push str.subqueries
push edi
push ebx
call fcn.00480770
mov edx, dword [ebp - 0x2c]
add esp, 0x10
push dword [esi + 0x14]
push edx
call fcn.004c5120
mov eax, dword [ebp - 0x50]
add esp, 8
cmp eax, dword [edi + 0x10]
je case.0x488d8b.21
or dword [esi + 4], 0x20
or dword [edi + 0x18], 0x40
jmp case.0x488d8b.21
test byte [edi + 0x18], 0x2e
je case.0x488d8b.21
push esi
push str.parameters
push edi
push ebx
call fcn.00480770
add esp, 0x10
jmp case.0x488d8b.21
push dword [esi + 0x10]
call fcn.0049db50
mov edi, eax
add esp, 4
test edi, edi
je case.0x488d8b.48
mov al, byte [edi]
cmp al, 0x3b
je 0x489419
cmp al, 0xa9
jne case.0x488d8b.48
push edi
push edx
call fcn.00488d50
add esp, 8
cmp eax, 2
je 0x4894a4
cmp byte [edi], 0xa9
jne case.0x488d8b.48
mov al, byte [esi]
mov byte [esi + 2], al
mov byte [esi], 0xae
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
jne case.0x488d8b.21
push dword [esi + 0xc]
call fcn.0049dc00
add esp, 4
mov edx, eax
cmp byte [esi], 0x30
jne 0x489479
mov esi, dword [esi + 0x14]
push dword [esi + 8]
call fcn.0049dc00
add esp, 4
cmp eax, edx
jne 0x489488
push dword [esi + 0x1c]
jmp 0x48947c
push dword [esi + 0x10]
call fcn.0049dc00
add esp, 4
cmp edx, eax
je case.0x488d8b.21
push str.row_value_misused
push ebx
call fcn.00498f80
add esp, 8
cmp dword [ebx + 0x24], 0
jne 0x4894a4
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
je 0x489435
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret