Function at 0x5410d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x6d3438]
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 - 0x38], edx
mov cl, byte [esi]
movzx eax, cl
mov ebx, dword [edi]
add eax, 0xffffffec
cmp eax, 0x97
ja case.0x54110b.21
movzx eax, byte [eax + 0x541a0c]
jmp dword [eax*4 + 0x5419e8]
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.0x54110b.21
xor ecx, ecx
mov edx, edi
cmp ecx, 8
jge 0x541149
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ebp + ecx*4 - 0x24], eax
inc ecx
test edx, edx
jne 0x541135
mov eax, dword [esi + 0xc]
test eax, eax
je 0x54115f
push eax
push dword [ebp - 0x38]
call fcn.00597830
mov eax, dword [esi + 0xc]
add esp, 8
push eax
call fcn.00553ea0
add esp, 4
test eax, eax
jne 0x541888
cmp byte [ebx + 0xc8], 2
jae 0x541888
cmp byte [esi], 0x33
mov edx, 0x20000000
mov eax, 0x10000000
cmovne eax, edx
mov edx, 0x6946ec
or dword [esi + 4], eax
mov eax, 0x6946f4
cmp byte [esi], 0x33
cmove eax, edx
xor ecx, ecx
mov dword [esi + 8], eax
mov byte [esi], 0xa9
cmp ecx, 8
jge 0x5411bc
mov eax, dword [ebp + ecx*4 - 0x24]
inc ecx
mov dword [edi + 0x10], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x5411a8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5411ce
push eax
push dword [ebx]
call fcn.00556b50
add esp, 8
pop edi
mov dword [esi + 0xc], 0
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
cmp cl, 0x3b
jne 0x541216
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.00535290
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
test byte [edi + 0x18], 0x28
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x48], edx
je 0x541236
push 0
push str.the__.__operator
push edi
push ebx
call fcn.005386c0
mov edx, dword [ebp - 0x48]
add esp, 0x10
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x3b
jne 0x541242
xor ecx, ecx
jmp 0x54124b
mov ecx, dword [edx + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp byte [ebx + 0xc8], 2
mov dword [ebp - 0x30], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x30]
jb 0x54127f
push eax
push esi
push ebx
call fcn.0056aa50
push edx
lea eax, [esi + 0x2c]
push eax
push ebx
call fcn.0056aa50
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
push esi
push edi
push edx
push eax
push ecx
push ebx
call fcn.00535290
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x5412b2
mov edx, dword [eax]
jmp 0x5412b4
xor edx, edx
mov eax, dword [ebx]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov al, byte [eax + 0x50]
mov byte [ebp - 0x58], al
lea eax, [edi + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [eax]
and eax, 0x4001
mov dword [ebp - 0x2c], 0
test dword [esi + 4], 0x1000000
mov dword [ebp - 0x54], eax
je 0x5412f9
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x44], eax
cmp byte [eax + 0x10], 0xa5
jne 0x5412fe
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x54130d
mov dword [ebp - 0x3c], eax
jmp 0x54132b
mov ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x3c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x541315
sub ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
and ecx, 0x3fffffff
mov dword [ebp - 0x3c], ecx
push 0
push dword [ebp - 0x58]
push edx
push eax
push dword [ebx]
call fcn.005584d0
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x541379
push eax
push dword [ebp - 0x58]
push 0xfffffffffffffffe
push dword [ebp - 0x40]
push dword [ebx]
call fcn.005584d0
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x54136d
mov dword [ebp - 0x4c], 1
jmp 0x54153a
mov dword [ebp - 0x48], 1
jmp 0x54153a
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [ebp - 0x2c], eax
je 0x541435
or dword [esi + 4], 0x40000
cmp dword [ebp - 0x50], 2
jne 0x541480
mov eax, dword [ebp - 0x30]
movsd xmm0, qword [0x674e38]
movsd qword [ebp - 0x5c], xmm0
mov eax, dword [eax + 0x1c]
cmp byte [eax], 0x98
je 0x5413c3
mov dword [esi + 0x1c], 0xffffffff
jmp 0x541421
mov edx, dword [eax + 8]
test edx, edx
jne 0x5413ce
xor ecx, ecx
jmp 0x5413e6
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5413d6
sub ecx, dword [ebp - 0x50]
and ecx, 0x3fffffff
push 1
push ecx
lea eax, [ebp - 0x5c]
push eax
push edx
call fcn.00547b30
movsd xmm0, qword [ebp - 0x5c]
add esp, 0x10
comisd xmm0, xmmword [0x674d60]
jbe 0x54140e
mov dword [esi + 0x1c], 0xffffffff
jmp 0x541421
mulsd xmm0, qword [0x674dd8]
cvttsd2si eax, xmm0
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x541432
push str.second_argument_to_likelihood___must_be_a_constant_between_0.0_and_1.0
push ebx
call fcn.005530b0
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.00548250
add esp, 0x14
test eax, eax
je 0x54149b
cmp eax, 1
jne 0x541467
mov edx, dword [ebp - 0x28]
push dword [edx + 0x20]
push str.not_authorized_to_use_function:__s
push ebx
call fcn.005530b0
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.00608185
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x20]
mov ecx, 0x7800000
mov dword [ebp - 0x50], 0x800000
cmp byte [eax], 0x75
cmove ecx, dword [ebp - 0x50]
mov dword [esi + 0x1c], ecx
jmp 0x541435
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
test eax, 0x2800
je 0x5414b2
or dword [esi + 4], 0x80000
mov eax, dword [edx + 4]
test eax, 0x800
jne 0x5414d7
mov eax, dword [ebp - 0x34]
test byte [eax], 0x2a
je 0x5414f0
push 0
push str.non_deterministic_functions
push edi
push ebx
call fcn.005386c0
mov edx, dword [ebp - 0x28]
add esp, 0x10
jmp 0x5414f0
mov ecx, dword [ebp - 0x34]
mov al, byte [ecx]
and al, 0x2e
mov byte [esi + 2], al
test dword [ecx], 0x40000
je 0x5414f0
or dword [esi + 4], 0x40000000
mov ecx, dword [edx + 4]
test ecx, 0x40000
je 0x541517
cmp byte [ebx + 0x12], 0
jne 0x541517
mov eax, dword [ebx]
test byte [eax + 0x18], 0x20
jne 0x541517
xor edx, edx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x28], edx
jmp 0x54153a
test ecx, 0x280000
je 0x54153a
cmp byte [ebx + 0xc8], 2
jae 0x5416bf
push edx
push esi
push ebx
call fcn.00556e30
mov edx, dword [ebp - 0x28]
add esp, 0xc
cmp byte [ebx + 0xc8], 2
jae 0x5416bf
mov eax, dword [ebp - 0x44]
test edx, edx
je 0x541568
cmp dword [edx + 0x18], 0
jne 0x541568
test eax, eax
je 0x541568
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push str._.s___may_not_be_used_as_a_window_function
jmp 0x54161a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5415eb
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
test cl, 1
je 0x541598
test dword [edx + 4], 0x10000
je 0x54158c
test eax, eax
je 0x5415aa
jmp 0x541590
test eax, eax
je 0x5415e8
test ecx, 0x4000
jne 0x5415e8
test dword [edx + 4], 0x10000
jne 0x5415aa
test eax, eax
mov eax, str.aggregate
je 0x5415af
mov eax, str.window
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push eax
push str.misuse_of__s_function__.s__
push ebx
call fcn.005530b0
push dword [ebp - 0x30]
inc dword [edi + 0x14]
push dword [ebp - 0x38]
call fcn.00585b00
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x4c], 0
je 0x541609
mov eax, dword [ebx]
cmp byte [eax + 0xa9], 0
jne 0x541609
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push str.no_such_function:__.s
jmp 0x54161a
cmp dword [ebp - 0x48], 0
je 0x54167a
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push str.wrong_number_of_arguments_to_function__.s__
push ebx
call fcn.005530b0
inc dword [edi + 0x14]
add esp, 0x10
cmp dword [ebp - 0x2c], 0
je 0x54163e
mov ecx, dword [ebp - 0x34]
xor eax, eax
cmp dword [ebp - 0x44], eax
setne al
add eax, 0xffffbffe
and dword [ecx], eax
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.00585b00
add esp, 8
cmp dword [ebp - 0x2c], 0
je 0x541888
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x541756
cmp byte [ebx + 0xc8], 2
mov esi, dword [edi + 0x1c]
jae 0x5416fc
test esi, esi
je 0x5416df
mov ecx, dword [esi + 0x48]
jmp 0x5416e1
test ecx, ecx
jne 0x54162c
test dword [esi + 4], 0x1000000
je 0x54163e
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push str.FILTER_may_not_be_used_with_non_aggregate__.s__
push ebx
call fcn.005530b0
push dword [ebp - 0x30]
inc dword [edi + 0x14]
push dword [ebp - 0x38]
call fcn.00585b00
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
je 0x54163e
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.00585b00
add esp, 8
jmp 0x541656
xor ecx, ecx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ecx
push ebx
call fcn.0058ca10
mov eax, dword [ebx]
add esp, 0x10
cmp byte [eax + 0x53], 0
jne case.0x54110b.21
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x38]
push dword [ebx + 8]
push edi
call fcn.00585b00
push dword [ebx + 0xc]
push edi
call fcn.00585b00
mov eax, dword [ebx + 0x28]
add esp, 0x10
test eax, eax
je 0x541728
push eax
push edi
call fcn.00597830
add esp, 8
push ebx
push esi
call fcn.0058be60
mov eax, dword [ebp - 0x34]
add esp, 8
mov ecx, dword [ebp - 0x54]
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.00608185
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa7
mov byte [esi + 2], 0
je 0x541780
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x541780
push eax
push dword [ebp - 0x38]
call fcn.00597830
add esp, 8
nop dword [eax]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0x52cd00
mov dword [ebp - 0x18], 0x544960
mov dword [ebp - 8], ecx
mov dword [ebp - 0x64], eax
test eax, eax
je 0x5417c1
cmp dword [eax], 0
je 0x5417c1
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x60], eax
jmp 0x5417c8
mov dword [ebp - 0x60], SysReAllocStringLen
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
test eax, eax
je 0x541815
mov ebx, dword [eax]
add eax, 8
mov dword [ebp - 0x48], eax
test ebx, ebx
jle 0x541815
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x54180a
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00597830
add esp, 8
test eax, eax
jne 0x541815
mov eax, dword [ebp - 0x48]
dec ebx
add eax, 0x14
mov dword [ebp - 0x48], eax
test ebx, ebx
jg 0x5417f0
test dword [esi + 4], 0x1000000
je 0x541835
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x541835
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00597830
add esp, 8
cmp dword [ebp - 0x5c], 0
jg 0x54186b
cmp dword [ebp - 0x58], 0
je 0x54186b
inc byte [esi + 2]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x541780
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.00608185
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x541880
mov eax, dword [edx + 4]
and eax, 0x1000
or eax, 0x10
or dword [edi + 0x18], eax
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.00608185
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x800
je case.0x54110b.21
test byte [edi + 0x18], 0x2e
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
je 0x5418ca
push esi
push str.subqueries
push edi
push ebx
call fcn.005386c0
mov edx, dword [ebp - 0x38]
add esp, 0x10
push dword [esi + 0x14]
push edx
call fcn.00585b50
mov eax, dword [ebp - 0x54]
add esp, 8
cmp eax, dword [edi + 0x10]
je case.0x54110b.21
or dword [esi + 4], 0x20
or dword [edi + 0x18], 0x40
jmp case.0x54110b.21
test byte [edi + 0x18], 0x2e
je case.0x54110b.21
push esi
push str.parameters
push edi
push ebx
call fcn.005386c0
add esp, 0x10
jmp case.0x54110b.21
mov edi, dword [esi + 0x10]
test edi, edi
je case.0x54110b.48
mov eax, dword [edi + 4]
test eax, 0x41000
je 0x54196a
test eax, 0x40000
je 0x54192e
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 8]
jmp 0x541931
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x541915
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
jne case.0x54110b.21
push dword [esi + 0xc]
call fcn.005581a0
add esp, 4
mov edx, eax
cmp byte [esi], 0x30
jne 0x5419a3
mov esi, dword [esi + 0x14]
push dword [esi + 8]
call fcn.005581a0
add esp, 4
cmp eax, edx
jne 0x5419b3
mov eax, dword [esi + 0x1c]
jmp 0x5419a6
mov al, byte [edi]
cmp al, 0x3b
je 0x541974
cmp al, 0xa9
jne case.0x54110b.48
push edi
push edx
call fcn.005410d0
add esp, 8
cmp eax, 2
je 0x5419cf
cmp byte [edi], 0xa9
jne case.0x54110b.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.00608185
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
push eax
call fcn.005581a0
add esp, 4
cmp edx, eax
je case.0x54110b.21
push str.row_value_misused
push ebx
call fcn.005530b0
add esp, 8
cmp dword [ebx + 0x24], 0
jne 0x5419cf
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
je 0x541990
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00608185
mov esp, ebp
pop ebp
ret