Function at 0x44f418
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, 0x158
mov rax, qword [rcx]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x1a8], rdx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x28], rax
movzx eax, byte [rbx + 0x10]
mov qword [rsp + 0x1a0], rcx
mov word [rsp + 0x6a], 0xffff
imul rax, rax, 0x68
lea rsi, [rdx + rax + 8]
mov rax, qword [rcx + 8]
test byte [rsi + 0x40], 2
mov rbp, qword [rsi + 0x20]
mov qword [rsp + 0x30], rax
je 0x44f47b
mov r15, qword [rsi + 0x60]
jmp 0x44f50a
mov eax, dword [rbp + 0x30]
and eax, 0x80
je 0x44f48b
mov r15, qword [rbp + 0x10]
jmp 0x44f50a
lea r15, [rsp + 0xb0]
mov ecx, 0x28
mov word [rsp + 0x6e], 0
mov rdi, r15
rep stosd dword [rdi], eax
lea rax, [rsp + 0x6a]
mov dword [rsp + 0x10c], 0x10003
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x6c]
mov byte [rsp + 0x112], 5
test byte [rsi + 0x40], 1
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0x114], 3
mov ax, word [rbp + 0x3a]
mov qword [rsp + 0xc8], rbp
mov word [rsp + 0x110], 1
mov word [rsp + 0x6c], ax
jne 0x44f50a
mov rax, qword [rsi + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x1a0]
xor edi, edi
cmp qword [rax + 0x18], 0
jne 0x44f528
mov rax, qword [rsp + 0x28]
test word [rax + 0x3c], 0x1020
je 0x44f535
mov dword [rsp + 0x38], 1
jmp 0x44f677
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
je 0x44f528
mov al, byte [rsi + 0x40]
test al, 3
jne 0x44f528
test byte [rbp + 0x30], 0x80
jne 0x44f528
test al, 0x48
jne 0x44f528
test byte [rsi + 0x3c], 0x10
jne 0x44f528
mov rax, qword [rsp + 0x30]
movsx ecx, word [rbp + 0x3a]
movsxd r13, dword [rax + 0x14]
mov r12, qword [rax + 0x20]
mov r14d, ecx
imul r13, r13, 0x38
lea rax, [r12 + r13]
mov qword [rsp + 0x38], rax
call sym.estLog
add r14d, eax
movsx r13d, ax
lea eax, [r14 - 0x19]
mov word [rsp + 0x40], ax
test edi, edi
jne 0x44f528
cmp r12, qword [rsp + 0x38]
jae 0x44f528
mov rax, qword [r12 + 0x28]
test qword [rbx + 8], rax
je 0x44f5b0
xor edi, edi
jmp 0x44f641
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call sym.termCanDriveIndex
test eax, eax
je 0x44f5a9
mov rax, qword [rbx + 0x48]
mov word [rbx + 0x18], 1
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x3c], 1
mov qword [rax], r12
cmp byte [rbp + 0x3f], 2
je 0x44f5ee
test byte [rbp + 0x31], 0x40
lea eax, [r14 + 0x1c]
je 0x44f5f2
mov eax, dword [rsp + 0x40]
test ax, ax
mov edx, 0
mov ecx, r13d
mov word [rbx + 0x16], 0x2b
cmovs eax, edx
mov edx, 0x2b
mov word [rbx + 0x12], ax
call sym.sqlite3LogEstAdd
mov rcx, qword [rsp + 0x1a0]
mov dword [rbx + 0x38], 0x4000
mov rdx, rbx
mov word [rbx + 0x14], ax
mov rax, qword [rsp + 0x1a8]
or rax, qword [r12 + 0x28]
mov qword [rbx], rax
call sym.whereLoopInsert
mov edi, eax
add r12, 0x38
jmp 0x44f593
test r15, r15
je 0x44faeb
mov r9, qword [r15 + 0x48]
test r9, r9
jne 0x44f680
test byte [r15 + 0x65], 1
je 0x44f697
xor edi, edi
test byte [rsi + 0x40], 2
jne 0x44fae3
mov r15, qword [r15 + 0x28]
inc dword [rsp + 0x38]
test edi, edi
je 0x44f64a
jmp 0x44faeb
movzx edx, byte [rsi + 0x3c]
mov ecx, dword [rsi + 0x44]
mov r8, qword [rsp + 0x30]
call sym.whereUsablePartialIndex
test eax, eax
jne 0x44f65c
jmp 0x44f663
mov rax, qword [r15 + 0x10]
mov r12w, word [rax]
mov dword [rbx + 0x3c], 0
mov byte [rbx + 0x11], 0
mov rax, qword [rsp + 0x1a8]
test byte [r15 + 0x64], 4
mov dword [rbx + 0x18], 0
mov word [rbx + 0x1c], 0
mov word [rbx + 0x12], 0
mov qword [rbx], rax
mov word [rbx + 0x16], r12w
mov qword [rbx + 0x20], r15
je 0x44f6e0
xor r13d, r13d
jmp 0x44f7bb
mov rax, qword [rsp + 0x1a0]
mov rax, qword [rax]
mov r14, qword [rax + 0x10]
test r14, r14
je 0x44f6d8
mov qword [rsp + 0x40], 0
mov eax, dword [rsi + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
cmp dword [r14], eax
jle 0x44f6d8
mov rax, qword [rsp + 0x40]
shl rax, 5
mov rcx, qword [r14 + rax + 8]
call sym.sqlite3ExprSkipCollateAndLikely
test rax, rax
mov r13, rax
jne 0x44f72f
inc qword [rsp + 0x40]
jmp 0x44f704
cmp byte [rax], 0xa7
jne 0x44f76e
mov eax, dword [rsp + 0x48]
cmp eax, dword [r13 + 0x2c]
jne 0x44f76e
mov edx, dword [r13 + 0x30]
test dx, dx
jns 0x44f74f
mov r13d, 1
jmp 0x44f7bb
movzx ecx, word [r15 + 0x5e]
xor eax, eax
cmp ecx, eax
jle 0x44f728
mov r8, qword [r15 + 8]
mov r8w, word [r8 + rax*2]
inc rax
cmp dx, r8w
jne 0x44f756
jmp 0x44f747
mov r9, qword [r15 + 0x50]
test r9, r9
je 0x44f728
xor edi, edi
movzx eax, word [r15 + 0x5e]
cmp eax, edi
jle 0x44f728
mov rax, qword [r15 + 8]
cmp word [rax + rdi*2], 0xfffe
je 0x44f792
inc rdi
jmp 0x44f779
mov rax, rdi
mov r8d, dword [rsp + 0x48]
mov rcx, r13
mov qword [rsp + 0x50], r9
shl rax, 5
mov rdx, qword [r9 + rax + 8]
call sym.sqlite3ExprCompareSkip
mov r9, qword [rsp + 0x50]
test eax, eax
jne 0x44f78d
jmp 0x44f747
mov al, byte [r15 + 0x64]
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x44f81f
test r13d, r13d
mov edi, r12d
mov dword [rbx + 0x38], 0x100
cmovne r13d, dword [rsp + 0x38]
mov byte [rbx + 0x11], r13b
mov edx, dword [rbp + 0x30]
mov eax, edx
shr eax, 0xc
and eax, 2
sub edi, eax
mov eax, edi
add eax, 0x10
mov word [rbx + 0x14], ax
cmp byte [rbp + 0x3f], 2
je 0x44f802
bt edx, 0xe
jae 0x44f809
mov dword [rbx + 0x38], 0x2000100
mov rcx, qword [rsp + 0x30]
movsx r8d, r12w
mov rdx, rbx
call sym.whereLoopOutputAdjust
jmp 0x44fa1b
test al, 0x20
je 0x44f82c
mov dword [rbx + 0x38], 0x240
jmp 0x44f878
mov rdi, qword [rsi + 0x50]
mov eax, 1
and rdi, qword [r15 + 0x98]
shl rax, 0x3f
mov dword [rbx + 0x38], 0x200
cmp rdi, rax
je 0x44f85c
mov al, byte [r15 + 0x65]
and eax, 0xc
cmp al, 8
jne 0x44f87c
test rdi, rdi
je 0x44f87c
mov rax, qword [rsp + 0x28]
mov rdx, r15
mov r8d, dword [rsi + 0x44]
mov rcx, qword [rax + 0x20]
call sym.whereIsCoveringIndex.isra.328
test eax, eax
je 0x44f888
or dword [rbx + 0x38], eax
xor edi, edi
jmp 0x44f888
test rdi, rdi
jne 0x44f888
mov dword [rbx + 0x38], 0x240
test r13d, r13d
jne 0x44f8f4
xor eax, eax
test byte [rbp + 0x30], 0x80
jne 0x44f8f8
cmp qword [r15 + 0x48], 0
jne 0x44f8f8
test byte [rsi + 0x40], 2
jne 0x44f8f8
test rdi, rdi
jne 0x44fa3a
test byte [r15 + 0x64], 4
jne 0x44fa3a
mov eax, dword [rbp + 0x3c]
cmp word [r15 + 0x5c], ax
jge 0x44fa3a
mov rax, qword [rsp + 0x28]
test byte [rax + 0x3c], 4
jne 0x44fa3a
cmp byte [0x004d3ae7], 0
je 0x44fa3a
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x44fa3a
xor eax, eax
jmp 0x44f8f8
mov al, byte [rsp + 0x38]
mov byte [rbx + 0x11], al
movsx eax, word [r15 + 0x5c]
movsx ecx, word [rbp + 0x3c]
imul eax, eax, 0xf
cdq
idiv ecx
test rdi, rdi
lea eax, [r12 + rax + 1]
mov word [rbx + 0x14], ax
je 0x44f9f6
mov r9d, dword [rsi + 0x44]
lea rax, [rsp + 0x80]
xor r8d, r8d
lea r13d, [r12 + 0x10]
mov qword [rsp + 0x40], rax
lea r10, [rsp + 0x70]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], r8d
jle 0x44f9bd
mov rax, qword [rsp + 0x28]
imul r14, r8, 0x38
mov ecx, 0xa
mov qword [rsp + 0x58], r8
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x48], r10
add r14, qword [rax + 0x90]
xor eax, eax
mov rdx, qword [r14]
mov dword [rsp + 0x78], r9d
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x70], r15
lea rax, [sym.exprIdxCover]
mov qword [rsp + 0xa8], r10
mov qword [rsp + 0x88], rax
call sym.sqlite3WalkExpr
mov r10, qword [rsp + 0x48]
cmp word [rsp + 0xa4], 0
mov r9d, dword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
je 0x44f9d0
movsx ecx, word [rbx + 0x14]
movsx edx, r13w
call sym.sqlite3LogEstAdd
mov word [rbx + 0x14], ax
jmp 0x44f9f6
mov eax, dword [r14 + 0x10]
test ax, ax
jg 0x44f9de
add r13d, eax
jmp 0x44f9ee
test byte [r14 + 0x14], 0x82
jne 0x44f9ea
dec r13d
jmp 0x44f9ee
sub r13d, 0x14
inc r8
jmp 0x44f93a
mov rcx, qword [rsp + 0x30]
movsx r8d, r12w
mov rdx, rbx
call sym.whereLoopOutputAdjust
test byte [rsi + 0x3c], 0x10
je 0x44fa1b
cmp qword [r15 + 0x50], 0
je 0x44fa1b
mov word [rbx + 0x16], r12w
jmp 0x44fa3a
mov rcx, qword [rsp + 0x1a0]
mov rdx, rbx
call sym.whereLoopInsert
mov word [rbx + 0x16], r12w
test eax, eax
mov edi, eax
jne 0x44faeb
mov rax, qword [rsp + 0x1a0]
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov byte [rax + 0x2c], 0
mov rcx, rax
call sym.whereLoopAddBtreeIndex
mov edi, eax
mov rax, qword [rsp + 0x1a0]
cmp byte [rax + 0x2c], 1
jne 0x44fa6e
or dword [rbp + 0x30], 0x100
mov rax, qword [rsp + 0x1a0]
mov r14, qword [rax + 0x20]
test r14, r14
je 0x44fac7
mov rax, qword [r14]
xor r12d, r12d
mov r13, qword [r14 + 8]
movzx eax, word [rax + 8]
mov dword [rsp + 0x40], eax
mov rax, qword [r13 + 0x18]
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x40], r12d
jle 0x44fab2
mov rcx, r13
inc r12d
add r13, 0x38
call sym.sqlite3VdbeMemRelease
jmp 0x44fa9a
mov rcx, qword [r14]
call sym.sqlite3KeyInfoUnref
mov rcx, qword [rsp + 0x48]
mov rdx, r14
call sym.sqlite3DbFreeNN
mov rax, qword [rsp + 0x1a0]
mov dword [rax + 0x28], 0
mov qword [rax + 0x20], 0
jmp 0x44f665
xor r15d, r15d
jmp 0x44f673
mov eax, edi
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret