Function at 0x445f70
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4dac40]
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 cl, byte [esi]
mov edi, dword [edx + 0x18]
movzx eax, cl
mov ebx, dword [edi]
add eax, 0xffffffec
mov dword [ebp - 0x2c], edx
cmp eax, 0x97
ja case.0x445fab.21
movzx eax, byte [eax + 0x446700]
jmp dword [eax*4 + 0x4466dc]
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.0x445fab.21
xor ecx, ecx
mov edx, edi
cmp ecx, 8
jge 0x445fe9
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ebp + ecx*4 - 0x24], eax
inc ecx
test edx, edx
jne 0x445fd5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x445ffc
push eax
push dword [ebp - 0x2c]
call fcn.004955f0
add esp, 8
push dword [esi + 0xc]
call fcn.00457480
add esp, 4
test eax, eax
jne 0x44606d
cmp byte [ebx + 0xc8], 2
jae 0x44606d
cmp byte [esi], 0x33
jne 0x446029
or dword [esi + 4], 0x10000000
mov dword [esi + 8], str.true
jmp 0x446037
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 0x446054
mov eax, dword [ebp + ecx*4 - 0x24]
mov dword [edi + 0x10], eax
mov edi, dword [edi + 0xc]
inc ecx
test edi, edi
jne 0x446040
mov eax, dword [esi + 0xc]
test eax, eax
je 0x446066
push eax
push dword [ebx]
call fcn.0045a030
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.004a9190
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x4460ae
mov edx, dword [esi + 8]
push esi
push edi
push edx
xor eax, eax
push eax
xor ecx, ecx
push ecx
push ebx
call fcn.0043a2d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9190
mov esp, ebp
pop ebp
ret
test byte [edi + 0x18], 0x28
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x4c], edx
je 0x4460ce
push 0
push str.the__.__operator
push edi
push ebx
call fcn.0043d5e0
mov edx, dword [ebp - 0x4c]
add esp, 0x10
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x3b
jne 0x4460da
xor ecx, ecx
jmp 0x4460e3
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 - 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x2c]
jb 0x446117
push eax
push esi
push ebx
call fcn.0046c060
push edx
lea eax, [esi + 0x2c]
push eax
push ebx
call fcn.0046c060
mov ecx, dword [ebp - 0x2c]
add esp, 0x18
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
push esi
push edi
push edx
push eax
push ecx
push ebx
call fcn.0043a2d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9190
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44614d
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
jmp 0x446154
mov dword [ebp - 0x44], 0
mov eax, dword [ebx]
mov dword [ebp - 0x40], 0
mov al, byte [eax + 0x50]
mov byte [ebp - 0x50], 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 - 0x58], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x54], eax
je 0x446196
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x38], eax
cmp byte [eax + 0x10], 0xa5
jne 0x44619b
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 0x3c], eax
call fcn.00471960
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x44]
push dword [ebp - 0x3c]
push dword [ebx]
call fcn.0045b750
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x4461fc
push eax
push dword [ebp - 0x50]
push 0xfffffffffffffffe
push dword [ebp - 0x3c]
push dword [ebx]
call fcn.0045b750
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0x28], ecx
test ecx, ecx
jne 0x4461f0
mov dword [ebp - 0x40], 1
jmp 0x446345
mov dword [ebp - 0x58], 1
jmp 0x446345
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [ebp - 0x30], eax
je 0x446246
or dword [esi + 4], 0x40000
cmp dword [ebp - 0x44], 2
jne 0x446291
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x1c]
call fcn.00432de0
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x446243
push str.second_argument_to_likelihood___must_be_a_constant_between_0.0_and_1.0
push ebx
call fcn.00456a10
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.0044c3f0
add esp, 0x14
test eax, eax
je 0x4462ac
cmp eax, 1
jne 0x446278
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x20]
push str.not_authorized_to_use_function:__s
push ebx
call fcn.00456a10
add esp, 0xc
inc dword [edi + 0x14]
pop edi
mov byte [esi], 0x78
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9190
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x20]
mov ecx, 0x7800000
cmp byte [eax], 0x75
mov dword [ebp - 0x50], 0x800000
cmove ecx, dword [ebp - 0x50]
mov dword [esi + 0x1c], ecx
jmp 0x446246
mov ecx, dword [ebp - 0x28]
test dword [ecx + 4], 0x2800
je 0x4462bf
or dword [esi + 4], 0x80000
test dword [ecx + 4], 0x800
jne 0x4462e6
mov eax, dword [ebp - 0x34]
test byte [eax], 0x2a
je 0x4462ff
push 0
push str.non_deterministic_functions
push edi
push ebx
call fcn.0043d5e0
mov ecx, dword [ebp - 0x28]
add esp, 0x10
jmp 0x4462ff
mov edx, dword [ebp - 0x34]
mov al, byte [edx]
and al, 0x2e
mov byte [esi + 2], al
test dword [edx], 0x40000
je 0x4462ff
or dword [esi + 4], 0x40000000
mov edx, dword [ecx + 4]
test edx, 0x40000
je 0x446326
cmp byte [ebx + 0x12], 0
jne 0x446326
mov eax, dword [ebx]
test byte [eax + 0x18], 0x20
jne 0x446326
xor ecx, ecx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x28], ecx
jmp 0x446345
test edx, 0x280000
je 0x446345
cmp byte [ebx + 0xc8], 2
jae 0x446345
push ecx
push esi
push ebx
call fcn.0045a280
mov ecx, dword [ebp - 0x28]
add esp, 0xc
cmp byte [ebx + 0xc8], 2
mov edx, 1
jae 0x446461
mov eax, dword [ebp - 0x38]
test ecx, ecx
je 0x446378
cmp dword [ecx + 0x18], 0
jne 0x446378
test eax, eax
je 0x446378
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push str._.s___may_not_be_used_as_a_window_function
jmp 0x446411
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4463e2
mov edx, dword [ebp - 0x34]
mov edx, dword [edx]
test dl, 1
je 0x4463a4
test dword [ecx + 4], 0x10000
je 0x446398
test eax, eax
je 0x4463a4
jmp 0x44639c
test eax, eax
je 0x4463df
test edx, 0x4000
jne 0x4463df
test dword [ecx + 4], 0x10000
jne 0x4463b6
test eax, eax
mov eax, str.aggregate
je 0x4463bb
mov eax, str.window
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push eax
push str.misuse_of__s_function__.s__
push ebx
call fcn.00456a10
add esp, 0x14
inc dword [edi + 0x14]
mov dword [ebp - 0x30], 0
jmp 0x446471
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x40], 0
je 0x446400
mov eax, dword [ebx]
cmp byte [eax + 0xa9], 0
jne 0x446400
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push str.no_such_function:__.s
jmp 0x446411
cmp dword [ebp - 0x58], 0
je 0x44643b
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push str.wrong_number_of_arguments_to_function__.s__
push ebx
call fcn.00456a10
inc dword [edi + 0x14]
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x446471
mov ecx, dword [ebp - 0x38]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0x34]
sete al
or eax, 0x4000
not eax
and dword [ecx], eax
jmp 0x446471
test edx, edx
jne 0x446423
test dword [esi + 4], 0x1000000
je 0x446471
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push str.FILTER_may_not_be_used_with_non_aggregate__.s__
push ebx
call fcn.00456a10
add esp, 0x10
inc dword [edi + 0x14]
jmp 0x446471
test dword [esi + 4], 0x1000000
mov eax, dword [ebp - 0x30]
cmovne eax, edx
mov dword [ebp - 0x30], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x2c]
call fcn.00483390
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x44659a
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x446520
cmp byte [ebx + 0xc8], 2
mov esi, dword [edi + 0x1c]
jae 0x4464c6
test esi, esi
je 0x4464a9
mov edx, dword [esi + 0x48]
jmp 0x4464ab
xor edx, edx
mov ecx, dword [ebp - 0x28]
push ecx
push eax
push edx
push ebx
call fcn.0048b150
mov eax, dword [ebx]
add esp, 0x10
cmp byte [eax + 0x53], 0
jne case.0x445fab.21
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
push dword [ebx + 8]
push edi
call fcn.00483390
push dword [ebx + 0xc]
push edi
call fcn.00483390
mov eax, dword [ebx + 0x28]
add esp, 0x10
test eax, eax
je 0x4464f2
push eax
push edi
call fcn.004955f0
add esp, 8
push ebx
push esi
call fcn.0048a720
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
or dword [eax], 0x8000
add esp, 8
or dword [eax], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9190
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa7
mov byte [esi + 2], 0
je 0x446546
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x446546
push eax
push dword [ebp - 0x2c]
call fcn.004955f0
add esp, 8
push dword [edi + 4]
push esi
call fcn.0045dea0
add esp, 8
test eax, eax
jne 0x44657c
inc byte [esi + 2]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x446546
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
or dword [eax], ecx
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9190
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x446592
mov ecx, dword [ecx + 4]
and ecx, 0x1000
or ecx, 0x10
or dword [edi + 0x18], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
or dword [eax], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9190
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x800
je case.0x445fab.21
test byte [edi + 0x18], 0x2e
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
je 0x4465dc
push esi
push str.subqueries
push edi
push ebx
call fcn.0043d5e0
mov edx, dword [ebp - 0x2c]
add esp, 0x10
push dword [esi + 0x14]
push edx
call fcn.004833e0
mov eax, dword [ebp - 0x54]
add esp, 8
cmp eax, dword [edi + 0x10]
je case.0x445fab.21
or dword [esi + 4], 0x20
or dword [edi + 0x18], 0x40
jmp case.0x445fab.21
test byte [edi + 0x18], 0x2e
je case.0x445fab.21
push esi
push str.parameters
push edi
push ebx
call fcn.0043d5e0
add esp, 0x10
jmp case.0x445fab.21
push dword [esi + 0x10]
call fcn.0045b5d0
mov edi, eax
add esp, 4
test edi, edi
je case.0x445fab.48
mov al, byte [edi]
cmp al, 0x3b
je 0x44663b
cmp al, 0xa9
jne case.0x445fab.48
push edi
push edx
call fcn.00445f70
add esp, 8
cmp eax, 2
je 0x4466c6
cmp byte [edi], 0xa9
jne case.0x445fab.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.004a9190
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
jne case.0x445fab.21
push dword [esi + 0xc]
call fcn.0045b680
add esp, 4
cmp byte [esi], 0x30
mov edx, eax
jne 0x44669b
mov esi, dword [esi + 0x14]
push dword [esi + 8]
call fcn.0045b680
add esp, 4
cmp eax, edx
jne 0x4466aa
push dword [esi + 0x1c]
jmp 0x44669e
push dword [esi + 0x10]
call fcn.0045b680
add esp, 4
cmp edx, eax
je case.0x445fab.21
push str.row_value_misused
push ebx
call fcn.00456a10
add esp, 8
cmp dword [ebx + 0x24], 0
jne 0x4466c6
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
je 0x446657
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 2
pop ebx
call fcn.004a9190
mov esp, ebp
pop ebp
ret