Function at 0x14029f5b0
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 0x14029fe4d
mov rdi, qword [r13 + 0x60]
movzx r8d, word [r11 + 0x3a]
test rdi, rdi
setne r12b
xor ebp, ebp
cmp qword [r14 + 0x18], 0
je 0x14029fe75
test r12b, r12b
mov dword [rsp + 0x28], 1
je 0x14029f906
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x30], r11
nop word [rax + rax]
mov r9, qword [rdi + 0x48]
test r9, r9
je 0x14029f674
movzx edx, byte [r13 + 0x3c]
mov ecx, dword [r13 + 0x44]
mov r8, qword [rsp + 0x20]
call sym.whereUsablePartialIndex
test eax, eax
je 0x14029f9d0
movzx ebp, byte [rdi + 0x65]
and ebp, 1
jne 0x14029f9d0
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 0x14029faf0
mov rax, qword [r14]
mov r8, qword [rax + 0x10]
test r8, r8
je 0x14029faf0
mov eax, dword [r8]
xor r15d, r15d
test eax, eax
jle 0x14029faf0
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 0x14029f753
nop dword [rax]
mov edx, dword [r12 + 4]
test edx, 0x82000
je 0x14029f947
and edx, 0x80000
je 0x14029f928
mov rdx, qword [r12 + 0x20]
mov r12, qword [rdx + 8]
test r12, r12
jne 0x14029f728
add rbx, 1
cmp eax, ebx
jg 0x14029f710
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 0x14029f79e
test al, 0x20
je 0x14029fb05
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
jmp 0x14029fb54
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 0x14029f7d1
and ch, 0x40
je 0x14029f7d8
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 0x14029f906
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 0x14029f82d
mov rax, qword [rsp + 0x30]
or dword [rax + 0x30], 0x100
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x14029f8eb
mov rdx, qword [rax]
mov r15, qword [rax + 8]
movzx ecx, word [rdx + 8]
mov r8, qword [r15 + 0x18]
test cx, cx
je 0x14029f8a4
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 0x14029f87f
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x14029f887
mov rcx, rbx
call sym.vdbeMemClear
add rbx, 0x38
cmp rbx, rsi
jne 0x14029f870
mov rdx, qword [r12]
mov rax, r12
mov r8, r15
mov rbx, qword [rsp + 0x38]
test rdx, rdx
je 0x14029f8ad
sub dword [rdx], 1
je 0x14029fd5f
test r8, r8
je 0x14029f8e3
cmp rax, qword [r8 + 0x1f0]
jae 0x14029f8d5
cmp rax, qword [r8 + 0x1e0]
jae 0x14029fe05
cmp rax, qword [r8 + 0x1e8]
jae 0x1402a0025
cmp qword [r8 + 0x308], 0
jne 0x14029fdb2
mov rcx, rax
call sym.sqlite3_free
test byte [r13 + 0x40], 2
mov dword [r14 + 0x28], 0
mov qword [r14 + 0x20], 0
je 0x14029f9dd
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 0x14029f753
mov edx, dword [r12 + 4]
test edx, 0x82000
jne 0x14029f739
cmp byte [r12], 0xa7
je 0x14029fa00
mov r14, qword [rsi + 0x50]
test r14, r14
je 0x14029f753
movzx edx, word [rsi + 0x5e]
test dx, dx
je 0x14029f753
xor edi, edi
jmp 0x14029f97b
add rdi, 1
movzx eax, dx
cmp eax, edi
jle 0x14029f9b4
mov rax, qword [rsi + 8]
cmp word [rax + rdi*2], 0xfffe
jne 0x14029f970
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 0x14029fa50
movzx edx, word [rsi + 0x5e]
add rdi, 1
movzx eax, dx
cmp eax, edi
jg 0x14029f97b
mov eax, dword [r13]
add rbx, 1
cmp eax, ebx
jg 0x14029f710
jmp 0x14029f75b
xor ebp, ebp
test byte [r13 + 0x40], 2
jne 0x14029f906
add dword [rsp + 0x28], 1
test ebp, ebp
mov rdi, qword [rdi + 0x28]
jne 0x14029f906
test rdi, rdi
jne 0x14029f650
jmp 0x14029f906
cmp r15d, dword [r12 + 0x2c]
jne 0x14029f952
movzx r10d, word [r12 + 0x30]
test r10w, r10w
js 0x14029fa50
movzx r11d, word [rsi + 0x5e]
test r11w, r11w
je 0x14029f753
mov rdx, qword [rsi + 8]
sub r11d, 1
lea r11, [rdx + r11*2 + 2]
jmp 0x14029fa45
add rdx, 2
cmp r11, rdx
je 0x14029f753
cmp r10w, word [rdx]
jne 0x14029fa38
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 0x14029f799
test al, 0x20
je 0x14029fdc2
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 0x14029fbe8
mov rcx, qword [rsp + 0x20]
movsx r8d, si
mov rdx, rbx
call sym.whereLoopOutputAdjust
test byte [r13 + 0x3c], 0x10
je 0x14029f7e9
cmp qword [rdi + 0x50], 0
je 0x14029f7e9
mov word [rbx + 0x16], si
jmp 0x14029f802
mov eax, edx
not eax
test al, 3
je 0x14029f79e
and edx, 0x20
jne 0x14029f78a
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 0x14029fdd6
movzx eax, byte [rdi + 0x65]
and eax, 0xc
cmp al, 8
je 0x14029fdcd
test r15, r15
jne 0x14029fb4b
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
test r9d, r9d
jne 0x14029fa8d
mov rax, qword [rsp + 0x30]
test byte [rax + 0x30], 0x80
jne 0x14029fa92
cmp qword [rdi + 0x48], 0
jne 0x14029fa92
test byte [r13 + 0x40], 2
jne 0x14029fa92
test r15, r15
jne 0x14029f802
test byte [rdi + 0x64], 4
jne 0x14029f802
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x14029f802
mov rax, qword [rsp + 0x50]
test byte [rax + 0x3c], 4
jne 0x14029f802
cmp byte [0x1402b90a7], 0
je 0x14029f802
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x14029f802
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 0x14029fabe
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 0x14029fd1e
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 0x14029fc6a
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 0x14029fd00
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 0x14029fcd3
mov rcx, r15
call sym.walkExpr
cmp word [rsp + 0xa4], 0
jne 0x14029fd00
movzx eax, word [r12 + 0x10]
test ax, ax
jg 0x14029fc48
add ebp, eax
add edi, 1
add r14, 0x38
cmp dword [rsi + 0x84], edi
jg 0x14029fc6a
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 0x14029fe1b
lea r9d, [rdx + 0x31]
mov ebp, eax
cmp r9d, ecx
jl 0x14029fd56
lea eax, [rdx + 0x1f]
cmp eax, ecx
jl 0x1402a003b
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 0x14029fabe
mov rcx, qword [rdx + 0x10]
cmp rdx, qword [rcx + 0x1f0]
jae 0x14029fd86
cmp rdx, qword [rcx + 0x1e0]
jae 0x1402a000f
cmp rdx, qword [rcx + 0x1e8]
jae 0x1402a00e5
cmp qword [rcx + 0x308], 0
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
je 0x14029fff8
call sym.measureAllocationSize
mov rax, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
jmp 0x14029f8ad
mov rdx, rax
mov rcx, r8
call sym.measureAllocationSize
jmp 0x14029f8eb
mov r9d, 1
jmp 0x14029fb08
test r15, r15
je 0x14029fb41
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 0x14029fb4b
or dword [rbx + 0x38], eax
jmp 0x14029fb48
mov rdx, qword [r8 + 0x1d8]
mov qword [rax], rdx
mov qword [r8 + 0x1d8], rax
jmp 0x14029f8eb
lea eax, [rcx + 0x31]
cmp eax, edx
jl 0x14029fd56
lea eax, [rcx + 0x1f]
cmp eax, edx
jl 0x1402a003b
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 0x14029fabe
test byte [r11 + 0x30], 0x80
je 0x1402a0047
mov rdi, qword [r11 + 0x10]
movzx r8d, word [r11 + 0x3a]
test rdi, rdi
setne r12b
xor ebp, ebp
cmp qword [r14 + 0x18], 0
jne 0x14029f62f
movzx edx, word [r10 + 0x3c]
and dx, 0x1020
jne 0x14029f62f
mov rcx, qword [r10]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x14029f62f
test al, 3
jne 0x14029f62f
test byte [r11 + 0x30], 0x80
jne 0x14029f62f
test al, 0x48
jne 0x14029f62f
test byte [r13 + 0x3c], 0x10
jne 0x14029f62f
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 0x1402a00fb
mov rax, qword [rsp + 0x28]
cmp rsi, rax
jae 0x1402a0119
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 [0x14031f7b0]
mov rdi, r11
mov word [rsp + 0x38], ax
mov qword [rsp + 0x40], r10
jmp 0x14029ffdb
xor r8d, r8d
mov rdx, r13
mov rcx, rbp
call sym.termCanDriveIndex
mov edx, 1
test eax, eax
je 0x14029ffc1
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 0x1402a010f
test byte [rdi + 0x31], 0x40
jne 0x1402a010f
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 0x1402a0120
test dl, dl
je 0x1402a0120
mov r15, qword [rbp + 0x28]
mov rax, r15
and rax, qword [rbx + 8]
je 0x14029ff21
mov edx, 1
xor eax, eax
jmp 0x14029ffc1
mov rcx, rdx
call sym.sqlite3_free
mov r8, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
jmp 0x14029f8ad
mov r9, qword [rcx + 0x1d8]
mov qword [rdx], r9
mov qword [rcx + 0x1d8], rdx
jmp 0x14029f8ad
mov rdx, qword [r8 + 0x1c8]
mov qword [rax], rdx
mov qword [r8 + 0x1c8], rax
jmp 0x14029f8eb
add ebp, 1
mov word [rbx + 0x14], bp
jmp 0x14029fabe
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 0x1402a00d7
mov rcx, qword [r13 + 0x20]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0xd8], rcx
mov r12d, 1
mov rdi, rdx
jmp 0x14029f622
mov r9, qword [rcx + 0x1c8]
mov qword [rdx], r9
mov qword [rcx + 0x1c8], rdx
jmp 0x14029f8ad
movsx rcx, r8w
call sym.sqlite3LogEst
lea edx, [rax - 0x21]
mov r9d, edx
jmp 0x14029fee2
movzx eax, word [rsp + 0x38]
jmp 0x14029ff77
xor ebp, ebp
jmp 0x14029f62f
mov r11, rdi
mov r10, qword [rsp + 0x40]
mov ebp, eax
and r12d, edx
mov rdi, qword [rsp + 0x48]
jmp 0x14029f62f