Function at 0x1402982e0
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, 0x168
movaps xmmword [rsp + 0x150], xmm6
mov ebp, 0xffffffff
mov rbx, qword [rcx + 0x10]
mov r10, qword [rcx]
movzx eax, byte [rbx + 0x10]
mov qword [rsp + 0x1b8], rdx
mov r14, rcx
mov rdx, qword [r10 + 8]
mov word [rsp + 0x6a], bp
imul rax, rax, 0x68
lea r13, [rdx + rax + 8]
mov rax, qword [rcx + 8]
mov r11, qword [r13 + 0x20]
mov qword [rsp + 0x20], rax
movzx eax, byte [r13 + 0x40]
test al, 2
je 0x140298b7d
mov rdi, qword [r13 + 0x60]
movzx r8d, word [r11 + 0x3a]
test rdi, rdi
setne r12b
xor ebp, ebp
cmp qword [r14 + 0x18], 0
je 0x140298ba5
test r12b, r12b
mov dword [rsp + 0x28], 1
je 0x140298636
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x30], r11
nop word [rax + rax]
mov r9, qword [rdi + 0x48]
test r9, r9
je 0x1402983a4
movzx edx, byte [r13 + 0x3c]
mov ecx, dword [r13 + 0x44]
mov r8, qword [rsp + 0x20]
call sym.whereUsablePartialIndex
test eax, eax
je 0x140298700
movzx ebp, byte [rdi + 0x65]
and ebp, 1
jne 0x140298700
mov rax, qword [rdi + 0x10]
xor ecx, ecx
xor r8d, r8d
movzx esi, word [rax]
mov byte [rbx + 0x11], 0
mov dword [rbx + 0x3c], 0
movzx edx, byte [rdi + 0x64]
mov rax, qword [rsp + 0x1b8]
mov dword [rbx + 0x18], 0
mov r12d, dword [r13 + 0x44]
mov word [rbx + 0x1c], cx
mov word [rbx + 0x12], r8w
test dl, 4
mov word [rbx + 0x16], si
mov qword [rbx], rax
mov qword [rbx + 0x20], rdi
jne 0x140298820
mov rax, qword [r14]
mov r8, qword [rax + 0x10]
test r8, r8
je 0x140298820
mov eax, dword [r8]
xor r15d, r15d
test eax, eax
jle 0x140298820
mov qword [rsp + 0x38], rbx
mov rbx, r15
mov r15d, r12d
mov qword [rsp + 0x40], r13
mov r13, r8
mov word [rsp + 0x48], si
mov rsi, rdi
mov qword [rsp + 0x1b0], r14
nop dword [rax]
mov rdx, rbx
shl rdx, 5
mov r12, qword [r13 + rdx + 8]
test r12, r12
je 0x140298483
nop dword [rax]
mov edx, dword [r12 + 4]
test edx, 0x82000
je 0x140298677
and edx, 0x80000
je 0x140298658
mov rdx, qword [r12 + 0x20]
mov r12, qword [rdx + 8]
test r12, r12
jne 0x140298458
add rbx, 1
cmp eax, ebx
jg 0x140298440
mov rdi, rsi
mov rbx, qword [rsp + 0x38]
movzx eax, byte [rdi + 0x64]
mov r13, qword [rsp + 0x40]
movzx esi, word [rsp + 0x48]
mov r14, qword [rsp + 0x1b0]
mov edx, eax
not edx
and edx, 3
je 0x1402984ce
test al, 0x20
je 0x140298835
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
jmp 0x140298884
movzx ebp, byte [rsp + 0x28]
mov r10, qword [rsp + 0x30]
mov byte [rbx + 0x11], bpl
mov eax, esi
mov dword [rbx + 0x38], 0x100
mov ecx, dword [r10 + 0x30]
mov edx, ecx
shr edx, 0xc
and edx, 2
sub eax, edx
add eax, 0x10
mov word [rbx + 0x14], ax
cmp byte [r10 + 0x3f], 2
je 0x140298501
and ch, 0x40
je 0x140298508
mov dword [rbx + 0x38], 0x2000100
mov rcx, qword [rsp + 0x20]
movsx r8d, si
mov rdx, rbx
call sym.whereLoopOutputAdjust
mov rdx, rbx
mov rcx, r14
call sym.whereLoopInsert
mov word [rbx + 0x16], si
test eax, eax
mov ebp, eax
jne 0x140298636
xor r9d, r9d
mov byte [r14 + 0x2c], 0
mov r8, rdi
mov rdx, r13
mov rcx, r14
call sym.whereLoopAddBtreeIndex
cmp byte [r14 + 0x2c], 1
mov ebp, eax
jne 0x14029855d
mov rax, qword [rsp + 0x30]
or dword [rax + 0x30], 0x100
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x14029861b
mov rdx, qword [rax]
mov r15, qword [rax + 8]
movzx ecx, word [rdx + 8]
mov r8, qword [r15 + 0x18]
test cx, cx
je 0x1402985d4
lea edx, [rcx - 1]
mov qword [rsp + 0x38], rbx
mov r12, rax
mov rbx, r15
imul rdx, rdx, 0x38
lea rsi, [r15 + rdx + 0x38]
mov r15, r8
nop dword [rax + rax]
test word [rbx + 0x14], 0x9000
jne 0x1402985af
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x1402985b7
mov rcx, rbx
call sym.vdbeMemClear
add rbx, 0x38
cmp rbx, rsi
jne 0x1402985a0
mov rdx, qword [r12]
mov rax, r12
mov r8, r15
mov rbx, qword [rsp + 0x38]
test rdx, rdx
je 0x1402985dd
sub dword [rdx], 1
je 0x140298a8f
test r8, r8
je 0x140298613
cmp rax, qword [r8 + 0x1f0]
jae 0x140298605
cmp rax, qword [r8 + 0x1e0]
jae 0x140298b35
cmp rax, qword [r8 + 0x1e8]
jae 0x140298d55
cmp qword [r8 + 0x308], 0
jne 0x140298ae2
mov rcx, rax
call sym.sqlite3_free
test byte [r13 + 0x40], 2
mov dword [r14 + 0x28], 0
mov qword [r14 + 0x20], 0
je 0x14029870d
movaps xmm6, xmmword [rsp + 0x150]
mov eax, ebp
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [r12 + 0x10]
test r12, r12
je 0x140298483
mov edx, dword [r12 + 4]
test edx, 0x82000
jne 0x140298469
cmp byte [r12], 0xa7
je 0x140298730
mov r14, qword [rsi + 0x50]
test r14, r14
je 0x140298483
movzx edx, word [rsi + 0x5e]
test dx, dx
je 0x140298483
xor edi, edi
jmp 0x1402986ab
add rdi, 1
movzx eax, dx
cmp eax, edi
jle 0x1402986e4
mov rax, qword [rsi + 8]
cmp word [rax + rdi*2], 0xfffe
jne 0x1402986a0
mov rax, rdi
mov r8d, r15d
mov rcx, r12
shl rax, 5
mov rdx, qword [r14 + rax + 8]
call sym.sqlite3ExprCompareSkip
test eax, eax
je 0x140298780
movzx edx, word [rsi + 0x5e]
add rdi, 1
movzx eax, dx
cmp eax, edi
jg 0x1402986ab
mov eax, dword [r13]
add rbx, 1
cmp eax, ebx
jg 0x140298440
jmp 0x14029848b
xor ebp, ebp
test byte [r13 + 0x40], 2
jne 0x140298636
add dword [rsp + 0x28], 1
test ebp, ebp
mov rdi, qword [rdi + 0x28]
jne 0x140298636
test rdi, rdi
jne 0x140298380
jmp 0x140298636
cmp r15d, dword [r12 + 0x2c]
jne 0x140298682
movzx r10d, word [r12 + 0x30]
test r10w, r10w
js 0x140298780
movzx r11d, word [rsi + 0x5e]
test r11w, r11w
je 0x140298483
mov rdx, qword [rsi + 8]
sub r11d, 1
lea r11, [rdx + r11*2 + 2]
jmp 0x140298775
add rdx, 2
cmp r11, rdx
je 0x140298483
cmp r10w, word [rdx]
jne 0x140298768
nop dword [rax + rax]
mov rdi, rsi
mov rbx, qword [rsp + 0x38]
movzx eax, byte [rdi + 0x64]
mov r13, qword [rsp + 0x40]
movzx esi, word [rsp + 0x48]
mov r14, qword [rsp + 0x1b0]
mov edx, eax
not edx
and edx, 3
je 0x1402984c9
test al, 0x20
je 0x140298af2
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
movzx ebp, byte [rsp + 0x28]
mov byte [rbx + 0x11], bpl
mov rcx, qword [rsp + 0x30]
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rcx + 0x3c]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv ecx
test r15, r15
lea eax, [rsi + rax + 1]
mov word [rbx + 0x14], ax
jne 0x140298918
mov rcx, qword [rsp + 0x20]
movsx r8d, si
mov rdx, rbx
call sym.whereLoopOutputAdjust
test byte [r13 + 0x3c], 0x10
je 0x140298519
cmp qword [rdi + 0x50], 0
je 0x140298519
mov word [rbx + 0x16], si
jmp 0x140298532
mov eax, edx
not eax
test al, 3
je 0x1402984ce
and edx, 0x20
jne 0x1402984ba
xor r9d, r9d
movabs rax, 0x8000000000000000
mov r15, qword [r13 + 0x50]
and r15, qword [rdi + 0x90]
mov dword [rbx + 0x38], 0x200
cmp r15, rax
je 0x140298b06
movzx eax, byte [rdi + 0x65]
and eax, 0xc
cmp al, 8
je 0x140298afd
test r15, r15
jne 0x14029887b
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
test r9d, r9d
jne 0x1402987bd
mov rax, qword [rsp + 0x30]
test byte [rax + 0x30], 0x80
jne 0x1402987c2
cmp qword [rdi + 0x48], 0
jne 0x1402987c2
test byte [r13 + 0x40], 2
jne 0x1402987c2
test r15, r15
jne 0x140298532
test byte [rdi + 0x64], 4
jne 0x140298532
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x140298532
mov rax, qword [rsp + 0x50]
test byte [rax + 0x3c], 4
jne 0x140298532
cmp byte [0x1402b2067], 0
je 0x140298532
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x140298532
mov eax, edx
mov byte [rbx + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
lea eax, [rsi + rax + 1]
mov word [rbx + 0x14], ax
jmp 0x1402987ee
mov ecx, dword [r13 + 0x44]
lea ebp, [rsi + 0x10]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + 0x84]
test edx, edx
jle 0x140298a4e
lea r12, [rsp + 0x70]
xor r9d, r9d
xor r10d, r10d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r13
mov rbx, r12
mov r13, rdi
mov edi, r10d
mov word [rsp + 0x5e], si
lea r15, [rsp + 0x80]
mov rsi, rcx
mov qword [rsp + 0x1b0], r14
mov r14, r9
jmp 0x14029899a
lea eax, [rbp - 1]
sub ebp, 0x14
test byte [r12 + 0x14], 0x82
cmove ebp, eax
add edi, 1
add r14, 0x38
cmp dword [rsi + 0x84], edi
jle 0x140298a30
mov r12, qword [rsi + 0x90]
mov eax, dword [rsp + 0x38]
add r12, r14
mov rdx, qword [r12]
mov dword [rsp + 0x78], eax
lea rax, [sym.exprIdxCover]
mov qword [r15], 0
mov qword [r15 + 0x10], 0
mov qword [r15 + 0x18], 0
test rdx, rdx
mov qword [r15 + 0x20], 0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa8], rbx
je 0x140298a03
mov rcx, r15
call sym.walkExpr
cmp word [rsp + 0xa4], 0
jne 0x140298a30
movzx eax, word [r12 + 0x10]
test ax, ax
jg 0x140298978
add ebp, eax
add edi, 1
add r14, 0x38
cmp dword [rsi + 0x84], edi
jg 0x14029899a
nop word [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rdi, r13
movzx esi, word [rsp + 0x5e]
mov r13, qword [rsp + 0x48]
mov r14, qword [rsp + 0x1b0]
movzx eax, word [rbx + 0x14]
cmp bp, ax
movsx edx, bp
movsx ecx, ax
jg 0x140298b4b
lea r9d, [rdx + 0x31]
mov ebp, eax
cmp r9d, ecx
jl 0x140298a86
lea eax, [rdx + 0x1f]
cmp eax, ecx
jl 0x140298d6b
mov eax, ecx
sub eax, edx
lea rdx, str._n_n_t_t_b_b_a_a_a
cdqe
movzx eax, byte [rdx + rax]
add ebp, eax
mov word [rbx + 0x14], bp
jmp 0x1402987ee
mov rcx, qword [rdx + 0x10]
cmp rdx, qword [rcx + 0x1f0]
jae 0x140298ab6
cmp rdx, qword [rcx + 0x1e0]
jae 0x140298d3f
cmp rdx, qword [rcx + 0x1e8]
jae 0x140298e15
cmp qword [rcx + 0x308], 0
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
je 0x140298d28
call sym.measureAllocationSize
mov rax, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
jmp 0x1402985dd
mov rdx, rax
mov rcx, r8
call sym.measureAllocationSize
jmp 0x14029861b
mov r9d, 1
jmp 0x140298838
test r15, r15
je 0x140298871
mov rax, qword [rsp + 0x50]
mov rdx, rdi
mov dword [rsp + 0x38], r9d
mov r8d, dword [r13 + 0x44]
mov rcx, qword [rax + 0x20]
call sym.whereIsCoveringIndex.isra.0
mov r9d, dword [rsp + 0x38]
test eax, eax
je 0x14029887b
or dword [rbx + 0x38], eax
jmp 0x140298878
mov rdx, qword [r8 + 0x1d8]
mov qword [rax], rdx
mov qword [r8 + 0x1d8], rax
jmp 0x14029861b
lea eax, [rcx + 0x31]
cmp eax, edx
jl 0x140298a86
lea eax, [rcx + 0x1f]
cmp eax, edx
jl 0x140298d6b
mov eax, edx
lea rdx, str._n_n_t_t_b_b_a_a_a
sub eax, ecx
cdqe
movzx eax, byte [rdx + rax]
add ebp, eax
mov word [rbx + 0x14], bp
jmp 0x1402987ee
test byte [r11 + 0x30], 0x80
je 0x140298d77
mov rdi, qword [r11 + 0x10]
movzx r8d, word [r11 + 0x3a]
test rdi, rdi
setne r12b
xor ebp, ebp
cmp qword [r14 + 0x18], 0
jne 0x14029835f
movzx edx, word [r10 + 0x3c]
and dx, 0x1020
jne 0x14029835f
mov rcx, qword [r10]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x14029835f
test al, 3
jne 0x14029835f
test byte [r11 + 0x30], 0x80
jne 0x14029835f
test al, 0x48
jne 0x14029835f
test byte [r13 + 0x3c], 0x10
jne 0x14029835f
mov rax, qword [rsp + 0x20]
xor r9d, r9d
mov rsi, qword [rax + 0x20]
movsxd rax, dword [rax + 0x14]
imul rax, rax, 0x38
add rax, rsi
cmp r8w, 0xa
mov qword [rsp + 0x28], rax
jg 0x140298e2b
mov rax, qword [rsp + 0x28]
cmp rsi, rax
jae 0x140298e49
lea eax, [r8 + rdx]
mov rbp, rsi
mov esi, r9d
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x30], ax
sub eax, 0x19
movd xmm6, dword [0x140335fd0]
mov rdi, r11
mov word [rsp + 0x38], ax
mov qword [rsp + 0x40], r10
jmp 0x140298d0b
xor r8d, r8d
mov rdx, r13
mov rcx, rbp
call sym.termCanDriveIndex
mov edx, 1
test eax, eax
je 0x140298cf1
mov rax, qword [rbx + 0x48]
mov r10d, 1
movd dword [rbx + 0x3c], xmm6
mov word [rbx + 0x18], r10w
mov qword [rbx + 0x20], 0
mov qword [rax], rbp
cmp byte [rdi + 0x3f], 2
je 0x140298e3f
test byte [rdi + 0x31], 0x40
jne 0x140298e3f
movzx eax, word [rsp + 0x30]
add eax, 0x1c
xor edx, edx
test ax, ax
mov r9d, 0x2b
cmovs eax, edx
mov word [rbx + 0x16], r9w
movsx ecx, si
mov edx, 0x2b
mov word [rbx + 0x12], ax
call sym.sqlite3LogEstAdd
or r15, qword [rsp + 0x1b8]
mov rdx, rbx
mov rcx, r14
mov word [rbx + 0x14], ax
mov dword [rbx + 0x38], 0x4000
mov qword [rbx], r15
call sym.whereLoopInsert
test eax, eax
sete dl
mov rcx, qword [rsp + 0x28]
add rbp, 0x38
cmp rbp, rcx
jae 0x140298e50
test dl, dl
je 0x140298e50
mov r15, qword [rbp + 0x28]
mov rax, r15
and rax, qword [rbx + 8]
je 0x140298c51
mov edx, 1
xor eax, eax
jmp 0x140298cf1
mov rcx, rdx
call sym.sqlite3_free
mov r8, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
jmp 0x1402985dd
mov r9, qword [rcx + 0x1d8]
mov qword [rdx], r9
mov qword [rcx + 0x1d8], rdx
jmp 0x1402985dd
mov rdx, qword [r8 + 0x1c8]
mov qword [rax], rdx
mov qword [r8 + 0x1c8], rax
jmp 0x14029861b
add ebp, 1
mov word [rbx + 0x14], bp
jmp 0x1402987ee
lea rdx, [rsp + 0xb0]
xor eax, eax
mov ecx, 0x13
mov rdi, rdx
mov esi, 3
rep stosq qword [rdi], rax
lea rax, [rsp + 0x6a]
mov byte [rsp + 0x112], 5
xor edi, edi
movq xmm0, rax
mov byte [rsp + 0x114], 3
lea rax, [rsp + 0x6c]
mov qword [rsp + 0xc8], r11
movq xmm1, rax
movzx eax, byte [r13 + 0x40]
mov word [rsp + 0x6e], di
mov dword [rsp + 0x10e], 0x10001
movzx r8d, word [r11 + 0x3a]
punpcklqdq xmm0, xmm1
mov word [rsp + 0x10c], si
movups xmmword [rsp + 0xb8], xmm0
test al, 1
mov word [rsp + 0x6c], r8w
jne 0x140298e07
mov rcx, qword [r13 + 0x20]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0xd8], rcx
mov r12d, 1
mov rdi, rdx
jmp 0x140298352
mov r9, qword [rcx + 0x1c8]
mov qword [rdx], r9
mov qword [rcx + 0x1c8], rdx
jmp 0x1402985dd
movsx rcx, r8w
call sym.sqlite3LogEst
lea edx, [rax - 0x21]
mov r9d, edx
jmp 0x140298c12
movzx eax, word [rsp + 0x38]
jmp 0x140298ca7
xor ebp, ebp
jmp 0x14029835f
mov r11, rdi
mov r10, qword [rsp + 0x40]
mov ebp, eax
and r12d, edx
mov rdi, qword [rsp + 0x48]
jmp 0x14029835f