Function at 0x14016e430
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, 0x138
mov r8d, 0xffffffff
mov rax, qword [rcx]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x188], rdx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x60], rax
movzx eax, byte [rbx + 0x10]
mov qword [rsp + 0x180], rcx
lea rcx, [rax + rax*2]
mov word [rsp + 0x72], r8w
lea rax, [rax + rcx*4]
lea r12, [rdx + rax*8 + 8]
mov rax, qword [r12 + 0x20]
movzx edx, byte [r12 + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
test dl, 2
je 0x14016eaf0
mov r13, qword [r12 + 0x60]
mov rcx, qword [rsp + 0x180]
test r13, r13
setne sil
xor eax, eax
cmp qword [rcx + 0x18], 0
je 0x14016eba0
test sil, sil
je 0x14016e6ec
mov r9, qword [r13 + 0x48]
mov dword [rsp + 0x44], 1
mov r14, r13
nop dword [rax + rax]
test r9, r9
je 0x14016e50a
movzx edx, byte [r12 + 0x3c]
mov ecx, dword [r12 + 0x44]
mov r8, qword [rsp + 0x48]
call dbg.whereUsablePartialIndex
test eax, eax
je 0x14016e818
movzx eax, byte [r14 + 0x65]
and eax, 2
mov byte [rsp + 0x38], al
jne 0x14016e818
mov rax, qword [r14 + 0x10]
mov rcx, qword [rsp + 0x188]
xor r9d, r9d
xor r10d, r10d
movzx eax, word [rax]
mov dword [rbx + 0x3c], 0
mov byte [rbx + 0x11], 0
mov word [rsp + 0x42], ax
mov word [rbx + 0x16], ax
movzx eax, byte [r14 + 0x64]
mov dword [rbx + 0x18], 0
mov word [rbx + 0x1c], r9w
mov word [rbx + 0x12], r10w
mov qword [rbx], rcx
mov qword [rbx + 0x20], r14
test al, 4
jne 0x14016e820
mov rdx, qword [rsp + 0x180]
mov rdx, qword [rdx]
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14016e820
mov r8d, dword [rcx]
test r8d, r8d
jle 0x14016e5f4
mov r15d, dword [r12 + 0x44]
mov qword [rsp + 0x58], rbx
xor ebp, ebp
mov r13, rcx
mov ebx, r15d
nop dword [rax]
mov rax, rbp
shl rax, 5
mov rsi, qword [r13 + rax + 8]
nop dword [rax]
test rsi, rsi
je 0x14016e5e0
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x14016e710
test eax, 0x80000
je 0x14016e700
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
test rsi, rsi
jne 0x14016e5b5
nop dword [rax + rax]
add rbp, 1
cmp dword [r13], ebp
jg 0x14016e5a0
mov rbx, qword [rsp + 0x58]
movzx eax, byte [r14 + 0x64]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x14016edef
xor esi, esi
nop dword [rax]
test al, 0x20
je 0x14016e870
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rbx + 0x38], 0x240
test esi, esi
jne 0x14016e862
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
jne 0x14016e640
cmp qword [r14 + 0x48], 0
je 0x14016eb1b
movzx eax, byte [rsp + 0x38]
mov byte [rbx + 0x11], al
movsx edx, word [r14 + 0x5c]
mov eax, edx
shl eax, 4
sub eax, edx
mov rdx, qword [rsp + 0x50]
movsx r8d, word [rdx + 0x3c]
cdq
idiv r8d
movzx edx, word [rsp + 0x42]
lea eax, [rdx + rax + 1]
mov word [rbx + 0x14], ax
test rcx, rcx
jne 0x14016e947
movsx r8d, word [rsp + 0x42]
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
mov edi, r8d
call dbg.whereLoopOutputAdjust
test byte [r12 + 0x3c], 0x10
je 0x14016e83c
cmp qword [r14 + 0x50], 0
je 0x14016e83c
mov word [rbx + 0x16], di
mov rax, qword [rsp + 0x180]
xor r9d, r9d
mov r8, r14
mov rdx, r12
mov byte [rax + 0x20], 0
mov rcx, rax
call dbg.whereLoopAddBtreeIndex
mov rcx, qword [rsp + 0x180]
cmp byte [rcx + 0x20], 1
jne 0x14016e6e0
mov rcx, qword [rsp + 0x50]
or dword [rcx + 0x30], 0x100
test byte [r12 + 0x40], 2
je 0x14016e7f0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsi]
cmp al, 0x71
jne 0x14016e713
mov rsi, qword [rsi + 0x10]
jmp 0x14016e5b0
movzx eax, byte [rsi]
add eax, 0x59
test al, 0xfd
jne 0x14016e723
cmp ebx, dword [rsi + 0x2c]
je 0x14016e900
mov r15, qword [r14 + 0x50]
test r15, r15
je 0x14016e5e0
cmp word [r14 + 0x5e], 0
je 0x14016e5e0
xor edi, edi
jmp 0x14016e751
movzx eax, word [r14 + 0x5e]
add rdi, 1
cmp eax, edi
jle 0x14016e5e0
mov rax, qword [r14 + 8]
cmp word [rax + rdi*2], 0xfffe
jne 0x14016e740
mov rax, rdi
mov r8d, ebx
mov rcx, rsi
shl rax, 5
mov rdx, qword [r15 + rax + 8]
call dbg.sqlite3ExprCompareSkip
test eax, eax
jne 0x14016e740
movzx eax, byte [r14 + 0x64]
mov rbx, qword [rsp + 0x58]
mov esi, 1
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x14016e608
movzx eax, byte [rsp + 0x44]
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x38], al
movsx r8d, word [rsp + 0x42]
movzx eax, byte [rsp + 0x38]
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
mov byte [rbx + 0x11], al
lea eax, [r8 + 0x10]
mov edi, r8d
mov word [rbx + 0x14], ax
call dbg.whereLoopOutputAdjust
mov rcx, qword [rsp + 0x180]
mov rdx, rbx
call dbg.whereLoopInsert
mov word [rbx + 0x16], di
test eax, eax
je 0x14016e6a9
jmp 0x14016e6ec
add dword [rsp + 0x44], 1
mov r14, qword [r14 + 0x28]
test eax, eax
jne 0x14016e6ec
test r14, r14
je 0x14016e6ec
mov r9, qword [r14 + 0x48]
jmp 0x14016e4e8
xor eax, eax
jmp 0x14016e6e0
mov edx, eax
xor esi, esi
and edx, 3
cmp dl, 3
jne 0x14016e608
mov dword [rbx + 0x38], 0x100
jmp 0x14016e7a4
mov rcx, qword [rsp + 0x180]
mov rdx, rbx
call dbg.whereLoopInsert
movzx ecx, word [rsp + 0x42]
mov word [rbx + 0x16], cx
test eax, eax
je 0x14016e6a9
jmp 0x14016e6ec
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x38], al
jmp 0x14016e640
mov r8, qword [r14 + 0x48]
mov rcx, qword [r12 + 0x50]
and rcx, qword [r14 + 0x68]
mov qword [rsp + 0x78], rcx
test r8, r8
je 0x14016e8b2
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov rdx, r14
mov qword [rsp + 0x28], 0
mov rcx, qword [rax]
call dbg.wherePartIdxExpr
mov rcx, qword [rsp + 0x78]
movabs rax, 0x8000000000000000
mov dword [rbx + 0x38], 0x200
cmp rcx, rax
je 0x14016ea75
movzx eax, byte [r14 + 0x65]
and eax, 0x18
cmp al, 0x10
jne 0x14016ea99
test rcx, rcx
jne 0x14016ea75
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
jne 0x14016eab1
mov dword [rbx + 0x38], 0x240
jmp 0x14016e622
movzx edx, word [rsi + 0x30]
test dx, dx
js 0x14016e777
movzx ecx, word [r14 + 0x5e]
test cx, cx
je 0x14016e5e0
mov rax, qword [r14 + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x14016e93d
add rax, 2
cmp rcx, rax
je 0x14016e5e0
cmp dx, word [rax]
jne 0x14016e930
jmp 0x14016e777
mov ecx, edx
mov rdx, qword [rsp + 0x60]
mov r9d, dword [r12 + 0x44]
lea esi, [rcx + 0x10]
mov ecx, dword [rdx + 0x84]
test ecx, ecx
jle 0x14016ea61
xor r8d, r8d
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x58], rbx
xor ebp, ebp
mov qword [rsp + 0x68], r12
mov ebx, r9d
mov r12, r14
mov r15d, r8d
lea r11, [rsp + 0x80]
mov r14, rdx
mov rdi, rcx
jmp 0x14016e9bb
lea eax, [rsi - 1]
sub esi, 0x14
test byte [r13 + 0x14], 0x82
cmove esi, eax
add r15d, 1
add rbp, 0x38
cmp dword [r14 + 0x84], r15d
jle 0x14016ea50
mov r13, qword [r14 + 0x90]
lea rax, [sym.exprIdxCover]
add r13, rbp
mov rdx, qword [r13]
mov qword [rdi + 8], 0
mov qword [rdi], 0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
mov qword [rdi + 0x20], 0
mov dword [rsp + 0x88], ebx
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], r11
test rdx, rdx
je 0x14016ea38
mov rcx, rdi
mov qword [rsp + 0x38], r11
call dbg.sqlite3WalkExprNN
mov r11, qword [rsp + 0x38]
cmp word [rsp + 0xb4], 0
jne 0x14016ea50
movzx eax, word [r13 + 0x10]
test ax, ax
jg 0x14016e998
add esi, eax
jmp 0x14016e9a6
mov rbx, qword [rsp + 0x58]
mov r14, r12
mov r12, qword [rsp + 0x68]
movzx eax, word [rbx + 0x14]
movsx edx, si
movsx ecx, ax
call sym.sqlite3LogEstAdd
mov word [rbx + 0x14], ax
jmp 0x14016e678
mov rax, qword [rsp + 0x60]
mov r8d, dword [r12 + 0x44]
mov rdx, r14
mov rcx, qword [rax + 0x20]
call sym.whereIsCoveringIndex.isra.0
test eax, eax
jne 0x14016eb08
mov rcx, qword [rsp + 0x78]
jmp 0x14016e622
test rcx, rcx
jne 0x14016e622
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
je 0x14016e8f4
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x20], 0
jne 0x14016e8f4
mov rax, qword [0x140241d10]
test rax, rax
je 0x14016ee0d
mov ecx, 0x2bc
call rax
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x14016e8f4
jmp 0x14016e622
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
je 0x14016ed17
mov r13, qword [rax + 0x10]
jmp 0x14016e4af
or dword [rbx + 0x38], eax
xor ecx, ecx
mov qword [rsp + 0x78], 0
jmp 0x14016e622
test byte [r12 + 0x40], 2
jne 0x14016e640
test rcx, rcx
jne 0x14016e6a9
test byte [r14 + 0x64], 4
jne 0x14016e6a9
movsx edx, word [r14 + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x14016e6a9
mov rax, qword [rsp + 0x60]
test byte [rax + 0x3c], 4
jne 0x14016e6a9
cmp byte [0x140241b87], 0
je 0x14016e6a9
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x14016e6a9
mov eax, edx
mov byte [rbx + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x42]
lea eax, [rcx + rax + 1]
mov word [rbx + 0x14], ax
jmp 0x14016e678
mov rcx, qword [rsp + 0x50]
movzx ebp, word [rcx + 0x3a]
mov rcx, qword [rsp + 0x60]
test word [rcx + 0x3c], 0x1020
jne 0x14016e4cb
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x14016e4cb
test dl, 3
jne 0x14016ede8
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
jne 0x14016ede8
and edx, 0x48
jne 0x14016ede8
test byte [r12 + 0x3c], 0x10
jne 0x14016ede8
mov rax, qword [rsp + 0x48]
xor edi, edi
movsxd rdx, dword [rax + 0x14]
mov r15, qword [rax + 0x20]
lea rax, [rdx*8]
sub rax, rdx
lea rax, [r15 + rax*8]
mov qword [rsp + 0x38], rax
cmp bp, 0xa
jg 0x14016ee29
cmp r15, qword [rsp + 0x38]
jae 0x14016ede8
add ebp, edi
xor r14d, r14d
lea eax, [rbp - 0x19]
mov word [rsp + 0x42], ax
jmp 0x14016ed00
xor r8d, r8d
mov rdx, r12
mov rcx, r15
call sym.termCanDriveIndex
test eax, eax
je 0x14016ed0e
mov eax, 1
mov qword [rbx + 0x20], 0
mov word [rbx + 0x18], ax
mov rax, qword [rbx + 0x48]
mov dword [rbx + 0x3c], 1
mov qword [rax], r15
mov rax, qword [rsp + 0x50]
cmp byte [rax + 0x3f], 2
je 0x14016ee1f
test byte [rax + 0x31], 0x40
jne 0x14016ee1f
lea eax, [rbp + 0x1c]
test ax, ax
mov r11d, 0x2b
movsx ecx, di
mov edx, 0x2b
cmovs eax, r14d
mov word [rbx + 0x16], r11w
mov word [rbx + 0x12], ax
call sym.sqlite3LogEstAdd
mov dword [rbx + 0x38], 0x4000
mov rcx, qword [rsp + 0x180]
mov rdx, rbx
mov word [rbx + 0x14], ax
mov rax, qword [rsp + 0x188]
or rax, qword [r15 + 0x28]
mov qword [rbx], rax
call dbg.whereLoopInsert
test eax, eax
sete dl
add r15, 0x38
cmp qword [rsp + 0x38], r15
jbe 0x14016ee00
test dl, dl
je 0x14016e6ec
mov rax, qword [r15 + 0x28]
and rax, qword [rbx + 8]
je 0x14016ec46
mov edx, 1
xor eax, eax
jmp 0x14016ece9
lea r13, [rsp + 0xc0]
xor eax, eax
mov ecx, 0xe
mov edx, 1
mov rdi, r13
rep stosq qword [rdi], rax
lea rax, [rsp + 0x72]
xor ecx, ecx
mov dword [rsp + 0x11c], 0x10003
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x122], 5
mov word [rsp + 0x120], dx
movzx edx, byte [r12 + 0x40]
mov byte [rsp + 0x124], 3
movzx ebp, word [rax + 0x3a]
mov qword [rsp + 0xd8], rax
mov word [rsp + 0x74], bp
mov word [rsp + 0x76], cx
test dl, 1
jne 0x14016eda7
mov rax, qword [r12 + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x180]
xor r9d, r9d
cmp qword [rax + 0x18], 0
jne 0x14016e4d8
mov rax, qword [rsp + 0x60]
test word [rax + 0x3c], 0x1020
jne 0x14016e4d4
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
je 0x14016e4d4
mov esi, 1
jmp 0x14016ebcf
xor eax, eax
jmp 0x14016e4cb
mov dword [rbx + 0x38], 0x100
mov byte [rsp + 0x38], 0
jmp 0x14016e7a4
test dl, dl
jne 0x14016e4cb
jmp 0x14016e6ec
test esi, esi
jne 0x14016e862
mov byte [rsp + 0x38], 0
jmp 0x14016e640
movzx eax, word [rsp + 0x42]
jmp 0x14016ec97
movsx rcx, bp
call dbg.sqlite3LogEst
lea edi, [rax - 0x21]
jmp 0x14016ec29