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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r14, qword [rcx + 0x28]
mov rbx, rdx
movzx edx, byte [rdx]
xor ebp, ebp
mov r9, rcx
mov qword [rsp + 0x70], rcx
mov r15, qword [r14]
lea eax, [rdx - 0x14]
cmp eax, 0x97
ja case.0x140185e0e.21
lea r8, [0x140000000]
cdqe
lea edi, [rbp + 1]
movzx eax, byte [r8 + rax + 0x18683c]
mov ecx, dword [r8 + rax*4 + 0x186818]
add rcx, r8
jmp rcx
mov rcx, qword [r14 + 8]
mov byte [rbx], 0xa6
mov rax, qword [rcx + 0x28]
mov qword [rbx + 0x40], rax
mov eax, dword [rcx + 0x4c]
dec word [rbx + 0x30]
mov dword [rbx + 0x2c], eax
mov byte [rbx + 1], 0x44
jmp case.0x140185e0e.21
mov r8, r14
mov rdx, rbp
cmp rdx, 8
jge 0x140185e55
mov eax, dword [r8 + 0x20]
mov r8, qword [r8 + 0x18]
mov dword [rsp + rdx*4 + 0xa8], eax
inc rdx
test r8, r8
jne 0x140185e38
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140185e6d
mov rdx, rcx
mov rcx, r9
call fcn.140184600
mov rcx, qword [rbx + 0x10]
call fcn.14018ad90
test eax, eax
jne 0x140186656
cmp byte [r15 + 0x11c], 2
jae 0x140186656
cmp byte [rbx], 0x33
mov eax, 0x10000000
mov edx, 0x20000000
cmovne eax, edx
lea rdx, str.false
or dword [rbx + 4], eax
lea rax, str.true
cmp byte [rbx], 0x33
cmovne rax, rdx
mov rdx, rbp
mov qword [rbx + 8], rax
mov byte [rbx], 0xa9
nop word [rax + rax]
cmp rdx, 8
jge 0x140185edd
mov eax, dword [rsp + rdx*4 + 0xa8]
inc rdx
mov dword [r14 + 0x20], eax
mov r14, qword [r14 + 0x18]
test r14, r14
jne 0x140185ec0
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140185eee
mov rcx, qword [r15]
call fcn.140189440
mov qword [rbx + 0x10], rbp
mov eax, edi
jmp 0x1401867eb
cmp dl, 0x3b
jne 0x140185f0a
mov r9, qword [rbx + 8]
mov r8, rbp
jmp 0x140185fc7
mov ecx, dword [r14 + 0x28]
mov rdi, qword [rbx + 0x10]
test cl, 0x28
je 0x140185f5e
lea rax, str.partial_index_WHERE_clauses
test cl, 0x20
je 0x140185f2c
lea r9, str.index_expressions
jmp 0x140185f48
test cl, 4
je 0x140185f3a
lea r9, str.CHECK_constraints
jmp 0x140185f48
test cl, 8
lea r9, str.generated_columns
cmove r9, rax
lea r8, str.the__.__operator
mov rcx, r15
lea rdx, str._s_prohibited_in__s
call fcn.140151b10
mov rcx, qword [rbx + 0x18]
cmp byte [rcx], 0x3b
je 0x140185f73
mov rbp, qword [rdi + 8]
mov rdi, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
cmp byte [r15 + 0x11c], 2
mov r8, qword [rdi + 8]
mov r9, qword [rcx + 8]
jb 0x140185fc7
mov rax, qword [r15 + 0x188]
test rax, rax
je 0x140185fa4
cmp qword [rax], rcx
je 0x140185fa1
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140185f91
jmp 0x140185fa4
mov qword [rax], rbx
mov rcx, qword [r15 + 0x188]
test rcx, rcx
je 0x140185fc7
cmp qword [rcx], rdi
je 0x140185fc0
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140185fb0
jmp 0x140185fc7
lea rax, [rbx + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x28], rbx
mov rdx, rbp
mov rcx, r15
mov qword [rsp + 0x20], r14
call fcn.140184cb0
jmp 0x1401867eb
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140185ff3
mov edi, dword [rax]
jmp 0x140185ff5
mov edi, ebp
mov rcx, qword [r15]
lea rdx, [r14 + 0x28]
mov qword [rsp + 0x40], rdx
mov eax, ebp
mov edx, dword [rdx]
and edx, 0x4001
mov dword [rsp + 0x3c], eax
test dword [rbx + 4], 0x1000000
movzx eax, byte [rcx + 0x60]
mov byte [rsp + 0x30], al
mov dword [rsp + 0x58], edx
je 0x14018602e
mov rsi, qword [rbx + 0x40]
cmp byte [rsi + 0x20], 0xa5
jne 0x140186031
mov rsi, rbp
mov rdx, qword [rbx + 8]
mov r12, 0xffffffffffffffff
mov qword [rsp + 0x50], rdx
test rdx, rdx
jne 0x14018604b
mov r13d, ebp
jmp 0x140186060
mov r13, r12
nop
inc r13
cmp byte [rdx + r13], bpl
jne 0x140186050
and r13d, 0x3fffffff
movzx r9d, al
mov byte [rsp + 0x20], bpl
mov r8d, edi
call fcn.1401a3860
mov qword [rsp + 0x48], rax
mov rdx, rax
test rax, rax
jne 0x1401860bf
mov r12, qword [rsp + 0x50]
lea r8d, [rax - 2]
movzx r9d, byte [rsp + 0x30]
mov rdx, r12
mov rcx, qword [r15]
mov byte [rsp + 0x20], bpl
call fcn.1401a3860
mov r8, rax
mov qword [rsp + 0x48], rax
test rax, rax
mov eax, 1
jne 0x1401860b6
mov ecx, eax
jmp 0x1401862d6
mov edx, eax
mov ecx, ebp
jmp 0x1401862d8
mov eax, ebp
cmp qword [rdx + 0x20], rax
setne al
test dword [rdx + 4], 0x400
mov dword [rsp + 0x3c], eax
je 0x140186185
or dword [rbx + 4], 0x40000
cmp edi, 2
jne 0x14018616e
mov rcx, qword [rsp + 0x68]
movsd xmm0, qword [0x140247448]
movsd qword [rsp + 0x60], xmm0
mov rcx, qword [rcx + 0x28]
cmp byte [rcx], 0x98
jne 0x140186150
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140186112
mov eax, ebp
jmp 0x140186123
mov rax, r12
inc rax
cmp byte [rcx + rax], bpl
jne 0x140186115
and eax, 0x3fffffff
mov r9b, 1
lea rdx, [rsp + 0x60]
mov r8d, eax
call fcn.140151d20
movsd xmm2, qword [rsp + 0x60]
comisd xmm2, xmmword [0x140247360]
ja 0x140186150
mulsd xmm2, qword [0x1402473e0]
cvttsd2si r12d, xmm2
mov dword [rbx + 0x2c], r12d
test r12d, r12d
jns 0x140186185
lea rdx, str.second_argument_to_likelihood___must_be_a_constant_between_0.0_and_1.0
mov rcx, r15
call fcn.140151b10
inc dword [r14 + 0x24]
jmp 0x140186185
mov rax, qword [rdx + 0x38]
mov ecx, 0x7800000
mov edx, 0x800000
cmp byte [rax], 0x75
cmove ecx, edx
mov dword [rbx + 0x2c], ecx
mov rdi, qword [rsp + 0x48]
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rbp
mov r9, qword [rdi + 0x38]
lea edx, [r8 + 0x1f]
call fcn.140198cf0
test eax, eax
je 0x1401861cf
cmp eax, 1
jne 0x1401861c2
mov r8, qword [rdi + 0x38]
lea rdx, str.not_authorized_to_use_function:__s
mov rcx, r15
call fcn.140151b10
inc dword [r14 + 0x24]
mov byte [rbx], 0x78
mov eax, 1
jmp 0x1401867eb
mov eax, dword [rdi + 4]
mov r8, rdi
test eax, 0x2800
je 0x1401861e6
or dword [rbx + 4], 0x80000
mov eax, dword [rdi + 4]
bt eax, 0xb
jb 0x140186244
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
test cl, 0x2a
je 0x140186260
lea rax, str.partial_index_WHERE_clauses
test cl, 0x20
je 0x14018620d
lea r9, str.index_expressions
jmp 0x140186229
test cl, 4
je 0x14018621b
lea r9, str.CHECK_constraints
jmp 0x140186229
test cl, 8
lea r9, str.generated_columns
cmove r9, rax
lea r8, str.non_deterministic_functions
mov rcx, r15
lea rdx, str._s_prohibited_in__s
call fcn.140151b10
mov r8, rdi
jmp 0x140186260
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx]
and al, 0x2e
mov byte [rbx + 2], al
test dword [rcx], 0x40000
je 0x140186260
or dword [rbx + 4], 0x40000000
mov ecx, dword [r8 + 4]
bt ecx, 0x12
jae 0x14018628a
cmp byte [r15 + 0x1e], bpl
jne 0x14018628a
mov rax, qword [r15]
test byte [rax + 0x2c], 0x20
jne 0x14018628a
mov eax, 1
mov qword [rsp + 0x48], rbp
mov ecx, eax
mov r8, rbp
jmp 0x1401862d1
test ecx, 0x280000
je 0x1401862ca
cmp byte [r15 + 0x11c], 2
jae 0x1401862ca
test dword [rbx + 4], 0x40000000
je 0x1401862ca
bt ecx, 0x13
jb 0x1401862b4
mov rax, qword [r15]
test byte [rax + 0x30], 0x80
jne 0x1401862ca
mov r8, qword [r8 + 0x38]
lea rdx, str.unsafe_use_of__s__
mov rcx, r15
call fcn.140151b10
mov r8, rdi
mov ecx, ebp
mov eax, 1
mov r12, qword [rsp + 0x50]
mov edx, ebp
cmp byte [r15 + 0x11c], 2
jae 0x1401863fc
test r8, r8
je 0x140186314
cmp qword [r8 + 0x28], rbp
jne 0x140186314
test rsi, rsi
je 0x140186314
mov r9, r12
lea rdx, str._.s___may_not_be_used_as_a_window_function
mov r8d, r13d
mov rcx, r15
call fcn.140151b10
mov edi, dword [rsp + 0x3c]
jmp 0x1401863b4
mov edi, dword [rsp + 0x3c]
test edi, edi
je 0x140186382
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
test al, 1
je 0x140186343
test dword [r8 + 4], 0x10000
je 0x140186338
test rsi, rsi
je 0x140186343
jmp 0x14018633d
test rsi, rsi
je 0x140186382
bt eax, 0xe
jb 0x140186382
test dword [r8 + 4], 0x10000
jne 0x140186359
lea r8, str.aggregate
test rsi, rsi
je 0x140186360
lea r8, str.window
mov r9d, r13d
mov qword [rsp + 0x20], r12
lea rdx, str.misuse_of__s_function__.s__
mov rcx, r15
call fcn.140151b10
inc dword [r14 + 0x24]
mov edi, ebp
jmp 0x14018640a
test ecx, ecx
je 0x14018639b
mov rax, qword [r15]
cmp byte [rax + 0xc5], bpl
jne 0x14018639b
lea rdx, str.no_such_function:__.s
jmp 0x1401863a6
test edx, edx
je 0x1401863d4
lea rdx, str.wrong_number_of_arguments_to_function__.s__
mov r9, r12
mov r8d, r13d
mov rcx, r15
call fcn.140151b10
inc dword [r14 + 0x24]
test edi, edi
je 0x14018640a
mov r12, qword [rsp + 0x40]
test rsi, rsi
mov eax, ebp
setne al
add eax, 0xffffbffe
and dword [r12], eax
jmp 0x14018640f
test edi, edi
jne 0x1401863bc
test dword [rbx + 4], 0x1000000
je 0x14018640a
mov r9, r12
lea rdx, str.FILTER_may_not_be_used_with_non_aggregate__.s__
mov r8d, r13d
mov rcx, r15
call fcn.140151b10
inc dword [r14 + 0x24]
jmp 0x14018640a
test dword [rbx + 4], 0x1000000
mov edi, dword [rsp + 0x3c]
cmovne edi, eax
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.1401846e0
test edi, edi
je 0x140186651
test rsi, rsi
je 0x1401864bb
cmp byte [r15 + 0x11c], 2
mov rbx, qword [r14 + 0x30]
jae 0x14018646b
test rbx, rbx
je 0x14018644b
mov rdx, qword [rbx + 0x78]
jmp 0x14018644e
mov rdx, rbp
mov r9, qword [rsp + 0x48]
mov r8, rsi
mov rcx, r15
call fcn.1401dca20
mov rax, qword [r15]
cmp byte [rax + 0x63], bpl
jne case.0x140185e0e.21
mov rdx, qword [rsi + 0x10]
mov rcx, r13
call fcn.1401846e0
mov rdx, qword [rsi + 0x18]
mov rcx, r13
call fcn.1401846e0
mov rdx, qword [rsi + 0x48]
test rdx, rdx
je 0x140186494
mov rcx, r13
call fcn.140184600
mov rdx, rsi
mov rcx, rbx
call fcn.1401ddf60
mov eax, dword [rsp + 0x58]
mov edi, 1
or dword [r12], 0x8000
or dword [r12], eax
mov eax, edi
jmp 0x1401867eb
test dword [rbx + 4], 0x1000000
mov byte [rbx], 0xa7
mov byte [rbx + 2], bpl
je 0x1401864e0
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax + 0x48]
test rdx, rdx
je 0x1401864e0
mov rcx, r13
call fcn.140184600
lea r13, [0x140191180]
mov rsi, qword [rbx + 0x20]
lea rax, [0x140191060]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xa0], rax
lea rcx, [0x140191160]
mov rax, qword [r15]
xorps xmm0, xmm0
mov qword [rsp + 0xa8], rax
mov rax, qword [r14 + 8]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x90], rcx
movdqu xmmword [rsp + 0xb8], xmm0
test rsi, rsi
je 0x14018657b
mov edi, dword [rsi]
add rsi, 8
test edi, edi
jle 0x14018657b
mov rdx, qword [rsi]
lea rcx, [rsp + 0x78]
call fcn.1401846d0
test eax, eax
jne 0x14018657b
dec edi
add rsi, 0x20
test edi, edi
jg 0x140186560
test dword [rbx + 4], 0x1000000
je 0x14018659b
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax + 0x48]
test rdx, rdx
je 0x14018659b
lea rcx, [rsp + 0x78]
call fcn.140184600
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [r15]
test rdx, rdx
je 0x140186609
test rcx, rcx
je 0x140186601
cmp qword [rcx + 0x300], rbp
je 0x1401865c0
call fcn.14014e5d0
jmp 0x140186609
cmp rdx, qword [rcx + 0x1f0]
jae 0x140186601
cmp rdx, qword [rcx + 0x1e0]
jb 0x1401865e5
mov rax, qword [rcx + 0x1d8]
mov qword [rdx], rax
mov qword [rcx + 0x1d8], rdx
jmp 0x140186609
cmp rdx, qword [rcx + 0x1e8]
jb 0x140186601
mov rax, qword [rcx + 0x1c8]
mov qword [rdx], rax
mov qword [rcx + 0x1c8], rdx
jmp 0x140186609
mov rcx, rdx
call fcn.14014e560
movzx eax, word [rsp + 0x9c]
test al, 1
jne 0x14018662b
test ax, ax
je 0x14018662b
inc byte [rbx + 2]
mov r14, qword [r14 + 0x18]
test r14, r14
je 0x140186649
jmp 0x1401864e7
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140186649
mov eax, dword [rdi + 4]
xor eax, 0xffffefff
and eax, 0x8001000
or eax, 0x10
or dword [r14 + 0x28], eax
mov eax, dword [rsp + 0x58]
or dword [r12], eax
mov edi, 1
mov eax, edi
jmp 0x1401867eb
test dword [rbx + 4], 0x800
je case.0x140185e0e.21
mov ecx, dword [r14 + 0x28]
mov edi, dword [r14 + 0x20]
test cl, 0x2e
je 0x1401866c3
lea rax, str.partial_index_WHERE_clauses
test cl, 0x20
je 0x14018668c
lea r9, str.index_expressions
jmp 0x1401866a8
test cl, 4
je 0x14018669a
lea r9, str.CHECK_constraints
jmp 0x1401866a8
test cl, 8
lea r9, str.generated_columns
cmove r9, rax
lea r8, str.subqueries
mov rcx, r15
lea rdx, str._s_prohibited_in__s
call fcn.140151b10
mov byte [rbx], 0x78
jmp 0x1401866cf
mov rdx, qword [rbx + 0x20]
mov rcx, r9
call fcn.140184750
cmp edi, dword [r14 + 0x20]
je case.0x140185e0e.21
or dword [rbx + 4], 0x20
or dword [r14 + 0x28], 0x40
jmp case.0x140185e0e.21
mov ecx, dword [r14 + 0x28]
test cl, 0x2e
je case.0x140185e0e.21
lea rax, str.partial_index_WHERE_clauses
test cl, 0x20
je 0x140186709
lea r9, str.index_expressions
jmp 0x140186725
test cl, 4
je 0x140186717
lea r9, str.CHECK_constraints
jmp 0x140186725
test cl, 8
lea r9, str.generated_columns
cmove r9, rax
lea r8, str.parameters
mov rcx, r15
lea rdx, str._s_prohibited_in__s
call fcn.140151b10
mov byte [rbx], 0x78
jmp case.0x140185e0e.21
mov rcx, qword [rbx + 0x18]
call fcn.140187b20
mov rdi, rax
test rax, rax
je case.0x140185e0e.48
movzx eax, byte [rax]
cmp al, 0x3b
je 0x14018675f
cmp al, 0xa9
jne case.0x140185e0e.48
mov rdx, rdi
mov rcx, r9
call fcn.140185da0
cmp eax, 2
jne 0x140186774
jmp 0x1401867eb
cmp byte [rdi], 0xa9
jne case.0x140185e0e.48
movzx eax, byte [rbx]
mov byte [rbx + 2], al
xor eax, eax
mov byte [rbx], 0xae
jmp 0x1401867eb
mov rax, qword [r15]
cmp byte [rax + 0x63], bpl
jne case.0x140185e0e.21
mov rcx, qword [rbx + 0x10]
call fcn.140188000
cmp byte [rbx], 0x30
mov r8d, eax
jne 0x1401867b8
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdx + 8]
call fcn.140188000
cmp eax, r8d
jne 0x1401867c6
mov rcx, qword [rdx + 0x28]
jmp 0x1401867bc
mov rcx, qword [rbx + 0x18]
call fcn.140188000
cmp r8d, eax
je case.0x140185e0e.21
lea rdx, str.row_value_misused
mov rcx, r15
call fcn.140151b10
cmp dword [r15 + 0x30], ebp
jne 0x1401867e4
mov rax, qword [r15]
cmp byte [rax + 0x63], bpl
je 0x1401867e9
mov ebp, 2
mov eax, ebp
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1401eb080
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret