Function at 0x14018eb90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
movups xmmword [rsp + 0x130], xmm6
mov eax, 0xffffffff
mov rsi, qword [rcx + 0x10]
mov r10, qword [rcx]
mov word [rsp + 0x72], ax
movzx eax, byte [rsi + 0x10]
mov r13, rcx
mov qword [rsp + 0x198], rdx
mov rdx, qword [r10 + 8]
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
lea rbp, [rdx + rax*8 + 8]
mov rax, qword [r13 + 8]
mov r11, qword [rbp + 0x20]
mov qword [rsp + 0x38], rax
movzx eax, byte [rbp + 0x40]
test al, 2
je 0x14018ec20
mov rbx, qword [rbp + 0x60]
movzx r8d, word [r11 + 0x3a]
test rbx, rbx
setne r15b
cmp qword [r13 + 0x18], 0
je 0x14018ec42
xor eax, eax
test r15b, r15b
jne 0x14018ee41
jmp 0x14018f04b
test byte [r11 + 0x30], 0x80
je 0x14018eda7
mov rbx, qword [r11 + 0x10]
movzx r8d, word [r11 + 0x3a]
test rbx, rbx
setne r15b
cmp qword [r13 + 0x18], 0
jne 0x14018ec08
test word [r10 + 0x3c], 0x1020
jne 0x14018ec08
mov rdx, qword [r10]
mov rdx, qword [rdx]
test byte [rdx + 0x31], 0x80
je 0x14018ec08
test al, 3
jne 0x14018ec08
test byte [r11 + 0x30], 0x80
jne 0x14018ec08
test al, 0x48
jne 0x14018ec08
test byte [rbp + 0x3c], 0x10
jne 0x14018ec08
mov rax, qword [rsp + 0x38]
xor r14d, r14d
movsxd rdx, dword [rax + 0x14]
mov r12, qword [rax + 0x20]
lea rax, [rdx*8]
sub rax, rdx
lea rdx, [r12 + rax*8]
cmp r8w, 0xa
jg 0x14018f502
cmp r12, rdx
jae 0x14018ec08
lea eax, [r14 + r8]
mov qword [rsp + 0x48], rbx
mov rbx, rdx
movd xmm6, dword [0x14039f778]
mov word [rsp + 0x68], ax
sub eax, 0x19
mov byte [rsp + 0x58], r15b
mov r15, r12
mov r12, r11
mov word [rsp + 0x40], ax
mov qword [rsp + 0x50], r10
jmp 0x14018ed8d
mov rcx, r15
xor r8d, r8d
mov rdx, rbp
call sym.termCanDriveIndex
mov ecx, 1
test eax, eax
je 0x14018ed78
mov eax, 1
mov qword [rsi + 0x20], 0
mov word [rsi + 0x18], ax
mov rax, qword [rsi + 0x48]
movd dword [rsi + 0x3c], xmm6
mov qword [rax], r15
cmp byte [r12 + 0x3f], 2
je 0x14018f4f8
test byte [r12 + 0x31], 0x40
jne 0x14018f4f8
movzx eax, word [rsp + 0x68]
add eax, 0x1c
xor edx, edx
test ax, ax
mov r11d, 0x2b
movsx ecx, r14w
cmovs eax, edx
mov word [rsi + 0x16], r11w
mov edx, 0x2b
mov word [rsi + 0x12], ax
call sym.sqlite3LogEstAdd
or rdi, qword [rsp + 0x198]
mov rcx, r13
mov rdx, rsi
mov word [rsi + 0x14], ax
mov dword [rsi + 0x38], 0x4000
mov qword [rsi], rdi
call dbg.whereLoopInsert
test eax, eax
sete cl
add r15, 0x38
cmp r15, rbx
jae 0x14018f52c
test cl, cl
je 0x14018f52c
mov rdi, qword [r15 + 0x28]
mov rax, rdi
and rax, qword [rsi + 8]
je 0x14018ecd5
mov ecx, 1
xor eax, eax
jmp 0x14018ed78
lea rbx, [rsp + 0xc0]
xor eax, eax
mov ecx, 0xe
mov rdi, rbx
rep stosq qword [rdi], rax
lea rax, [rsp + 0x72]
mov byte [rsp + 0x122], 5
movq xmm0, rax
lea rax, [rsp + 0x74]
mov dword [rsp + 0x11e], 0x10001
movq xmm1, rax
mov eax, 3
mov byte [rsp + 0x124], 3
movzx r8d, word [r11 + 0x3a]
mov word [rsp + 0x11c], ax
xor eax, eax
punpcklqdq xmm0, xmm1
mov word [rsp + 0x76], ax
movzx eax, byte [rbp + 0x40]
mov qword [rsp + 0xd8], r11
mov word [rsp + 0x74], r8w
movups xmmword [rsp + 0xc8], xmm0
test al, 1
jne 0x14018ee36
mov rdx, qword [rbp + 0x20]
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0xe8], rdx
cmp qword [r13 + 0x18], 0
je 0x14018f4ed
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x48], r11
nop dword [rax + rax]
mov r9, qword [rbx + 0x48]
test r9, r9
je 0x14018ee7a
movzx edx, byte [rbp + 0x3c]
mov ecx, dword [rbp + 0x44]
mov r8, qword [rsp + 0x38]
call dbg.whereUsablePartialIndex
test eax, eax
je 0x14018f160
movzx edi, byte [rbx + 0x65]
and edi, 2
jne 0x14018f160
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r10d, r10d
movzx r14d, word [rax]
mov rax, qword [rsp + 0x198]
mov byte [rsi + 0x11], 0
mov dword [rsi + 0x3c], 0
movzx edx, byte [rbx + 0x64]
mov dword [rsi + 0x18], 0
mov r15d, dword [rbp + 0x44]
mov word [rsi + 0x1c], r9w
mov word [rsi + 0x12], r10w
mov qword [rsi], rax
mov word [rsi + 0x16], r14w
mov qword [rsi + 0x20], rbx
test dl, 4
jne 0x14018f1f0
mov rax, qword [r13]
mov r12, qword [rax + 0x10]
test r12, r12
je 0x14018f1f0
mov r8d, dword [r12]
xor eax, eax
test r8d, r8d
jle 0x14018f4d9
mov qword [rsp + 0x190], r13
mov byte [rsp + 0x40], dil
mov rdi, r12
mov qword [rsp + 0x50], rsi
mov rsi, rbx
mov qword [rsp + 0x58], rbp
mov rbp, rax
nop word cs:[rax + rax]
mov rdx, rbp
shl rdx, 5
mov r12, qword [rdi + rdx + 8]
nop dword [rax]
test r12, r12
je 0x14018ef60
mov eax, dword [r12 + 4]
test eax, 0x82000
je 0x14018f080
test eax, 0x80000
je 0x14018f070
mov rax, qword [r12 + 0x20]
mov r12, qword [rax + 8]
test r12, r12
jne 0x14018ef35
nop
add rbp, 1
cmp dword [rdi], ebp
jg 0x14018ef20
mov rbx, rsi
movzx edi, byte [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
xor r10d, r10d
movzx edx, byte [rbx + 0x64]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x190]
mov eax, edx
not eax
test al, 3
je 0x14018f11b
and edx, 0x20
je 0x14018f233
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rsi + 0x38], 0x240
test r10d, r10d
je 0x14018f213
movzx edi, byte [rsp + 0x68]
mov rax, qword [rsp + 0x48]
movsx edx, word [rbx + 0x5c]
movsx r8d, word [rax + 0x3c]
mov eax, edx
mov byte [rsi + 0x11], dil
shl eax, 4
sub eax, edx
cdq
idiv r8d
lea eax, [r14 + rax + 1]
mov word [rsi + 0x14], ax
test rcx, rcx
jne 0x14018f2bc
mov rcx, qword [rsp + 0x38]
movsx r8d, r14w
mov rdx, rsi
call dbg.whereLoopOutputAdjust
test byte [rbp + 0x3c], 0x10
je 0x14018f13f
cmp qword [rbx + 0x50], 0
je 0x14018f13f
mov word [rsi + 0x16], r14w
mov byte [r13 + 0x20], 0
xor r9d, r9d
mov r8, rbx
mov rdx, rbp
mov rcx, r13
call dbg.whereLoopAddBtreeIndex
cmp byte [r13 + 0x20], 1
jne 0x14018f041
mov rcx, qword [rsp + 0x48]
or dword [rcx + 0x30], 0x100
test byte [rbp + 0x40], 2
je 0x14018f16c
movups xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [r12 + 0x10]
jmp 0x14018ef30
cmp byte [r12], 0xa7
je 0x14018f190
mov r13, qword [rsi + 0x50]
test r13, r13
je 0x14018ef60
cmp word [rsi + 0x5e], 0
je 0x14018ef60
xor ebx, ebx
jmp 0x14018f0c0
movzx eax, word [rsi + 0x5e]
add rbx, 1
cmp eax, ebx
jle 0x14018ef60
mov rax, qword [rsi + 8]
cmp word [rax + rbx*2], 0xfffe
jne 0x14018f0b0
mov rax, rbx
mov r8d, r15d
mov rcx, r12
shl rax, 5
mov rdx, qword [r13 + rax + 8]
call dbg.sqlite3ExprCompareSkip
test eax, eax
jne 0x14018f0b0
mov rbx, rsi
movzx edi, byte [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov r10d, 1
movzx edx, byte [rbx + 0x64]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x190]
mov eax, edx
not eax
test al, 3
jne 0x14018ef95
movzx edi, byte [rsp + 0x68]
lea eax, [r14 + 0x10]
mov byte [rsi + 0x11], dil
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
mov dword [rsi + 0x38], 0x100
movsx r8d, r14w
mov word [rsi + 0x14], ax
call dbg.whereLoopOutputAdjust
mov rdx, rsi
mov rcx, r13
call dbg.whereLoopInsert
mov word [rsi + 0x16], r14w
test eax, eax
je 0x14018f018
jmp 0x14018f04b
xor eax, eax
test byte [rbp + 0x40], 2
jne 0x14018f04b
add dword [rsp + 0x68], 1
mov rbx, qword [rbx + 0x28]
test eax, eax
jne 0x14018f04b
test rbx, rbx
jne 0x14018ee58
jmp 0x14018f04b
cmp r15d, dword [r12 + 0x2c]
jne 0x14018f08b
movzx r8d, word [r12 + 0x30]
test r8w, r8w
js 0x14018f0e6
movzx r10d, word [rsi + 0x5e]
test r10w, r10w
je 0x14018ef60
mov rdx, qword [rsi + 8]
sub r10d, 1
lea r10, [rdx + r10*2 + 2]
jmp 0x14018f1dd
add rdx, 2
cmp rdx, r10
je 0x14018ef60
cmp r8w, word [rdx]
jne 0x14018f1d0
jmp 0x14018f0e6
mov eax, edx
not eax
test al, 3
je 0x14018f11b
and edx, 0x20
je 0x14018f230
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rsi + 0x38], 0x240
mov rax, qword [rsp + 0x48]
test byte [rax + 0x30], 0x80
je 0x14018f403
movsx edx, word [rbx + 0x5c]
movsx r8d, word [rax + 0x3c]
jmp 0x14018efcc
xor r10d, r10d
mov r8, qword [rbx + 0x48]
mov rcx, qword [rbp + 0x50]
and rcx, qword [rbx + 0x68]
mov qword [rsp + 0x78], rcx
test r8, r8
je 0x14018f27e
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov dword [rsp + 0x40], r10d
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call dbg.wherePartIdxExpr
mov rcx, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x40]
movabs rax, 0x8000000000000000
mov dword [rsi + 0x38], 0x200
cmp rcx, rax
je 0x14018f499
movzx eax, byte [rbx + 0x65]
and eax, 0x18
cmp al, 0x10
je 0x14018f490
test rcx, rcx
jne 0x14018efb0
mov dword [rsi + 0x38], 0x240
jmp 0x14018efb0
mov rdx, qword [rsp + 0x60]
mov r11d, dword [rbp + 0x44]
lea edi, [r14 + 0x10]
mov ecx, dword [rdx + 0x84]
test ecx, ecx
jle 0x14018f3ef
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x50], rsi
pxor xmm6, xmm6
lea r10, [rsp + 0x80]
mov qword [rsp + 0x58], rbp
mov rsi, rbx
lea rcx, [rsp + 0x90]
mov word [rsp + 0x6e], r14w
mov rbp, rdx
mov ebx, r9d
mov r15, r8
mov qword [rsp + 0x190], r13
mov r14, r10
mov r13d, r11d
jmp 0x14018f342
lea eax, [rdi - 1]
sub edi, 0x14
test byte [r12 + 0x14], 0x82
cmove edi, eax
add ebx, 1
add r15, 0x38
cmp dword [rbp + 0x84], ebx
jle 0x14018f3d0
mov r12, qword [rbp + 0x90]
lea rax, [sym.exprIdxCover]
add r12, r15
mov rdx, qword [r12]
mov qword [rcx + 0x20], 0
movups xmmword [rcx], xmm6
movups xmmword [rcx + 0x10], xmm6
mov dword [rsp + 0x88], r13d
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], r14
test rdx, rdx
je 0x14018f3a5
mov qword [rsp + 0x40], rcx
call dbg.sqlite3WalkExprNN
mov rcx, qword [rsp + 0x40]
cmp word [rsp + 0xb4], 0
jne 0x14018f3d0
movzx eax, word [r12 + 0x10]
test ax, ax
jg 0x14018f320
add edi, eax
add ebx, 1
add r15, 0x38
cmp dword [rbp + 0x84], ebx
jg 0x14018f342
nop dword [rax]
mov rbx, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
movzx r14d, word [rsp + 0x6e]
mov r13, qword [rsp + 0x190]
movzx eax, word [rsi + 0x14]
movsx edx, di
movsx ecx, ax
call sym.sqlite3LogEstAdd
mov word [rsi + 0x14], ax
jmp 0x14018efed
cmp qword [rbx + 0x48], 0
jne 0x14018efbe
test byte [rbp + 0x40], 2
jne 0x14018efbe
test rcx, rcx
jne 0x14018f018
test byte [rbx + 0x64], 4
jne 0x14018f018
mov rax, qword [rsp + 0x48]
movsx edx, word [rbx + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x14018f018
mov rax, qword [rsp + 0x60]
test byte [rax + 0x3c], 4
jne 0x14018f018
cmp byte [0x140245ba7], 0
je 0x14018f018
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x14018f018
mov eax, edx
mov byte [rsi + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
lea eax, [r14 + rax + 1]
mov word [rsi + 0x14], ax
jmp 0x14018efed
test rcx, rcx
je 0x14018f2b0
mov rax, qword [rsp + 0x60]
mov r8d, dword [rbp + 0x44]
mov rdx, rbx
mov dword [rsp + 0x40], r10d
mov rcx, qword [rax + 0x20]
call sym.whereIsCoveringIndex.isra.0
mov r10d, dword [rsp + 0x40]
test eax, eax
jne 0x14018f4c6
mov rcx, qword [rsp + 0x78]
jmp 0x14018efb0
or dword [rsi + 0x38], eax
xor ecx, ecx
mov qword [rsp + 0x78], 0
jmp 0x14018efb0
mov eax, edx
xor r10d, r10d
not eax
test al, 3
jne 0x14018ef95
jmp 0x14018f11b
mov r15d, 1
jmp 0x14018ec42
movzx eax, word [rsp + 0x40]
jmp 0x14018ed2d
movsx rax, r8w
lea r9, [0x140398110]
bsr rcx, rax
sub ecx, 3
shr rax, cl
lea ecx, [rcx + rcx*4]
and eax, 7
movzx eax, word [r9 + rax*2]
lea r14d, [rax + rcx*2 - 3]
jmp 0x14018ec96
movzx r15d, byte [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov r11, r12
mov r10, qword [rsp + 0x50]
and r15d, ecx
jmp 0x14018ec0a