Function at 0x1402a46b0
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
mov edi, 0xffffffff
mov rax, qword [rcx]
mov rbp, qword [rcx + 0x10]
mov qword [rsp + 0x1b8], rdx
mov rdx, qword [rax + 8]
mov r15, rcx
mov qword [rsp + 0x68], rax
movzx eax, byte [rbp + 0x10]
mov word [rsp + 0x72], di
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
lea r13, [rdx + rax*8 + 8]
mov rax, qword [r13 + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x48], rax
movzx eax, byte [r13 + 0x40]
test al, 2
je 0x1402a4f96
mov rdi, qword [r13 + 0x60]
test rdi, rdi
setne bl
xor r12d, r12d
cmp qword [r15 + 0x18], 0
je 0x1402a4fbd
test bl, bl
je 0x1402a4a04
mov r9, qword [rdi + 0x48]
mov dword [rsp + 0x44], 1
nop dword [rax]
test r9, r9
je 0x1402a4768
movzx edx, byte [r13 + 0x3c]
mov ecx, dword [r13 + 0x44]
mov r8, qword [rsp + 0x48]
call sym.whereUsablePartialIndex
test eax, eax
je 0x1402a4c20
movzx eax, byte [rdi + 0x65]
and eax, 1
mov byte [rsp + 0x38], al
jne 0x1402a4c20
mov rax, qword [rdi + 0x10]
xor ecx, ecx
xor r8d, r8d
movzx eax, word [rax]
mov word [rbp + 0x1c], cx
mov dword [rbp + 0x3c], 0
mov rcx, qword [rsp + 0x1b8]
mov word [rsp + 0x42], ax
mov byte [rbp + 0x11], 0
mov word [rbp + 0x16], ax
movzx eax, byte [rdi + 0x64]
mov dword [rbp + 0x18], 0
mov word [rbp + 0x12], r8w
mov qword [rbp], rcx
mov qword [rbp + 0x20], rdi
test al, 4
jne 0x1402a4c7f
mov rdx, qword [r15]
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1402a4c7f
mov edx, dword [rcx]
test edx, edx
jle 0x1402a484d
mov r12d, dword [r13 + 0x44]
mov qword [rsp + 0x60], r13
xor r14d, r14d
mov qword [rsp + 0x58], rbp
mov ebp, r12d
mov r12, rcx
nop word [rax + rax]
mov rax, r14
shl rax, 5
mov rbx, qword [r12 + rax + 8]
test rbx, rbx
je 0x1402a4836
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x1402a4a3b
test eax, 0x80000
je 0x1402a4a20
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x1402a4810
add r14, 1
cmp edx, r14d
jg 0x1402a47f8
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
movzx eax, byte [rdi + 0x64]
mov edx, eax
xor ebx, ebx
and edx, 3
cmp dl, 3
je 0x1402a5220
nop dword [rax]
test al, 0x20
je 0x1402a4cce
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rbp + 0x38], 0x240
test ebx, ebx
jne 0x1402a4cc0
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
jne 0x1402a48a0
cmp qword [rdi + 0x48], 0
je 0x1402a51a3
nop dword [rax + rax]
movzx eax, byte [rsp + 0x38]
mov rsi, qword [rsp + 0x50]
mov byte [rbp + 0x11], al
movsx edx, word [rdi + 0x5c]
movsx r8d, word [rsi + 0x3c]
movzx esi, word [rsp + 0x42]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv r8d
lea eax, [rsi + rax + 1]
mov word [rbp + 0x14], ax
test rcx, rcx
jne 0x1402a4d50
movsx r8d, word [rsp + 0x42]
mov rcx, qword [rsp + 0x48]
mov rdx, rbp
mov esi, r8d
call sym.whereLoopOutputAdjust
test byte [r13 + 0x3c], 0x10
je 0x1402a4c9b
cmp qword [rdi + 0x50], 0
je 0x1402a4c9b
mov word [rbp + 0x16], si
mov byte [r15 + 0x2c], 0
xor r9d, r9d
mov r8, rdi
mov rdx, r13
mov rcx, r15
call sym.whereLoopAddBtreeIndex
cmp byte [r15 + 0x2c], 1
mov r12d, eax
jne 0x1402a4933
mov rax, qword [rsp + 0x50]
or dword [rax + 0x30], 0x100
mov r14, qword [r15 + 0x20]
test r14, r14
je 0x1402a49e9
mov rdx, qword [r14]
mov rax, qword [r14 + 8]
movzx ecx, word [rdx + 8]
mov rsi, qword [rax + 0x18]
mov qword [rsp + 0x38], rsi
test cx, cx
je 0x1402a4998
sub ecx, 1
mov rsi, rax
lea rdx, [rcx*8]
sub rdx, rcx
lea rbx, [rax + rdx*8 + 0x38]
nop
test word [rsi + 0x14], 0x9000
jne 0x1402a497f
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x1402a4987
mov rcx, rsi
call sym.vdbeMemClear
add rsi, 0x38
cmp rsi, rbx
jne 0x1402a4970
mov rdx, qword [r14]
test rdx, rdx
je 0x1402a49a1
sub dword [rdx], 1
je 0x1402a4ec2
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1402a49e1
cmp qword [rax + 0x1f0], r14
jbe 0x1402a49ce
cmp qword [rax + 0x1e0], r14
jbe 0x1402a4f46
cmp qword [rax + 0x1e8], r14
jbe 0x1402a517e
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x308], 0
jne 0x1402a4f01
mov rcx, r14
call sym.sqlite3_free
mov dword [r15 + 0x28], 0
mov qword [r15 + 0x20], 0
test byte [r13 + 0x40], 2
je 0x1402a4bf8
mov eax, r12d
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x1402a4836
mov eax, dword [rbx + 4]
test eax, 0x82000
jne 0x1402a481e
cmp byte [rbx], 0xa7
je 0x1402a4c30
mov r13, qword [rdi + 0x50]
test r13, r13
je 0x1402a4836
movzx ecx, word [rdi + 0x5e]
test cx, cx
je 0x1402a4836
xor esi, esi
jmp 0x1402a4a77
add rsi, 1
movzx eax, cx
cmp eax, esi
jle 0x1402a4bc9
mov rax, qword [rdi + 8]
cmp word [rax + rsi*2], 0xfffe
jne 0x1402a4a68
mov rax, rsi
shl rax, 5
mov r8, qword [r13 + rax + 8]
test r8, r8
je 0x1402a4abb
nop dword [rax + rax]
mov eax, dword [r8 + 4]
test eax, 0x82000
je 0x1402a4abb
test eax, 0x80000
je 0x1402a4be0
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
jne 0x1402a4a98
mov rdx, rbx
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1402a4b9b
test eax, 0x80000
je 0x1402a4b80
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x1402a4abe
test r8, r8
jne 0x1402a4a68
movzx eax, byte [rdi + 0x64]
mov rbp, qword [rsp + 0x58]
mov ebx, 1
mov r13, qword [rsp + 0x60]
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x1402a4860
movzx eax, byte [rsp + 0x44]
mov dword [rbp + 0x38], 0x100
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0x38]
movsx r8d, word [rsp + 0x42]
mov rcx, qword [rsp + 0x48]
mov byte [rbp + 0x11], al
mov rax, qword [rsp + 0x50]
mov edx, r8d
mov esi, r8d
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x38], eax
shr eax, 0xc
and eax, 2
sub edx, eax
lea eax, [rdx + 0x10]
mov rdx, rbp
mov word [rbp + 0x14], ax
call sym.whereLoopOutputAdjust
mov rdx, rbp
mov rcx, r15
call sym.whereLoopInsert
mov word [rbp + 0x16], si
mov r12d, eax
test eax, eax
je 0x1402a4907
jmp 0x1402a4a04
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x1402a4ae4
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x1402a4acc
test r8, r8
je 0x1402a4a68
xor ecx, ecx
mov r9d, ebp
call sym.sqlite3ExprCompare.part.0
test eax, eax
je 0x1402a4aed
movzx ecx, word [rdi + 0x5e]
add rsi, 1
movzx eax, cx
cmp eax, esi
jg 0x1402a4a77
mov edx, dword [r12]
add r14, 1
cmp edx, r14d
jg 0x1402a47f8
jmp 0x1402a483f
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x1402a4a98
jmp 0x1402a4abb
add dword [rsp + 0x44], 1
mov rdi, qword [rdi + 0x28]
test r12d, r12d
jne 0x1402a4a04
test rdi, rdi
je 0x1402a4a04
mov r9, qword [rdi + 0x48]
jmp 0x1402a4748
xor r12d, r12d
jmp 0x1402a49f9
cmp ebp, dword [rbx + 0x2c]
jne 0x1402a4a44
movzx ecx, word [rbx + 0x30]
test cx, cx
js 0x1402a4aed
movzx r8d, word [rdi + 0x5e]
test r8w, r8w
je 0x1402a4836
mov rax, qword [rdi + 8]
sub r8d, 1
lea r8, [rax + r8*2 + 2]
jmp 0x1402a4c75
add rax, 2
cmp r8, rax
je 0x1402a4836
cmp cx, word [rax]
jne 0x1402a4c68
jmp 0x1402a4aed
mov edx, eax
xor ebx, ebx
and edx, 3
cmp dl, 3
jne 0x1402a4860
mov dword [rbp + 0x38], 0x100
jmp 0x1402a4b1e
mov rdx, rbp
mov rcx, r15
call sym.whereLoopInsert
mov r12d, eax
movzx eax, word [rsp + 0x42]
mov word [rbp + 0x16], ax
test r12d, r12d
je 0x1402a4907
jmp 0x1402a4a04
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x38], al
jmp 0x1402a48a0
mov r8, qword [rdi + 0x48]
mov rcx, qword [r13 + 0x50]
and rcx, qword [rdi + 0x98]
mov qword [rsp + 0x78], rcx
test r8, r8
je 0x1402a4d12
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x28], 0
mov rcx, qword [rax]
call sym.wherePartIdxExpr
mov rcx, qword [rsp + 0x78]
movabs rax, 0x8000000000000000
mov dword [rbp + 0x38], 0x200
cmp rcx, rax
je 0x1402a4f1f
movzx eax, byte [rdi + 0x65]
and eax, 0xc
cmp al, 8
jne 0x1402a4f11
test rcx, rcx
jne 0x1402a4f1f
mov dword [rbp + 0x38], 0x240
jmp 0x1402a487a
mov ecx, esi
mov rsi, qword [rsp + 0x68]
mov r10d, dword [r13 + 0x44]
lea ebx, [rcx + 0x10]
mov edx, dword [rsi + 0x84]
test edx, edx
jle 0x1402a4e82
xor r8d, r8d
lea rcx, [rsp + 0x90]
xor r12d, r12d
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r13
mov rbp, rsi
mov r13, rdi
mov rsi, rcx
mov qword [rsp + 0x1b0], r15
lea r9, [rsp + 0x80]
mov edi, r8d
mov r15d, r10d
jmp 0x1402a4dc9
lea eax, [rbx - 1]
sub ebx, 0x14
test byte [r14 + 0x14], 0x82
cmove ebx, eax
add edi, 1
add r12, 0x38
cmp dword [rbp + 0x84], edi
jle 0x1402a4e69
mov r14, qword [rbp + 0x90]
lea rax, [sym.exprIdxCover]
add r14, r12
mov rdx, qword [r14]
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 + 0x88], r15d
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], r9
test rdx, rdx
je 0x1402a4e46
mov rcx, rsi
mov qword [rsp + 0x38], r9
call sym.sqlite3WalkExprNN
mov r9, qword [rsp + 0x38]
cmp word [rsp + 0xb4], 0
jne 0x1402a4e69
movzx eax, word [r14 + 0x10]
test ax, ax
jg 0x1402a4da8
add ebx, eax
add edi, 1
add r12, 0x38
cmp dword [rbp + 0x84], edi
jg 0x1402a4dc9
mov rbp, qword [rsp + 0x58]
mov rdi, r13
mov r15, qword [rsp + 0x1b0]
mov r13, qword [rsp + 0x60]
movzx eax, word [rbp + 0x14]
movsx edx, bx
movsx ecx, ax
cmp bx, ax
jg 0x1402a4f5f
lea r8d, [rdx + 0x31]
cmp ecx, r8d
jg 0x1402a4eb9
lea r8d, [rdx + 0x1f]
cmp ecx, r8d
jg 0x1402a5197
sub ecx, edx
movsxd rdx, ecx
lea rcx, str._n_n_t_t_b_b_a_a_a
movzx edx, byte [rcx + rdx]
add eax, edx
mov word [rbp + 0x14], ax
jmp 0x1402a48d7
mov rcx, qword [rdx + 0x10]
cmp qword [rcx + 0x1f0], rdx
jbe 0x1402a4ee9
cmp qword [rcx + 0x1e0], rdx
jbe 0x1402a5168
cmp qword [rcx + 0x1e8], rdx
jbe 0x1402a5308
cmp qword [rcx + 0x308], 0
je 0x1402a515b
call sym.measureAllocationSize
jmp 0x1402a49a1
mov rdx, r14
mov rcx, rax
call sym.measureAllocationSize
jmp 0x1402a49e9
test rcx, rcx
jne 0x1402a487a
jmp 0x1402a4d44
mov rax, qword [rsp + 0x68]
mov r8d, dword [r13 + 0x44]
mov rdx, rdi
mov rcx, qword [rax + 0x20]
call sym.whereIsCoveringIndex.isra.0
test eax, eax
jne 0x1402a5148
mov rcx, qword [rsp + 0x78]
jmp 0x1402a487a
mov rcx, rax
mov rax, qword [rax + 0x1d8]
mov qword [r14], rax
mov qword [rcx + 0x1d8], r14
jmp 0x1402a49e9
lea r8d, [rcx + 0x31]
mov eax, ebx
cmp edx, r8d
jg 0x1402a4eb9
lea r8d, [rcx + 0x1f]
cmp edx, r8d
jg 0x1402a5197
sub edx, ecx
lea rcx, str._n_n_t_t_b_b_a_a_a
movsxd rdx, edx
movzx edx, byte [rcx + rdx]
add eax, edx
mov word [rbp + 0x14], ax
jmp 0x1402a48d7
mov rcx, qword [rsp + 0x50]
test byte [rcx + 0x30], 0x80
je 0x1402a5231
mov rdi, qword [rcx + 0x10]
test rdi, rdi
setne bl
xor r12d, r12d
cmp qword [r15 + 0x18], 0
jne 0x1402a4730
mov rcx, qword [rsp + 0x50]
movzx r14d, word [rcx + 0x3a]
mov rcx, qword [rsp + 0x68]
test word [rcx + 0x3c], 0x1020
jne 0x1402a4730
mov rdx, qword [rcx]
mov rdx, qword [rdx]
test byte [rdx + 0x31], 0x80
je 0x1402a4730
xor r12d, r12d
test al, 3
jne 0x1402a4730
mov rcx, qword [rsp + 0x50]
test byte [rcx + 0x30], 0x80
jne 0x1402a4730
test al, 0x48
jne 0x1402a4730
test byte [r13 + 0x3c], 0x10
jne 0x1402a4730
mov rax, qword [rsp + 0x48]
xor r11d, r11d
mov word [rsp + 0x42], r11w
movsxd rdx, dword [rax + 0x14]
mov rsi, qword [rax + 0x20]
lea rax, [rdx*8]
sub rax, rdx
lea rax, [rsi + rax*8]
mov qword [rsp + 0x38], rax
xor eax, eax
cmp r14w, 0xa
jg 0x1402a5337
cmp rsi, qword [rsp + 0x38]
jae 0x1402a532f
add r14d, eax
lea eax, [r14 - 0x19]
mov word [rsp + 0x44], ax
jmp 0x1402a512a
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call sym.termCanDriveIndex
test eax, eax
je 0x1402a5138
mov rax, qword [rbp + 0x48]
mov r10d, 1
mov qword [rbp + 0x20], 0
mov word [rbp + 0x18], r10w
mov dword [rbp + 0x3c], 1
mov qword [rax], rsi
mov rax, qword [rsp + 0x50]
cmp byte [rax + 0x3f], 2
je 0x1402a5325
test byte [rax + 0x31], 0x40
jne 0x1402a5325
lea eax, [r14 + 0x1c]
test ax, ax
mov ecx, 0
mov r9d, 0x2b
mov edx, 0x2b
cmovs eax, ecx
mov word [rbp + 0x16], r9w
movsx ecx, word [rsp + 0x42]
mov word [rbp + 0x12], ax
call sym.sqlite3LogEstAdd
mov dword [rbp + 0x38], 0x4000
mov rdx, rbp
mov rcx, r15
mov word [rbp + 0x14], ax
mov rax, qword [rsp + 0x1b8]
or rax, qword [rsi + 0x28]
mov qword [rbp], rax
call sym.whereLoopInsert
test eax, eax
mov r12d, eax
sete al
add rsi, 0x38
cmp qword [rsp + 0x38], rsi
jbe 0x1402a531e
test al, al
je 0x1402a531e
mov rax, qword [rsi + 0x28]
and rax, qword [rbp + 8]
je 0x1402a5068
mov eax, 1
xor r12d, r12d
jmp 0x1402a5113
or dword [rbp + 0x38], eax
xor ecx, ecx
mov qword [rsp + 0x78], 0
jmp 0x1402a487a
mov rcx, rdx
call sym.sqlite3_free
jmp 0x1402a49a1
mov rax, qword [rcx + 0x1d8]
mov qword [rdx], rax
mov qword [rcx + 0x1d8], rdx
jmp 0x1402a49a1
mov rcx, rax
mov rax, qword [rax + 0x1c8]
mov qword [r14], rax
mov qword [rcx + 0x1c8], r14
jmp 0x1402a49e9
add eax, 1
mov word [rbp + 0x14], ax
jmp 0x1402a48d7
test byte [r13 + 0x40], 2
jne 0x1402a48a0
test rcx, rcx
jne 0x1402a4907
test byte [rdi + 0x64], 4
jne 0x1402a4907
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x1402a4907
mov rax, qword [rsp + 0x68]
test byte [rax + 0x3c], 4
jne 0x1402a4907
cmp byte [0x1402ba6c7], 0
je 0x1402a4907
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x1402a4907
mov eax, edx
mov byte [rbp + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x42]
lea eax, [rcx + rax + 1]
mov word [rbp + 0x14], ax
jmp 0x1402a48d7
mov dword [rbp + 0x38], 0x100
mov byte [rsp + 0x38], 0
jmp 0x1402a4b1e
xor eax, eax
mov ecx, 0x14
mov ebx, 1
xor esi, esi
lea rdx, [rsp + 0xc0]
mov word [rsp + 0x76], si
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rsp + 0x72]
mov dword [rsp + 0x11c], 0x10003
movq xmm0, rax
lea rax, [rsp + 0x74]
mov byte [rsp + 0x122], 5
movq xmm1, rax
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x124], 3
punpcklqdq xmm0, xmm1
mov word [rsp + 0x120], bx
movzx r14d, word [rax + 0x3a]
mov qword [rsp + 0xd8], rax
movzx eax, byte [r13 + 0x40]
movups xmmword [rsp + 0xc8], xmm0
mov word [rsp + 0x74], r14w
test al, 1
jne 0x1402a52c6
mov rcx, qword [r13 + 0x20]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0xe8], rcx
xor r9d, r9d
cmp qword [r15 + 0x18], 0
mov rdi, rdx
jne 0x1402a473c
mov rcx, qword [rsp + 0x68]
test word [rcx + 0x3c], 0x1020
jne 0x1402a4738
mov rdx, qword [rcx]
mov rdx, qword [rdx]
test byte [rdx + 0x31], 0x80
je 0x1402a4738
mov ebx, 1
jmp 0x1402a4fe8
mov rax, qword [rcx + 0x1c8]
mov qword [rdx], rax
mov qword [rcx + 0x1c8], rdx
jmp 0x1402a49a1
and ebx, eax
jmp 0x1402a4730
movzx eax, word [rsp + 0x44]
jmp 0x1402a50bc
xor r12d, r12d
jmp 0x1402a4730
movsx rcx, r14w
call sym.sqlite3LogEst
sub eax, 0x21
mov word [rsp + 0x42], ax
jmp 0x1402a504c