Function at 0x14037ab80
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 0x14037b41d
mov rdi, qword [r13 + 0x60]
movzx r8d, word [r11 + 0x3a]
test rdi, rdi
setne r12b
xor ebp, ebp
cmp qword [r14 + 0x18], 0
je 0x14037b445
test r12b, r12b
mov dword [rsp + 0x28], 1
je 0x14037aed6
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x30], r11
nop word [rax + rax]
mov r9, qword [rdi + 0x48]
test r9, r9
je 0x14037ac44
movzx edx, byte [r13 + 0x3c]
mov ecx, dword [r13 + 0x44]
mov r8, qword [rsp + 0x20]
call sym.whereUsablePartialIndex
test eax, eax
je 0x14037afa0
movzx ebp, byte [rdi + 0x65]
and ebp, 1
jne 0x14037afa0
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 0x14037b0c0
mov rax, qword [r14]
mov r8, qword [rax + 0x10]
test r8, r8
je 0x14037b0c0
mov eax, dword [r8]
xor r15d, r15d
test eax, eax
jle 0x14037b0c0
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 0x14037ad23
nop dword [rax]
mov edx, dword [r12 + 4]
test edx, 0x82000
je 0x14037af17
and edx, 0x80000
je 0x14037aef8
mov rdx, qword [r12 + 0x20]
mov r12, qword [rdx + 8]
test r12, r12
jne 0x14037acf8
add rbx, 1
cmp eax, ebx
jg 0x14037ace0
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 0x14037ad6e
test al, 0x20
je 0x14037b0d5
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
jmp 0x14037b124
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 0x14037ada1
and ch, 0x40
je 0x14037ada8
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 0x14037aed6
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 0x14037adfd
mov rax, qword [rsp + 0x30]
or dword [rax + 0x30], 0x100
mov rax, qword [r14 + 0x20]
test rax, rax
je 0x14037aebb
mov rdx, qword [rax]
mov r15, qword [rax + 8]
movzx ecx, word [rdx + 8]
mov r8, qword [r15 + 0x18]
test cx, cx
je 0x14037ae74
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 0x14037ae4f
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x14037ae57
mov rcx, rbx
call sym.vdbeMemClear
add rbx, 0x38
cmp rbx, rsi
jne 0x14037ae40
mov rdx, qword [r12]
mov rax, r12
mov r8, r15
mov rbx, qword [rsp + 0x38]
test rdx, rdx
je 0x14037ae7d
sub dword [rdx], 1
je 0x14037b32f
test r8, r8
je 0x14037aeb3
cmp rax, qword [r8 + 0x1f0]
jae 0x14037aea5
cmp rax, qword [r8 + 0x1e0]
jae 0x14037b3d5
cmp rax, qword [r8 + 0x1e8]
jae 0x14037b5f5
cmp qword [r8 + 0x308], 0
jne 0x14037b382
mov rcx, rax
call sym.sqlite3_free
test byte [r13 + 0x40], 2
mov dword [r14 + 0x28], 0
mov qword [r14 + 0x20], 0
je 0x14037afad
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 0x14037ad23
mov edx, dword [r12 + 4]
test edx, 0x82000
jne 0x14037ad09
cmp byte [r12], 0xa7
je 0x14037afd0
mov r14, qword [rsi + 0x50]
test r14, r14
je 0x14037ad23
movzx edx, word [rsi + 0x5e]
test dx, dx
je 0x14037ad23
xor edi, edi
jmp 0x14037af4b
add rdi, 1
movzx eax, dx
cmp eax, edi
jle 0x14037af84
mov rax, qword [rsi + 8]
cmp word [rax + rdi*2], 0xfffe
jne 0x14037af40
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 0x14037b020
movzx edx, word [rsi + 0x5e]
add rdi, 1
movzx eax, dx
cmp eax, edi
jg 0x14037af4b
mov eax, dword [r13]
add rbx, 1
cmp eax, ebx
jg 0x14037ace0
jmp 0x14037ad2b
xor ebp, ebp
test byte [r13 + 0x40], 2
jne 0x14037aed6
add dword [rsp + 0x28], 1
test ebp, ebp
mov rdi, qword [rdi + 0x28]
jne 0x14037aed6
test rdi, rdi
jne 0x14037ac20
jmp 0x14037aed6
cmp r15d, dword [r12 + 0x2c]
jne 0x14037af22
movzx r10d, word [r12 + 0x30]
test r10w, r10w
js 0x14037b020
movzx r11d, word [rsi + 0x5e]
test r11w, r11w
je 0x14037ad23
mov rdx, qword [rsi + 8]
sub r11d, 1
lea r11, [rdx + r11*2 + 2]
jmp 0x14037b015
add rdx, 2
cmp r11, rdx
je 0x14037ad23
cmp r10w, word [rdx]
jne 0x14037b008
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 0x14037ad69
test al, 0x20
je 0x14037b392
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 0x14037b1b8
mov rcx, qword [rsp + 0x20]
movsx r8d, si
mov rdx, rbx
call sym.whereLoopOutputAdjust
test byte [r13 + 0x3c], 0x10
je 0x14037adb9
cmp qword [rdi + 0x50], 0
je 0x14037adb9
mov word [rbx + 0x16], si
jmp 0x14037add2
mov eax, edx
not eax
test al, 3
je 0x14037ad6e
and edx, 0x20
jne 0x14037ad5a
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 0x14037b3a6
movzx eax, byte [rdi + 0x65]
and eax, 0xc
cmp al, 8
je 0x14037b39d
test r15, r15
jne 0x14037b11b
mov dword [rbx + 0x38], 0x240
xor r15d, r15d
test r9d, r9d
jne 0x14037b05d
mov rax, qword [rsp + 0x30]
test byte [rax + 0x30], 0x80
jne 0x14037b062
cmp qword [rdi + 0x48], 0
jne 0x14037b062
test byte [r13 + 0x40], 2
jne 0x14037b062
test r15, r15
jne 0x14037add2
test byte [rdi + 0x64], 4
jne 0x14037add2
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x14037add2
mov rax, qword [rsp + 0x50]
test byte [rax + 0x3c], 4
jne 0x14037add2
cmp byte [0x140395127], 0
je 0x14037add2
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x14037add2
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 0x14037b08e
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 0x14037b2ee
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 0x14037b23a
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 0x14037b2d0
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 0x14037b2a3
mov rcx, r15
call sym.walkExpr
cmp word [rsp + 0xa4], 0
jne 0x14037b2d0
movzx eax, word [r12 + 0x10]
test ax, ax
jg 0x14037b218
add ebp, eax
add edi, 1
add r14, 0x38
cmp dword [rsi + 0x84], edi
jg 0x14037b23a
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 0x14037b3eb
lea r9d, [rdx + 0x31]
mov ebp, eax
cmp r9d, ecx
jl 0x14037b326
lea eax, [rdx + 0x1f]
cmp eax, ecx
jl 0x14037b60b
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 0x14037b08e
mov rcx, qword [rdx + 0x10]
cmp rdx, qword [rcx + 0x1f0]
jae 0x14037b356
cmp rdx, qword [rcx + 0x1e0]
jae 0x14037b5df
cmp rdx, qword [rcx + 0x1e8]
jae 0x14037b6b5
cmp qword [rcx + 0x308], 0
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
je 0x14037b5c8
call sym.measureAllocationSize
mov rax, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
jmp 0x14037ae7d
mov rdx, rax
mov rcx, r8
call sym.measureAllocationSize
jmp 0x14037aebb
mov r9d, 1
jmp 0x14037b0d8
test r15, r15
je 0x14037b111
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 0x14037b11b
or dword [rbx + 0x38], eax
jmp 0x14037b118
mov rdx, qword [r8 + 0x1d8]
mov qword [rax], rdx
mov qword [r8 + 0x1d8], rax
jmp 0x14037aebb
lea eax, [rcx + 0x31]
cmp eax, edx
jl 0x14037b326
lea eax, [rcx + 0x1f]
cmp eax, edx
jl 0x14037b60b
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 0x14037b08e
test byte [r11 + 0x30], 0x80
je 0x14037b617
mov rdi, qword [r11 + 0x10]
movzx r8d, word [r11 + 0x3a]
test rdi, rdi
setne r12b
xor ebp, ebp
cmp qword [r14 + 0x18], 0
jne 0x14037abff
movzx edx, word [r10 + 0x3c]
and dx, 0x1020
jne 0x14037abff
mov rcx, qword [r10]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x14037abff
test al, 3
jne 0x14037abff
test byte [r11 + 0x30], 0x80
jne 0x14037abff
test al, 0x48
jne 0x14037abff
test byte [r13 + 0x3c], 0x10
jne 0x14037abff
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 0x14037b6cb
mov rax, qword [rsp + 0x28]
cmp rsi, rax
jae 0x14037b6e9
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 [0x1404783c0]
mov rdi, r11
mov word [rsp + 0x38], ax
mov qword [rsp + 0x40], r10
jmp 0x14037b5ab
xor r8d, r8d
mov rdx, r13
mov rcx, rbp
call sym.termCanDriveIndex
mov edx, 1
test eax, eax
je 0x14037b591
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 0x14037b6df
test byte [rdi + 0x31], 0x40
jne 0x14037b6df
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 0x14037b6f0
test dl, dl
je 0x14037b6f0
mov r15, qword [rbp + 0x28]
mov rax, r15
and rax, qword [rbx + 8]
je 0x14037b4f1
mov edx, 1
xor eax, eax
jmp 0x14037b591
mov rcx, rdx
call sym.sqlite3_free
mov r8, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
jmp 0x14037ae7d
mov r9, qword [rcx + 0x1d8]
mov qword [rdx], r9
mov qword [rcx + 0x1d8], rdx
jmp 0x14037ae7d
mov rdx, qword [r8 + 0x1c8]
mov qword [rax], rdx
mov qword [r8 + 0x1c8], rax
jmp 0x14037aebb
add ebp, 1
mov word [rbx + 0x14], bp
jmp 0x14037b08e
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 0x14037b6a7
mov rcx, qword [r13 + 0x20]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0xd8], rcx
mov r12d, 1
mov rdi, rdx
jmp 0x14037abf2
mov r9, qword [rcx + 0x1c8]
mov qword [rdx], r9
mov qword [rcx + 0x1c8], rdx
jmp 0x14037ae7d
movsx rcx, r8w
call sym.sqlite3LogEst
lea edx, [rax - 0x21]
mov r9d, edx
jmp 0x14037b4b2
movzx eax, word [rsp + 0x38]
jmp 0x14037b547
xor ebp, ebp
jmp 0x14037abff
mov r11, rdi
mov r10, qword [rsp + 0x40]
mov ebp, eax
and r12d, edx
mov rdi, qword [rsp + 0x48]
jmp 0x14037abff