Function at 0x1403479f0
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, 0x128
mov esi, 0xffffffff
mov r12, qword [rcx + 0x18]
mov rax, qword [rcx]
mov qword [rsp + 0x178], rdx
movzx edx, byte [r12 + 0x10]
mov qword [rsp + 0x170], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rax
lea rax, [rdx*8]
sub rax, rdx
mov word [rsp + 0x6a], si
shl rax, 4
lea r14, [rcx + rax + 8]
mov rcx, qword [rsp + 0x170]
mov rax, qword [r14 + 0x20]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
test byte [r14 + 0x40], 2
je 0x140348029
mov rdi, qword [r14 + 0x68]
movzx r13d, word [rax + 0x4a]
test rdi, rdi
setne sil
xor ebp, ebp
cmp r13w, 0xa
jg 0x140348055
mov rcx, qword [rsp + 0x170]
xor eax, eax
cmp qword [rcx + 0x20], 0
je 0x1403480e8
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x50], rcx
test sil, sil
je 0x140347cdb
nop dword [rax]
mov r9, qword [rdi + 0x48]
test r9, r9
je 0x140347aea
movzx edx, byte [r14 + 0x3c]
mov ecx, dword [r14 + 0x44]
mov r8, qword [rsp + 0x30]
shr dl, 5
and edx, 1
call dbg.whereUsablePartialIndex
test eax, eax
je 0x140347e60
movzx eax, byte [rdi + 0x65]
and eax, 1
mov byte [rsp + 0x20], al
jne 0x140347e60
mov rax, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x178]
xor r8d, r8d
xor r9d, r9d
movzx eax, word [rax]
mov byte [r12 + 0x11], 0
mov dword [r12 + 0x2c], 0
mov word [rsp + 0x2e], ax
mov word [r12 + 0x16], ax
movzx eax, byte [rdi + 0x64]
mov dword [r12 + 0x18], 0
mov word [r12 + 0x1c], r8w
mov word [r12 + 0x12], r9w
mov qword [r12], rcx
mov qword [r12 + 0x20], rdi
test al, 4
jne 0x140347ebf
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rcx]
mov r15, qword [rdx + 0x10]
test r15, r15
je 0x140347ebf
mov ecx, dword [r15]
test ecx, ecx
jle 0x140347bda
mov r13d, dword [r14 + 0x44]
mov qword [rsp + 0x40], r12
xor ebp, ebp
mov r12d, r13d
nop dword [rax]
mov rax, rbp
shl rax, 5
mov rbx, qword [r15 + rax + 8]
nop dword [rax]
test rbx, rbx
je 0x140347bc8
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x140347d00
test eax, 0x40000
je 0x140347cf0
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x140347b9d
nop dword [rax + rax]
add rbp, 1
cmp dword [r15], ebp
jg 0x140347b88
mov r12, qword [rsp + 0x40]
movzx eax, byte [rdi + 0x64]
mov edx, eax
xor r8d, r8d
and edx, 3
cmp dl, 3
je 0x14034824d
nop dword [rax + rax]
test al, 0x20
je 0x140347eec
mov dword [r12 + 0x28], 0x240
xor ecx, ecx
test r8d, r8d
jne 0x140347ede
mov rsi, qword [rsp + 0x38]
test byte [rsi + 0x40], 0x80
jne 0x140347c28
cmp qword [rdi + 0x48], 0
je 0x140348066
nop word [rax + rax]
movzx eax, byte [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
mov byte [r12 + 0x11], al
movsx edx, word [rdi + 0x5c]
movsx r8d, word [rsi + 0x4c]
movzx esi, word [rsp + 0x2e]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv r8d
lea eax, [rsi + rax + 1]
mov word [r12 + 0x14], ax
test rcx, rcx
jne 0x140347f0d
movsx r8d, word [rsp + 0x2e]
mov esi, r8d
mov rcx, qword [rsp + 0x30]
mov rdx, r12
call dbg.whereLoopOutputAdjust
mov rcx, qword [rsp + 0x170]
mov rdx, r12
call dbg.whereLoopInsert
mov word [r12 + 0x16], si
test eax, eax
jne 0x140347cdb
mov rax, qword [rsp + 0x170]
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov byte [rax + 0x28], 0
mov rcx, rax
call dbg.whereLoopAddBtreeIndex
mov rcx, qword [rsp + 0x170]
cmp byte [rcx + 0x28], 1
jne 0x140347cd0
mov rcx, qword [rsp + 0x38]
or dword [rcx + 0x40], 0x100
nop word [rax + rax]
test byte [r14 + 0x40], 2
je 0x140347e38
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rbx + 0x10]
jmp 0x140347b98
cmp byte [rbx], 0xa6
je 0x140347e70
mov r13, qword [rdi + 0x50]
test r13, r13
je 0x140347bc8
cmp word [rdi + 0x5e], 0
je 0x140347bc8
xor esi, esi
jmp 0x140347d38
movzx eax, word [rdi + 0x5e]
add rsi, 1
cmp eax, esi
jle 0x140347bc8
mov rax, qword [rdi + 8]
cmp word [rax + rsi*2], 0xfffe
jne 0x140347d28
mov rax, rsi
shl rax, 5
mov r8, qword [r13 + rax + 8]
test r8, r8
jne 0x140347d6d
jmp 0x140347d88
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x140347d88
mov eax, dword [r8 + 4]
test eax, 0x41000
je 0x140347d88
test eax, 0x40000
jne 0x140347d60
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x140347d6d
mov rdx, rbx
jmp 0x140347d9d
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140347db7
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x140347e18
test eax, 0x40000
jne 0x140347d90
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x140347d9d
test r8, r8
jne 0x140347d28
movzx eax, byte [rdi + 0x64]
mov r12, qword [rsp + 0x40]
mov r8d, 1
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x140347bf0
mov dword [r12 + 0x28], 0x100
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
movsx r8d, word [rsp + 0x2e]
mov byte [r12 + 0x11], al
lea eax, [r8 + 0x10]
mov esi, r8d
mov word [r12 + 0x14], ax
jmp 0x140347c6c
test r8, r8
je 0x140347d28
xor ecx, ecx
mov r9d, r12d
call sym.sqlite3ExprCompare.part.0
test eax, eax
jne 0x140347d28
jmp 0x140347dc0
add dword [rsp + 0x28], 1
mov rdi, qword [rdi + 0x28]
test eax, eax
jne 0x140347cdb
test rdi, rdi
jne 0x140347ac0
jmp 0x140347cdb
xor eax, eax
jmp 0x140347cd0
cmp r12d, dword [rbx + 0x2c]
jne 0x140347d09
movzx edx, word [rbx + 0x30]
test dx, dx
js 0x140347dc0
movzx ecx, word [rdi + 0x5e]
test cx, cx
je 0x140347bc8
mov rax, qword [rdi + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x140347eb5
add rax, 2
cmp rcx, rax
je 0x140347bc8
cmp dx, word [rax]
jne 0x140347ea8
jmp 0x140347dc0
mov edx, eax
xor r8d, r8d
and edx, 3
cmp dl, 3
jne 0x140347bf0
mov dword [r12 + 0x28], 0x100
jmp 0x140347def
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
jmp 0x140347c28
mov rcx, qword [r14 + 0x58]
and rcx, qword [rdi + 0x68]
cmp rcx, 1
sbb edx, edx
and edx, 0x40
add edx, 0x200
mov dword [r12 + 0x28], edx
jmp 0x140347c03
mov ecx, esi
mov r10d, dword [r14 + 0x44]
lea ebx, [rcx + 0x10]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx + 0x84]
test edx, edx
jle 0x140348013
xor r8d, r8d
mov qword [rsp + 0x40], r12
mov rsi, qword [rsp + 0x50]
xor ebp, ebp
mov qword [rsp + 0x58], r14
lea r9, [rsp + 0x70]
mov r14, rdi
mov r12d, r10d
mov r15d, r8d
mov rdi, rcx
jmp 0x140347f73
lea eax, [rbx - 1]
sub ebx, 0x14
test byte [r13 + 0x14], 0x82
cmove ebx, eax
add r15d, 1
add rbp, 0x38
cmp dword [rdi + 0x84], r15d
jle 0x140348000
mov r13, qword [rdi + 0x90]
lea rax, [sym.exprIdxCover]
add r13, rbp
mov rdx, qword [r13]
mov qword [rsi + 8], 0
mov qword [rsi], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x20], 0
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa8], r9
test rdx, rdx
je 0x140347feb
mov rcx, rsi
mov qword [rsp + 0x20], r9
call dbg.walkExpr
mov r9, qword [rsp + 0x20]
cmp word [rsp + 0xa4], 0
jne 0x140348000
movzx eax, word [r13 + 0x10]
test ax, ax
jg 0x140347f50
add ebx, eax
jmp 0x140347f5e
mov r12, qword [rsp + 0x40]
mov rdi, r14
mov r14, qword [rsp + 0x58]
movzx eax, word [r12 + 0x14]
movsx edx, bx
movsx ecx, ax
call sym.sqlite3LogEstAdd
mov word [r12 + 0x14], ax
jmp 0x140347c63
mov rax, qword [rsp + 0x38]
test byte [rax + 0x40], 0x80
je 0x140348260
mov rdi, qword [rax + 0x10]
movzx r13d, word [rax + 0x4a]
test rdi, rdi
setne sil
xor ebp, ebp
cmp r13w, 0xa
jle 0x140347a89
movsx rcx, r13w
call dbg.sqlite3LogEst
lea ebp, [rax - 0x21]
jmp 0x140347a89
test byte [r14 + 0x40], 2
jne 0x140347c28
test rcx, rcx
jne 0x140347c93
test al, 4
jne 0x140347c93
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rsi + 0x4c]
cmp dx, cx
jge 0x140347c93
mov rax, qword [rsp + 0x48]
test byte [rax + 0x3c], 4
jne 0x140347c93
cmp byte [0x14043d1e7], 0
je 0x140347c93
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x5c], 0x20
jne 0x140347c93
mov eax, edx
mov byte [r12 + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x2e]
lea eax, [rcx + rax + 1]
mov word [r12 + 0x14], ax
jmp 0x140347c63
mov rcx, qword [rsp + 0x48]
test byte [rcx + 0x3c], 0x20
jne 0x140347a9e
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov rdx, qword [rdx]
test byte [rdx + 0x31], 0x80
je 0x140347a9e
movzx edx, byte [r14 + 0x40]
test dl, 3
jne 0x140347a9e
mov rcx, qword [rsp + 0x38]
test byte [rcx + 0x40], 0x80
jne 0x140347a9e
and edx, 0x28
jne 0x140347a9e
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rcx + 0x20]
movsxd rcx, dword [rcx + 0x14]
lea rdx, [rcx*8]
sub rdx, rcx
lea r15, [rbx + rdx*8]
cmp rbx, r15
jae 0x140347a9e
add r13d, ebp
lea eax, [r13 - 0xa]
mov word [rsp + 0x20], ax
jmp 0x14034822c
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call sym.termCanDriveIndex.part.0
test eax, eax
je 0x140348244
mov rax, qword [r12 + 0x38]
mov r11d, 1
mov qword [r12 + 0x20], 0
mov word [r12 + 0x18], r11w
mov dword [r12 + 0x2c], 1
mov qword [rax], rbx
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x18], 0
je 0x14034830d
movzx eax, word [rsp + 0x20]
test ax, ax
mov ecx, 0
mov r10d, 0x2b
mov edx, 0x2b
cmovs eax, ecx
mov word [r12 + 0x16], r10w
movsx ecx, bp
mov word [r12 + 0x12], ax
call sym.sqlite3LogEstAdd
mov rcx, qword [rsp + 0x170]
mov rdx, r12
mov dword [r12 + 0x28], 0x4000
mov word [r12 + 0x14], ax
mov rax, qword [rsp + 0x178]
or rax, qword [rbx + 0x28]
mov qword [r12], rax
call dbg.whereLoopInsert
test eax, eax
sete dl
add rbx, 0x38
cmp r15, rbx
jbe 0x140348306
test dl, dl
je 0x140348306
mov rax, qword [rbx + 0x28]
and rax, qword [r12 + 8]
jne 0x140348244
mov eax, dword [r14 + 0x44]
cmp dword [rbx + 0x1c], eax
je 0x140348168
mov edx, 1
xor eax, eax
jmp 0x140348217
mov dword [r12 + 0x28], 0x100
mov byte [rsp + 0x20], 0
jmp 0x140347def
lea rdx, [rsp + 0xb0]
xor eax, eax
mov ecx, 0xe
xor ebx, ebx
mov rdi, rdx
mov word [rsp + 0x6e], bx
rep stosq qword [rdi], rax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x6a]
mov byte [rsp + 0x112], 5
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x10e], 0x10001
mov qword [rsp + 0xc8], rcx
movzx eax, word [rcx + 0x4c]
or byte [rsp + 0x114], 3
movzx r13d, word [rcx + 0x4a]
mov word [rsp + 0x10c], ax
mov word [rsp + 0x6c], r13w
test byte [r14 + 0x40], 1
jne 0x1403482f9
mov rax, qword [r14 + 0x20]
mov esi, 1
mov rdi, rdx
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xd8], rax
jmp 0x140347a7c
mov esi, 1
mov rdi, rdx
jmp 0x140347a7c
and esi, edx
jmp 0x140347a9e
test byte [rax + 0x41], 0x40
jne 0x1403481b4
lea eax, [r13 + 0x1c]
jmp 0x1403481b9