Function at 0x140082010
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]
movzx edx, byte [rbp + 0x40]
mov r11, qword [rbp + 0x20]
mov qword [rsp + 0x38], rax
test dl, 2
je 0x14008271a
mov rbx, qword [rbp + 0x60]
movzx r8d, word [r11 + 0x3a]
test rbx, rbx
setne r15b
xor eax, eax
cmp qword [r13 + 0x18], 0
je 0x140082742
test r15b, r15b
je 0x14008229c
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x48], r11
nop
mov r9, qword [rbx + 0x48]
test r9, r9
je 0x1400820d2
movzx edx, byte [rbp + 0x3c]
mov ecx, dword [rbp + 0x44]
mov r8, qword [rsp + 0x38]
call sym.whereUsablePartialIndex
test eax, eax
je 0x1400823b0
movzx edi, byte [rbx + 0x65]
and edi, 2
jne 0x1400823b0
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 0x140082440
mov rax, qword [r13]
mov r12, qword [rax + 0x10]
test r12, r12
je 0x140082440
mov r8d, dword [r12]
xor eax, eax
test r8d, r8d
jle 0x140082998
mov qword [rsp + 0x190], r13
mov byte [rsp + 0x40], dil
mov rdi, r12
mov qword [rsp + 0x50], rsi
mov rsi, rax
mov qword [rsp + 0x58], rbp
mov rbp, rbx
nop
mov rdx, rsi
shl rdx, 5
mov r12, qword [rdi + rdx + 8]
nop dword [rax]
test r12, r12
je 0x1400821b0
mov eax, dword [r12 + 4]
test eax, 0x82000
je 0x1400822c0
test eax, 0x80000
je 0x1400823a0
mov rax, qword [r12 + 0x20]
mov r12, qword [rax + 8]
test r12, r12
jne 0x140082185
nop
add rsi, 1
cmp dword [rdi], esi
jg 0x140082170
mov rbx, rbp
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
and eax, 3
cmp al, 3
je 0x14008235c
and edx, 0x20
je 0x140082484
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rsi + 0x38], 0x240
test r10d, r10d
je 0x140082464
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 0x14008250d
mov rcx, qword [rsp + 0x38]
movsx r8d, r14w
mov rdx, rsi
call sym.whereLoopOutputAdjust
test byte [rbp + 0x3c], 0x10
je 0x140082380
cmp qword [rbx + 0x50], 0
je 0x140082380
mov word [rsi + 0x16], r14w
mov byte [r13 + 0x20], 0
xor r9d, r9d
mov r8, rbx
mov rdx, rbp
mov rcx, r13
call sym.whereLoopAddBtreeIndex
cmp byte [r13 + 0x20], 1
jne 0x140082292
mov rcx, qword [rsp + 0x48]
or dword [rcx + 0x30], 0x100
test byte [rbp + 0x40], 2
je 0x1400823bc
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
cmp byte [r12], 0xa7
je 0x1400823e0
mov r13, qword [rbp + 0x50]
test r13, r13
je 0x1400821b0
cmp word [rbp + 0x5e], 0
je 0x1400821b0
xor ebx, ebx
jmp 0x140082300
movzx eax, word [rbp + 0x5e]
add rbx, 1
cmp eax, ebx
jle 0x1400821b0
mov rax, qword [rbp + 8]
cmp word [rax + rbx*2], 0xfffe
jne 0x1400822f0
mov rax, rbx
mov r8d, r15d
mov rcx, r12
shl rax, 5
mov rdx, qword [r13 + rax + 8]
call sym.sqlite3ExprCompareSkip
test eax, eax
jne 0x1400822f0
mov rbx, rbp
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
and eax, 3
cmp al, 3
jne 0x1400821e6
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 sym.whereLoopOutputAdjust
mov rdx, rsi
mov rcx, r13
call sym.whereLoopInsert
mov word [rsi + 0x16], r14w
test eax, eax
je 0x140082269
jmp 0x14008229c
mov r12, qword [r12 + 0x10]
jmp 0x140082180
xor eax, eax
test byte [rbp + 0x40], 2
jne 0x14008229c
add dword [rsp + 0x68], 1
mov rbx, qword [rbx + 0x28]
test eax, eax
jne 0x14008229c
test rbx, rbx
jne 0x1400820b0
jmp 0x14008229c
cmp r15d, dword [r12 + 0x2c]
jne 0x1400822cb
movzx r8d, word [r12 + 0x30]
test r8w, r8w
js 0x140082326
movzx r10d, word [rbp + 0x5e]
test r10w, r10w
je 0x1400821b0
mov rdx, qword [rbp + 8]
sub r10d, 1
lea r10, [rdx + r10*2 + 2]
jmp 0x14008242d
add rdx, 2
cmp rdx, r10
je 0x1400821b0
cmp r8w, word [rdx]
jne 0x140082420
jmp 0x140082326
mov eax, edx
and eax, 3
cmp al, 3
je 0x14008235c
and edx, 0x20
je 0x140082481
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rsi + 0x38], 0x240
mov rax, qword [rsp + 0x48]
test byte [rax + 0x30], 0x80
je 0x140082653
movsx edx, word [rbx + 0x5c]
movsx r8d, word [rax + 0x3c]
jmp 0x14008221d
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 0x1400824cf
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 sym.wherePartIdxExpr
mov rcx, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x40]
movabs rax, 0x8000000000000000
mov dword [rsi + 0x38], 0x200
cmp rcx, rax
je 0x1400826e9
movzx eax, byte [rbx + 0x65]
and eax, 0x18
cmp al, 0x10
je 0x1400826e0
test rcx, rcx
jne 0x140082201
mov dword [rsi + 0x38], 0x240
jmp 0x140082201
mov rdx, qword [rsp + 0x60]
mov r11d, dword [rbp + 0x44]
lea edi, [r14 + 0x10]
mov ecx, dword [rdx + 0x84]
test ecx, ecx
jle 0x14008263f
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x50], rsi
pxor xmm6, xmm6
lea r10, [rsp + 0x80]
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x90]
mov rsi, rdx
mov word [rsp + 0x6e], r14w
mov ebp, r11d
mov r15, r8
mov r14, r10
mov qword [rsp + 0x190], r13
mov r13, rbx
mov ebx, r9d
jmp 0x140082592
lea eax, [rdi - 1]
sub edi, 0x14
test byte [r12 + 0x14], 0x82
cmove edi, eax
add ebx, 1
add r15, 0x38
cmp dword [rsi + 0x84], ebx
jle 0x140082620
mov r12, qword [rsi + 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], ebp
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], r14
test rdx, rdx
je 0x1400825f4
mov qword [rsp + 0x40], rcx
call sym.sqlite3WalkExprNN
mov rcx, qword [rsp + 0x40]
cmp word [rsp + 0xb4], 0
jne 0x140082620
movzx eax, word [r12 + 0x10]
test ax, ax
jg 0x140082570
add edi, eax
add ebx, 1
add r15, 0x38
cmp dword [rsi + 0x84], ebx
jg 0x140082592
nop dword [rax + rax]
mov rsi, qword [rsp + 0x50]
mov rbx, r13
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 0x14008223e
cmp qword [rbx + 0x48], 0
jne 0x14008220f
test byte [rbp + 0x40], 2
jne 0x14008220f
test rcx, rcx
jne 0x140082269
test byte [rbx + 0x64], 4
jne 0x140082269
mov rax, qword [rsp + 0x48]
movsx edx, word [rbx + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x140082269
mov rax, qword [rsp + 0x60]
test byte [rax + 0x3c], 4
jne 0x140082269
cmp byte [0x14014ee87], 0
je 0x140082269
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x140082269
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 0x14008223e
test rcx, rcx
je 0x140082501
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 0x1400828d0
mov rcx, qword [rsp + 0x78]
jmp 0x140082201
test byte [r11 + 0x30], 0x80
je 0x1400828e3
mov rbx, qword [r11 + 0x10]
movzx r8d, word [r11 + 0x3a]
test rbx, rbx
setne r15b
xor eax, eax
cmp qword [r13 + 0x18], 0
jne 0x140082093
test word [r10 + 0x3c], 0x1020
jne 0x140082093
mov rax, qword [r10]
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
mov eax, 0
je 0x140082093
test dl, 3
jne 0x140082093
test byte [r11 + 0x30], 0x80
jne 0x140082093
and edx, 0x48
jne 0x140082093
test byte [rbp + 0x3c], 0x10
jne 0x140082093
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 0x1400829d9
cmp r12, rdx
jae 0x1400829d2
lea eax, [r14 + r8]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
movd xmm6, dword [0x140177058]
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 + 0x48], r10
jmp 0x1400828ac
mov rcx, r15
xor r8d, r8d
mov rdx, rbp
call sym.termCanDriveIndex
mov ecx, 1
test eax, eax
je 0x140082897
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 0x1400829c8
test byte [r12 + 0x31], 0x40
jne 0x1400829c8
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 sym.whereLoopInsert
test eax, eax
sete cl
add r15, 0x38
cmp r15, rbx
jae 0x1400829ad
test cl, cl
je 0x1400829ad
mov rdi, qword [r15 + 0x28]
mov rax, rdi
and rax, qword [rsi + 8]
je 0x1400827f4
mov ecx, 1
xor eax, eax
jmp 0x140082897
or dword [rsi + 0x38], eax
xor ecx, ecx
mov qword [rsp + 0x78], 0
jmp 0x140082201
lea rbx, [rsp + 0xc0]
xor eax, eax
mov ecx, 0xe
mov rdi, rbx
rep stosq qword [rdi], rax
mov eax, dword [0x140176f20]
mov byte [rsp + 0x122], 5
mov byte [rsp + 0x124], 3
mov dword [rsp + 0x11e], eax
lea rax, [rsp + 0x72]
movzx r8d, word [r11 + 0x3a]
movq xmm0, rax
lea rax, [rsp + 0x74]
movzx edx, byte [rbp + 0x40]
mov qword [rsp + 0xd8], r11
movq xmm1, rax
mov eax, 3
mov word [rsp + 0x74], r8w
mov word [rsp + 0x11c], ax
punpcklqdq xmm0, xmm1
xor eax, eax
mov word [rsp + 0x76], ax
movups xmmword [rsp + 0xc8], xmm0
test dl, 1
jne 0x140082975
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe8], rax
cmp qword [r13 + 0x18], 0
jne 0x14008209c
test word [r10 + 0x3c], 0x1020
jne 0x14008209c
mov r15d, 1
jmp 0x14008274f
mov eax, edx
xor r10d, r10d
and eax, 3
cmp al, 3
jne 0x1400821e6
jmp 0x14008235c
movzx r15d, byte [rsp + 0x58]
mov r10, qword [rsp + 0x48]
mov r11, r12
mov rbx, qword [rsp + 0x50]
and r15d, ecx
jmp 0x140082093
movzx eax, word [rsp + 0x40]
jmp 0x14008284c
xor eax, eax
jmp 0x140082093
movsx rax, r8w
lea r9, [0x14016d890]
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 0x1400827b5