Function at 0x7e8a80
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, 0xd8
mov esi, 0xffffffff
mov rax, qword [rcx]
mov rbp, qword [rcx + 0x18]
mov qword [rsp + 0x128], rdx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x48], rax
movzx eax, byte [rbp + 0x10]
mov word [rsp + 0x5a], si
mov qword [rsp + 0x120], rcx
mov rcx, qword [rcx + 8]
imul rax, rax, 0x70
mov qword [rsp + 0x30], rcx
lea r12, [rdx + rax + 8]
mov rsi, qword [r12 + 0x68]
mov rax, qword [r12 + 0x20]
test rsi, rsi
mov qword [rsp + 0x38], rax
je 0x7e9145
movzx r14d, word [rax + 0x4a]
mov ebx, 1
xor edi, edi
cmp r14w, 0xa
jle 0x7e8b09
movsx ecx, r14w
call sym.estLog.part.554
mov edi, eax
mov rcx, qword [rsp + 0x120]
xor eax, eax
cmp qword [rcx + 0x20], 0
je 0x7e8ff1
test bl, bl
je 0x7e8d1c
mov dword [rsp + 0x28], 1
nop
mov r9, qword [rsi + 0x48]
test r9, r9
je 0x7e8b5c
movzx edx, byte [r12 + 0x3c]
mov ecx, dword [r12 + 0x44]
mov r8, qword [rsp + 0x30]
shr dl, 5
and edx, 1
call dbg.whereUsablePartialIndex
test eax, eax
je 0x7e8e01
test byte [rsi + 0x65], 1
jne 0x7e8e01
mov rax, qword [rsi + 0x10]
xor r8d, r8d
xor r9d, r9d
mov rcx, qword [rsp + 0x128]
movzx eax, word [rax]
mov dword [rbp + 0x2c], 0
mov byte [rbp + 0x11], 0
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], r8w
mov word [rsp + 0x2e], ax
mov word [rbp + 0x16], ax
movzx eax, byte [rsi + 0x64]
mov word [rbp + 0x12], r9w
mov qword [rbp], rcx
mov qword [rbp + 0x20], rsi
test al, 4
jne 0x7e8e80
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rcx]
mov r13, qword [rdx + 0x10]
test r13, r13
je 0x7e8e80
mov ecx, dword [r13]
test ecx, ecx
jle 0x7e8c33
mov eax, dword [r12 + 0x44]
xor r15d, r15d
mov qword [rsp + 0x40], rbp
mov r14d, eax
mov rax, r15
shl rax, 5
mov rbx, qword [r13 + rax + 8]
test rbx, rbx
je 0x7e8c20
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x7e8d40
test eax, 0x40000
je 0x7e8d30
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x7e8bf5
nop dword [rax + rax]
add r15, 1
cmp dword [r13], r15d
jg 0x7e8be4
mov rbp, qword [rsp + 0x40]
movzx eax, byte [rsi + 0x64]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x7e8e90
xor ecx, ecx
test al, 0x20
je 0x7e8ea0
xor r8d, r8d
test ecx, ecx
mov dword [rbp + 0x28], 0x240
jne 0x7e8ec3
mov rcx, qword [rsp + 0x38]
xor edx, edx
test byte [rcx + 0x40], 0x80
jne 0x7e8c75
cmp qword [rsi + 0x48], 0
je 0x7e8f71
mov byte [rbp + 0x11], dl
mov rcx, qword [rsp + 0x38]
movsx edx, word [rsi + 0x5c]
movsx ecx, word [rcx + 0x4c]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x2e]
test r8, r8
lea eax, [rcx + rax + 1]
mov word [rbp + 0x14], ax
jne 0x7e8ed0
movsx r8d, word [rsp + 0x2e]
mov edi, r8d
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call dbg.whereLoopOutputAdjust
mov rcx, qword [rsp + 0x120]
mov rdx, rbp
call dbg.whereLoopInsert
mov word [rbp + 0x16], di
test eax, eax
jne 0x7e8d1c
mov rax, qword [rsp + 0x120]
xor r9d, r9d
mov r8, rsi
mov rdx, r12
mov rcx, rax
mov byte [rax + 0x28], 0
call dbg.whereLoopAddBtreeIndex
mov rcx, qword [rsp + 0x120]
cmp byte [rcx + 0x28], 1
jne 0x7e8d10
mov rcx, qword [rsp + 0x38]
or dword [rcx + 0x40], 0x100
nop word [rax + rax]
cmp qword [r12 + 0x68], 0
je 0x7e8de0
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rbx + 0x10]
jmp 0x7e8bf0
cmp byte [rbx], 0xa4
je 0x7e8e10
mov rbp, qword [rsi + 0x50]
test rbp, rbp
je 0x7e8c20
cmp word [rsi + 0x5e], 0
je 0x7e8c20
xor edi, edi
jmp 0x7e8d75
movzx eax, word [rsi + 0x5e]
add rdi, 1
cmp eax, edi
jle 0x7e8c20
mov rax, qword [rsi + 8]
cmp word [rax + rdi*2], 0xfffe
jne 0x7e8d65
mov rax, rdi
mov r8d, r14d
mov rcx, rbx
shl rax, 5
mov rdx, qword [rbp + rax + 8]
call dbg.sqlite3ExprCompareSkip
test eax, eax
jne 0x7e8d65
movzx eax, byte [rsi + 0x64]
mov ecx, 1
mov rbp, qword [rsp + 0x40]
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x7e8c43
movzx eax, byte [rsp + 0x28]
mov dword [rbp + 0x28], 0x100
movsx r8d, word [rsp + 0x2e]
mov byte [rbp + 0x11], al
lea eax, [r8 + 0x10]
mov edi, r8d
mov word [rbp + 0x14], ax
jmp 0x7e8cae
mov rsi, qword [rsi + 0x28]
add dword [rsp + 0x28], 1
test eax, eax
sete cl
test rsi, rsi
setne dl
test cl, dl
jne 0x7e8b30
jmp 0x7e8d1c
xor eax, eax
jmp 0x7e8d10
cmp r14d, dword [rbx + 0x2c]
jne 0x7e8d49
movzx edx, word [rbx + 0x30]
test dx, dx
js 0x7e8d9b
movzx ecx, word [rsi + 0x5e]
test cx, cx
je 0x7e8c20
mov rax, qword [rsi + 8]
cmp dx, word [rax]
je 0x7e8d9b
add rax, 2
sub ecx, 1
lea rcx, [rax + rcx*2]
jmp 0x7e8e5e
add rax, 2
cmp dx, word [rax - 2]
je 0x7e8d9b
cmp rcx, rax
jne 0x7e8e50
add r15, 1
cmp dword [r13], r15d
jg 0x7e8be4
jmp 0x7e8c2a
mov edx, eax
xor ecx, ecx
and edx, 3
cmp dl, 3
jne 0x7e8c43
mov dword [rbp + 0x28], 0x100
xor eax, eax
jmp 0x7e8dc3
mov r8, qword [r12 + 0x58]
and r8, qword [rsi + 0x68]
cmp r8, 1
sbb edx, edx
and edx, 0x40
add edx, 0x200
test ecx, ecx
mov dword [rbp + 0x28], edx
je 0x7e8c5d
movzx edx, byte [rsp + 0x28]
jmp 0x7e8c75
lea ebx, [rcx + 0x10]
mov rcx, qword [rsp + 0x48]
mov r13d, dword [r12 + 0x44]
mov edx, dword [rcx + 0x84]
test edx, edx
jle 0x7e8f5d
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov r15, r9
mov ebp, edi
mov rdi, rcx
jmp 0x7e8f1d
lea eax, [rbx - 1]
sub ebx, 0x14
test byte [r14 + 0x14], 0x82
cmove ebx, eax
add ebp, 1
add r15, 0x38
cmp dword [rdi + 0x84], ebp
jle 0x7e8f54
mov r14, qword [rdi + 0x90]
mov r8, rsi
mov edx, r13d
add r14, r15
mov rcx, qword [r14]
call dbg.sqlite3ExprCoveredByIndex
test eax, eax
je 0x7e8f54
movzx eax, word [r14 + 0x10]
test ax, ax
jg 0x7e8f00
add ebx, eax
add ebp, 1
add r15, 0x38
cmp dword [rdi + 0x84], ebp
jg 0x7e8f1d
mov rbp, qword [rsp + 0x40]
movzx eax, word [rbp + 0x14]
movsx edx, bx
movsx ecx, ax
call sym.sqlite3LogEstAdd
mov word [rbp + 0x14], ax
jmp 0x7e8ca5
test byte [r12 + 0x40], 2
jne 0x7e8c75
test r8, r8
jne 0x7e8cd3
test al, 4
jne 0x7e8cd3
movzx eax, word [rsi + 0x5c]
movzx edx, word [rcx + 0x4c]
cmp ax, dx
jge 0x7e8cd3
mov rcx, qword [rsp + 0x48]
test byte [rcx + 0x3c], 4
jne 0x7e8cd3
cmp byte [0x008b8647], 0
je 0x7e8cd3
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x5c], 0x20
jne 0x7e8cd3
movsx ecx, ax
mov byte [rbp + 0x11], 0
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, dx
cdq
idiv ecx
movzx ecx, word [rsp + 0x2e]
lea eax, [rcx + rax + 1]
mov word [rbp + 0x14], ax
jmp 0x7e8ca5
mov rcx, qword [rsp + 0x48]
test byte [rcx + 0x3c], 0x20
jne 0x7e8b1e
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov rdx, qword [rdx]
test byte [rdx + 0x31], 0x80
je 0x7e8b1e
cmp qword [r12 + 0x68], 0
jne 0x7e8b1e
movzx edx, byte [r12 + 0x40]
test dl, 1
jne 0x7e8b1e
mov rcx, qword [rsp + 0x38]
test byte [rcx + 0x40], 0x80
jne 0x7e8b1e
and edx, 0x28
jne 0x7e8b1e
mov rcx, qword [rsp + 0x30]
movsxd r15, dword [rcx + 0x14]
mov r13, qword [rcx + 0x20]
imul r15, r15, 0x38
add r15, r13
cmp r13, r15
jae 0x7e8b1e
add r14d, edi
lea eax, [r14 - 0xa]
mov word [rsp + 0x28], ax
jmp 0x7e912e
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call sym.termCanDriveIndex
test eax, eax
je 0x7e913c
mov rax, qword [rbp + 0x38]
mov r11d, 1
mov qword [rbp + 0x20], 0
mov word [rbp + 0x18], r11w
mov dword [rbp + 0x2c], 1
mov qword [rax], r13
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x18], 0
je 0x7e920e
movzx eax, word [rsp + 0x28]
test ax, ax
mov ecx, 0
mov r10d, 0x2b
cmovs eax, ecx
mov word [rbp + 0x16], r10w
movsx ecx, di
mov edx, 0x2b
mov word [rbp + 0x12], ax
call sym.sqlite3LogEstAdd
mov rcx, qword [rsp + 0x120]
mov rdx, rbp
mov dword [rbp + 0x28], 0x4000
mov word [rbp + 0x14], ax
mov rax, qword [rsp + 0x128]
or rax, qword [r13 + 0x28]
mov qword [rbp], rax
call dbg.whereLoopInsert
test eax, eax
sete dl
add r13, 0x38
cmp r15, r13
jbe 0x7e9201
test dl, dl
je 0x7e8d1c
mov rax, qword [r13 + 0x28]
test qword [rbp + 8], rax
je 0x7e9076
mov edx, 1
xor eax, eax
jmp 0x7e9119
mov rax, qword [rsp + 0x38]
test byte [rax + 0x40], 0x80
je 0x7e9164
mov rsi, qword [rax + 0x10]
movzx r14d, word [rax + 0x4a]
test rsi, rsi
setne bl
jmp 0x7e8af5
lea rdx, [rsp + 0x60]
mov rax, rsi
mov ecx, 0xe
mov rdi, rdx
xor ebx, ebx
rep stosq qword [rdi], rax
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x5a]
mov byte [rsp + 0xc2], 5
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0xbe], 0x10001
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x5e], bx
movzx eax, word [rdi + 0x4c]
movzx r14d, word [rdi + 0x4a]
or byte [rsp + 0xc4], 3
test byte [r12 + 0x40], 1
mov word [rsp + 0xbc], ax
mov word [rsp + 0x5c], r14w
jne 0x7e91f4
mov rax, qword [r12 + 0x20]
mov ebx, 1
mov rsi, rdx
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x88], rax
jmp 0x7e8af5
mov ebx, 1
mov rsi, rdx
jmp 0x7e8af5
test dl, dl
jne 0x7e8b1e
jmp 0x7e8d1c
test byte [rax + 0x40], 2
jne 0x7e90bd
lea eax, [r14 + 0x1c]
jmp 0x7e90c2