Function at 0x1003ecf0
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0x78], 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 + 0x20], edx
mov cl, byte [esi]
mov edi, dword [ebx]
movzx eax, cl
add eax, 0xffffffec
mov dword [esp + 0x2c], edi
cmp eax, 0x97
ja case.0x1003ed34.21
movzx eax, byte [eax + 0x1003f718]
jmp dword [eax*4 + 0x1003f6f4]
mov ecx, dword [ebx + 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.0x1003ed34.21
xor ecx, ecx
mov edx, ebx
nop
cmp ecx, 8
jge 0x1003ed74
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x64], eax
inc ecx
test edx, edx
jne 0x1003ed60
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003ed89
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.1003d7d0
mov ecx, dword [esi + 0xc]
call fcn.10043d50
test eax, eax
jne 0x1003f573
cmp byte [edi + 0xcc], 2
jae 0x1003f573
cmp byte [esi], 0x33
mov edx, 0x20000000
mov eax, 0x10000000
cmovne eax, edx
mov edx, str.true
or dword [esi + 4], eax
mov eax, str.false
cmp byte [esi], 0x33
cmove eax, edx
xor edx, edx
mov dword [esi + 8], eax
mov byte [esi], 0xa9
nop
cmp edx, 8
jge 0x1003ede4
mov eax, dword [esp + edx*4 + 0x64]
inc edx
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x1003edd0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x1003edf2
mov ecx, dword [edi]
call fcn.10042580
mov dword [esi + 0xc], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x1003ee3c
mov eax, dword [esi + 8]
xor ecx, ecx
push esi
push ebx
push eax
push ecx
xor edx, edx
mov ecx, edi
call fcn.1003de60
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
test al, 0x28
je 0x1003ee87
mov ecx, str.partial_index_WHERE_clauses
test al, 0x20
je 0x1003ee5a
mov eax, str.index_expressions
jmp 0x1003ee6f
test al, 4
je 0x1003ee65
mov eax, str.CHECK_constraints
jmp 0x1003ee6f
test al, 8
mov eax, str.generated_columns
cmove eax, ecx
push eax
push str.the__.__operator
push str._s_prohibited_in__s
push edi
call fcn.10008be0
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x3b
jne 0x1003ee93
xor edx, edx
jmp 0x1003eea0
mov edx, dword [ecx + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
mov edi, dword [eax + 8]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
cmp byte [edi + 0xcc], 2
jb 0x1003eee5
push eax
mov edx, esi
mov ecx, edi
call fcn.1004b5f0
add esp, 4
lea edx, [esi + 0x2c]
mov ecx, edi
push dword [esp + 0x14]
call fcn.1004b5f0
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push esi
push ebx
push eax
push ecx
mov ecx, edi
call fcn.1003de60
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003ef18
mov edx, dword [eax]
jmp 0x1003ef1a
xor edx, edx
mov eax, dword [edi]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov al, byte [eax + 0x50]
mov byte [esp + 0x40], al
lea eax, [ebx + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
and eax, 0x4001
mov dword [esp + 0x10], 0
test dword [esi + 4], 0x1000000
mov dword [esp + 0x3c], eax
je 0x1003ef67
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
cmp byte [eax + 0x10], 0xa5
jne 0x1003ef6f
mov dword [esp + 0x18], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1003ef80
mov dword [esp + 0x24], eax
jmp 0x1003efa9
mov ecx, eax
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ef90
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0x3fffffff
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
push 0
push dword [esp + 0x44]
push edx
mov edx, eax
call fcn.1005b9e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0xc], edx
test edx, edx
jne 0x1003efff
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
push dword [esp + 0x44]
push 0xfffffffffffffffe
call fcn.1005b9e0
mov edx, eax
add esp, 0xc
mov dword [esp + 0xc], edx
test edx, edx
jne 0x1003eff2
mov dword [esp + 0x34], 1
jmp 0x1003f205
mov dword [esp + 0x30], 1
jmp 0x1003f205
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [esp + 0x10], eax
je 0x1003f0c6
or dword [esi + 4], 0x40000
cmp dword [esp + 0x38], 2
jne 0x1003f117
mov eax, dword [esp + 0x14]
movsd xmm0, qword [0x10119428]
movsd qword [esp + 0x40], xmm0
mov eax, dword [eax + 0x1c]
cmp byte [eax], 0x98
je 0x1003f04d
mov dword [esi + 0x1c], 0xffffffff
jmp 0x1003f0b1
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1003f05c
xor ecx, ecx
jmp 0x1003f074
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f061
mov eax, dword [esp + 0x38]
sub ecx, edx
and ecx, 0x3fffffff
push 1
push ecx
lea edx, [esp + 0x48]
mov ecx, eax
call fcn.10008ea0
movsd xmm0, qword [esp + 0x48]
add esp, 8
comisd xmm0, xmmword [0x101192a0]
jbe 0x1003f09e
mov dword [esi + 0x1c], 0xffffffff
jmp 0x1003f0b1
mulsd xmm0, qword [0x101193b0]
cvttsd2si eax, xmm0
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x1003f0c2
push str.second_argument_to_likelihood___must_be_a_constant_between_0.0_and_1.0
push edi
call fcn.10008be0
add esp, 8
inc dword [ebx + 0x14]
mov edx, dword [esp + 0xc]
push 0
push dword [edx + 0x20]
mov edx, 0x1f
mov ecx, edi
push 0
call fcn.10051b80
add esp, 0xc
test eax, eax
je 0x1003f134
cmp eax, 1
jne 0x1003f0fd
mov eax, dword [esp + 0xc]
push dword [eax + 0x20]
push str.not_authorized_to_use_function:__s
push edi
call fcn.10008be0
add esp, 0xc
inc dword [ebx + 0x14]
mov byte [esi], 0x78
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x20]
mov ecx, 0x7800000
mov dword [esp + 0x38], 0x800000
cmp byte [eax], 0x75
cmove ecx, dword [esp + 0x38]
mov dword [esi + 0x1c], ecx
jmp 0x1003f0c6
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
test eax, 0x2800
je 0x1003f14c
or dword [esi + 4], 0x80000
mov eax, dword [edx + 4]
test eax, 0x800
jne 0x1003f19c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test al, 0x2a
je 0x1003f1b6
mov ecx, str.partial_index_WHERE_clauses
test al, 0x20
je 0x1003f16d
mov eax, str.index_expressions
jmp 0x1003f182
test al, 4
je 0x1003f178
mov eax, str.CHECK_constraints
jmp 0x1003f182
test al, 8
mov eax, str.generated_columns
cmove eax, ecx
push eax
push str.non_deterministic_functions
push str._s_prohibited_in__s
push edi
call fcn.10008be0
mov edx, dword [esp + 0x1c]
add esp, 0x10
jmp 0x1003f1b6
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
and al, 0x2e
mov byte [esi + 2], al
test dword [ecx], 0x40000
je 0x1003f1b6
or dword [esi + 4], 0x40000000
mov ecx, dword [edx + 4]
test ecx, 0x40000
je 0x1003f1df
cmp byte [edi + 0x12], 0
jne 0x1003f1df
mov eax, dword [edi]
test byte [eax + 0x18], 0x20
jne 0x1003f1df
xor edx, edx
mov dword [esp + 0x34], 1
mov dword [esp + 0xc], edx
jmp 0x1003f205
test ecx, 0x280000
je 0x1003f205
cmp byte [edi + 0xcc], 2
jae 0x1003f39f
push edx
mov edx, esi
mov ecx, edi
call fcn.100422b0
mov edx, dword [esp + 0x10]
add esp, 4
cmp byte [edi + 0xcc], 2
jae 0x1003f39f
mov eax, dword [esp + 0x18]
test edx, edx
je 0x1003f236
cmp dword [edx + 0x18], 0
jne 0x1003f236
test eax, eax
je 0x1003f236
push dword [esp + 0x28]
push dword [esp + 0x28]
push str._.s___may_not_be_used_as_a_window_function
jmp 0x1003f2f2
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1003f2bd
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
test cl, 1
je 0x1003f264
test dword [edx + 4], 0x10000
je 0x1003f258
test eax, eax
je 0x1003f276
jmp 0x1003f25c
test eax, eax
je 0x1003f2b9
test ecx, 0x4000
jne 0x1003f2b9
test dword [edx + 4], 0x10000
jne 0x1003f276
test eax, eax
mov eax, str.aggregate
je 0x1003f27b
mov eax, str.window
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
push str.misuse_of__s_function__.s__
push edi
call fcn.10008be0
mov edx, dword [esp + 0x28]
add esp, 0x14
mov ecx, dword [esp + 0x20]
inc dword [ebx + 0x14]
call fcn.1003d870
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x34], 0
je 0x1003f2de
mov eax, dword [edi]
cmp byte [eax + 0xb1], 0
jne 0x1003f2de
push dword [esp + 0x28]
push dword [esp + 0x28]
push str.no_such_function:__.s
jmp 0x1003f2f2
cmp dword [esp + 0x30], 0
je 0x1003f355
push dword [esp + 0x28]
push dword [esp + 0x28]
push str.wrong_number_of_arguments_to_function__.s__
push edi
call fcn.10008be0
inc dword [ebx + 0x14]
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x1003f319
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x18], eax
setne al
add eax, 0xffffbffe
and dword [ecx], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
call fcn.1003d870
cmp dword [esp + 0x10], 0
je 0x1003f573
cmp dword [esp + 0x18], 0
je 0x1003f43c
cmp byte [edi + 0xcc], 2
mov esi, dword [ebx + 0x1c]
jae 0x1003f3e2
test esi, esi
je 0x1003f3be
mov edx, dword [esi + 0x48]
jmp 0x1003f3c0
test ecx, ecx
jne 0x1003f305
test dword [esi + 4], 0x1000000
je 0x1003f319
push dword [esp + 0x28]
push dword [esp + 0x28]
push str.FILTER_may_not_be_used_with_non_aggregate__.s__
push edi
call fcn.10008be0
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x20]
inc dword [ebx + 0x14]
call fcn.1003d870
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
je 0x1003f319
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
call fcn.1003d870
jmp 0x1003f331
xor edx, edx
mov eax, dword [esp + 0xc]
mov ecx, edi
mov ebx, dword [esp + 0x18]
push eax
push ebx
call fcn.1009a040
mov eax, dword [edi]
add esp, 8
cmp byte [eax + 0x53], 0
jne case.0x1003ed34.21
jmp 0x1003f3e6
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ecx, edi
mov edx, dword [ebx + 8]
call fcn.1003d870
mov edx, dword [ebx + 0xc]
mov ecx, edi
call fcn.1003d870
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x1003f40c
mov ecx, edi
call fcn.1003d7d0
mov edx, ebx
mov ecx, esi
call fcn.1009b6d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
or dword [eax], 0x8000
or dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa7
mov byte [esi + 2], 0
je 0x1003f460
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x1003f460
mov ecx, dword [esp + 0x20]
call fcn.1003d7d0
nop
lea eax, [esp + 0x48]
mov dword [esp + 0x64], 0
mov dword [esp + 0x7c], eax
xorps xmm0, xmm0
mov eax, dword [edi]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x14]
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x68], 0x1004a010
mov dword [esp + 0x6c], 0x10049ea0
mov dword [esp + 0x70], 0x10049fe0
test eax, eax
je 0x1003f4e7
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x30], eax
test edi, edi
jle 0x1003f4e3
nop
mov edx, dword [eax]
test edx, edx
je 0x1003f4d7
lea ecx, [esp + 0x64]
call fcn.1003d7d0
test eax, eax
jne 0x1003f4e3
mov eax, dword [esp + 0x30]
dec edi
add eax, 0x14
mov dword [esp + 0x30], eax
test edi, edi
jg 0x1003f4c0
mov edi, dword [esp + 0x2c]
test dword [esi + 4], 0x1000000
je 0x1003f503
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x1003f503
lea ecx, [esp + 0x64]
call fcn.1003d7d0
mov edx, dword [esp + 0x58]
test edx, edx
je 0x1003f512
mov ecx, dword [edi]
call fcn.10004cc0
test byte [esp + 0x78], 1
jne 0x1003f54e
cmp word [esp + 0x78], 0
je 0x1003f54e
inc byte [esi + 2]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x1003f460
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
or dword [eax], ecx
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003f569
mov eax, dword [eax + 4]
xor eax, 0xffffefff
and eax, 0x8001000
or eax, 0x10
or dword [ebx + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
or dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x800
je case.0x1003ed34.21
test byte [ebx + 0x18], 0x2e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], eax
je 0x1003f5b8
push esi
push str.subqueries
mov edx, ebx
mov ecx, edi
call fcn.1003eca0
add esp, 8
jmp 0x1003f5c4
mov edx, dword [esi + 0x14]
mov ecx, dword [esp + 0x20]
call fcn.1003d8c0
mov eax, dword [esp + 0x3c]
cmp eax, dword [ebx + 0x10]
je case.0x1003ed34.21
or dword [esi + 4], 0x20
or dword [ebx + 0x18], 0x40
jmp case.0x1003ed34.21
test byte [ebx + 0x18], 0x2e
je case.0x1003ed34.21
push esi
push str.parameters
mov edx, ebx
mov ecx, edi
call fcn.1003eca0
jmp 0x1003f6c7
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1003f623
mov eax, dword [edi + 4]
test eax, 0x41000
je 0x1003f64a
test eax, 0x40000
je 0x1003f61c
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 8]
jmp 0x1003f61f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x1003f603
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
cmp byte [eax + 0x53], 0
jne case.0x1003ed34.21
mov ecx, dword [esi + 0xc]
mov al, byte [ecx]
cmp al, 0xaf
jne 0x1003f63f
mov al, byte [ecx + 2]
cmp al, 0xb0
jne 0x1003f684
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
jmp 0x1003f697
mov al, byte [edi]
cmp al, 0x3b
je 0x1003f654
cmp al, 0xa9
jne 0x1003f623
push edi
push edx
call fcn.1003ecf0
add esp, 8
cmp eax, 2
je 0x1003f6d8
cmp byte [edi], 0xa9
jne 0x1003f623
mov al, byte [esi]
mov byte [esi + 2], al
mov byte [esi], 0xae
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
cmp al, 0x89
jne 0x1003f692
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
jmp 0x1003f697
mov edx, 1
cmp byte [esi], 0x30
jne 0x1003f6b0
mov esi, dword [esi + 0x14]
mov ecx, dword [esi + 8]
call fcn.10040ce0
cmp eax, edx
jne 0x1003f6bc
mov ecx, dword [esi + 0x1c]
jmp 0x1003f6b3
mov ecx, dword [esi + 0x10]
call fcn.10040ce0
cmp edx, eax
je case.0x1003ed34.21
push str.row_value_misused
push edi
call fcn.10008be0
add esp, 8
cmp dword [edi + 0x24], 0
jne 0x1003f6d8
mov eax, dword [edi]
cmp byte [eax + 0x53], 0
je 0x1003f670
mov ecx, dword [esp + 0x84]
mov eax, 2
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret