Function at 0x1403a1340
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, 0xe8
mov r12, qword [rcx]
mov rbx, qword [r12]
mov qword [rsp + 0x138], rdx
mov edx, dword [rdx + 4]
mov rsi, qword [rsp + 0x138]
mov qword [rsp + 0x130], rcx
mov eax, edx
mov qword [rsp + 0x48], rbx
or eax, 0x40
mov dword [rsi + 4], eax
cmp byte [rbx + 0x63], 0
jne 0x1403a1619
mov r15d, edx
mov dword [rsp + 0x58], 1
and r15d, 0x40
jne 0x1403a1621
mov rax, qword [rsp + 0x130]
cmp word [rax + 0x24], 0
je 0x1403a13ce
mov eax, dword [r12 + 0x84]
mov rsi, qword [rsp + 0x138]
add eax, 1
mov dword [r12 + 0x84], eax
mov dword [rsi + 0x10], eax
mov rax, qword [rsp + 0x138]
cmp qword [r12 + 0x180], 0
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x68]
je 0x1403a1639
and edx, 0x200000
je 0x1403a1639
test rax, rax
je 0x1403a2118
mov edx, dword [r12 + 0x30]
mov dword [rax + 4], 1
test edx, edx
je 0x1403a164f
mov rsi, qword [rsp + 0x40]
mov rcx, r12
mov rdx, rsi
call dbg.sqlite3SrcListAssignCursors
mov rax, rsi
lea rsi, [rsi + 8]
mov eax, dword [rax]
mov qword [rsp + 0xc8], rsi
test eax, eax
jle 0x1403a19ec
mov rbp, qword [rsp + 0xc8]
lea r14, [0x140768440]
jmp 0x1403a148e
mov rax, qword [rsp + 0x40]
add r15d, 1
add rbp, 0x70
cmp dword [rax], r15d
jle 0x1403a19ec
cmp qword [rbp + 0x20], 0
jne 0x1403a1478
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x1403a1670
mov rsi, qword [r12 + 0x180]
test rsi, rsi
je 0x1403a14c3
mov eax, dword [r12 + 0x30]
test eax, eax
jne 0x1403a14c3
cmp qword [rbp + 8], 0
je 0x1403a16b0
mov r8, rbp
xor edx, edx
mov rcx, r12
call dbg.sqlite3LocateTableItem
mov qword [rbp + 0x20], rax
mov rsi, rax
test rax, rax
je 0x1403a1619
mov eax, dword [rax + 0x3c]
cmp eax, 0xfffe
ja 0x1403a2180
mov r11d, dword [rsi + 0x54]
add eax, 1
mov dword [rsi + 0x3c], eax
test r11d, r11d
je 0x1403a19d0
mov rax, qword [rsp + 0x130]
mov rdx, rsi
mov rcx, r12
movzx ebx, word [rax + 0x24]
call dbg.sqlite3ViewGetColumnNames
test eax, eax
jne 0x1403a1619
cmp qword [rsi + 0x18], 0
je 0x1403a1552
mov rax, qword [rsp + 0x48]
test byte [rax + 0x33], 0x80
jne 0x1403a1552
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x38]
cmp qword [rsi + 0x70], rax
je 0x1403a1552
mov r8, qword [rsi]
lea rdx, str.access_to_view___s__prohibited
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov r10d, dword [rsi + 0x54]
test r10d, r10d
je 0x1403a1597
test byte [rbp + 0x40], 0x40
je 0x1403a1597
mov rdx, qword [rsi + 0x60]
test rdx, rdx
je 0x1403a1597
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
movzx eax, byte [rsp + 0x50]
shr al, 7
cmp byte [rdx + 0x1d], al
jbe 0x1403a1597
mov r8, qword [rsi]
lea rdx, str.unsafe_use_of_virtual_table___s_
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
call dbg.sqlite3SelectDup
mov r8d, 0xffffffff
mov r9d, 1
movzx edi, word [rsi + 0x46]
mov qword [rbp + 0x28], rax
mov rdx, rax
mov rax, qword [rsp + 0x130]
mov word [rsi + 0x46], r8w
mov word [rax + 0x24], r9w
test rdx, rdx
je 0x1403a15e5
cmp qword [rax + 0x10], 0
je 0x1403a15e5
mov rcx, rax
call sym.sqlite3WalkSelect.part.0
mov rax, qword [rsp + 0x130]
and bx, 0xff
mov word [rax + 0x24], bx
mov word [rsi + 0x46], di
movzx eax, byte [rbp + 0x40]
test al, 2
je 0x1403a1478
mov rdx, rbp
mov rcx, r12
call dbg.sqlite3IndexedByLookup
test eax, eax
je 0x1403a1478
mov dword [rsp + 0x58], 2
mov eax, dword [rsp + 0x58]
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rax, rax
je 0x1403a1437
mov edx, dword [r12 + 0x30]
test edx, edx
jne 0x1403a1437
mov rdx, qword [r12 + 0x180]
mov qword [rax + 8], rdx
mov qword [r12 + 0x180], rax
jmp 0x1403a1437
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x1403a1694
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x10], 0
je 0x1403a1694
mov rcx, rax
call sym.sqlite3WalkSelect.part.0
test eax, eax
jne 0x1403a1619
mov rdx, rbp
mov rcx, r12
call dbg.sqlite3ExpandSubquery
test eax, eax
je 0x1403a15fa
jmp 0x1403a1619
test byte [rbp + 0x41], 1
jne 0x1403a14c3
mov ebx, dword [rsi]
lea r11, [rsi + 0x10]
xor r10d, r10d
test ebx, ebx
jle 0x1403a19b1
nop dword [rax + rax]
mov r9, qword [r11]
xor ecx, ecx
jmp 0x1403a16f3
movzx edi, byte [r14 + rdx]
cmp byte [r14 + rax], dil
jne 0x1403a19a0
add rcx, 1
movzx eax, byte [r8 + rcx]
movzx edx, byte [r9 + rcx]
cmp eax, edx
jne 0x1403a16e0
test eax, eax
jne 0x1403a16ef
movsxd rax, r10d
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rax
lea rax, [rax + rax*2]
shl rax, 4
mov rdx, qword [rsi + rax + 0x28]
test rdx, rdx
jne 0x1403a1fea
test byte [rbp + 0x40], 4
jne 0x1403a1bc0
mov rbx, qword [r12]
test rbx, rbx
je 0x1403a20fa
mov edx, 0x78
mov rcx, rbx
call sym.sqlite3DbMallocRawNN
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1403a1619
lea rsi, [rax + 8]
mov qword [rax], 0
mov qword [rax + 0x70], 0
mov qword [rsp + 0x90], rsi
and rsi, 0xfffffffffffffff8
sub rax, rsi
mov rdi, rsi
mov rcx, rax
xor eax, eax
add ecx, 0x78
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, qword [rsp + 0x58]
lea rsi, [rax + rax*2]
shl rsi, 4
add rsi, qword [rsp + 0x50]
mov r13, qword [rsi + 0x30]
test r13, r13
je 0x1403a21a7
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rcx, rbx
lea rsi, [rax + rax*2]
mov qword [rbp + 0x20], rdi
shl rsi, 4
mov dword [rdi + 0x3c], 1
add rsi, qword [rsp + 0x50]
mov rdx, qword [rsi + 0x10]
call sym.sqlite3DbStrDup
mov rdx, qword [rsi + 0x20]
xor r8d, r8d
mov rcx, rbx
mov qword [rdi], rax
mov eax, 0xffffffff
or dword [rdi + 0x40], 0x4200
mov word [rdi + 0x44], ax
mov eax, 0xc8
mov word [rdi + 0x4a], ax
call dbg.sqlite3SelectDup
mov qword [rbp + 0x28], rax
cmp byte [rbx + 0x63], 0
mov rdi, rax
jne 0x1403a1619
mov r11d, dword [rax + 4]
or r11d, 0x4000000
mov dword [rax + 4], r11d
mov eax, dword [r13]
or byte [rbp + 0x40], 0x80
add eax, 1
mov qword [rbp + 0x68], r13
mov dword [r13], eax
cmp eax, 1
jle 0x1403a184d
cmp byte [r13 + 0x12], 1
je 0x1403a210e
movzx eax, byte [rdi]
mov byte [rsp + 0x80], al
add eax, 0x7b
mov byte [rsp + 0x88], al
cmp al, 1
ja 0x1403a29a3
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rbp
mov ebx, 0xffffffff
mov dword [rsp + 0x98], r15d
mov r15, rdi
lea rax, [rax + rax*2]
mov qword [rsp + 0x78], rdi
mov edi, ebx
shl rax, 4
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rbp, qword [r15 + 0x28]
mov esi, dword [rbp]
test esi, esi
jle 0x1403a23ea
lea r9, [rbp + 0x10]
xor r10d, r10d
jmp 0x1403a18c9
add r10d, 1
add r9, 0x70
cmp r10d, esi
je 0x1403a1974
mov ebx, r11d
and ebx, 0x2000
cmp qword [r9], 0
jne 0x1403a18b8
mov r8, qword [r9 + 8]
test r8, r8
je 0x1403a18b8
mov rax, qword [rsp + 0x68]
xor ecx, ecx
mov r13, qword [rax + 0x10]
jmp 0x1403a18ff
movzx edx, byte [r14 + rdx]
cmp byte [r14 + rax], dl
jne 0x1403a18b8
add rcx, 1
movzx eax, byte [r8 + rcx]
movzx edx, byte [r13 + rcx]
cmp eax, edx
jne 0x1403a18f0
test eax, eax
jne 0x1403a18fb
mov rax, qword [rsp + 0x60]
movsxd rdx, r10d
mov qword [r9 + 0x18], rax
add dword [rax + 0x3c], 1
lea rax, [rdx*8]
sub rax, rdx
shl rax, 4
or byte [rbp + rax + 0x48], 0x20
test ebx, ebx
jne 0x1403a2230
or r11d, 0x2000
mov dword [r15 + 4], r11d
test edi, edi
jns 0x1403a195a
mov edi, dword [r12 + 0x34]
lea eax, [rdi + 1]
mov dword [r12 + 0x34], eax
add r10d, 1
mov dword [r9 + 0x3c], edi
mov ebx, 0x2000
add r9, 0x70
cmp r10d, esi
jne 0x1403a18c9
test ebx, ebx
je 0x1403a226d
mov r15, qword [r15 + 0x50]
movzx eax, byte [rsp + 0x80]
cmp al, byte [r15]
jne 0x1403a226d
mov r11d, dword [r15 + 4]
jmp 0x1403a189c
add r10d, 1
add r11, 0x30
cmp r10d, ebx
jne 0x1403a16d0
mov eax, dword [rsi + 4]
test eax, eax
jne 0x1403a14c3
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x1403a16ba
jmp 0x1403a14c3
movzx eax, byte [rbp + 0x40]
test al, 4
jne 0x1403a1bbc
cmp qword [rsi + 0x18], 0
jne 0x1403a1501
jmp 0x1403a15fe
mov eax, dword [r12 + 0x30]
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x1403a1619
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x63], 0
jne 0x1403a1619
mov rax, qword [rsp + 0x138]
mov r14, qword [rax + 0x28]
lea rax, [r14 + 8]
cmp dword [r14], 1
mov qword [rsp + 0x68], rax
jle 0x1403a1bfe
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x50], r12
mov ebx, 1
add rax, 0x30
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x20], 0
mov rbp, qword [rax + 0x90]
je 0x1403a1bdc
test rbp, rbp
je 0x1403a1bdc
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0xac]
mov esi, eax
and esi, 0x20
mov byte [rsp + 0x60], sil
setne sil
movzx esi, sil
mov dword [rsp + 0x98], esi
test al, 4
jne 0x1403a2021
mov rax, qword [rsp + 0x68]
mov r8, qword [rax + 0xb8]
mov r13, qword [rax + 0xc0]
test r8, r8
je 0x1403a1af8
test r13, r13
jne 0x1403a2941
cmp byte [rsp + 0x60], 0
jne 0x1403a2002
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rax + 0x30]
call dbg.sqlite3ExprAnd
mov rsi, qword [rsp + 0x138]
mov qword [rsi + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rax + 0xb8], 0
mov r13, qword [rax + 0xc0]
test r13, r13
je 0x1403a1bdc
mov ecx, dword [r13 + 8]
xor edi, edi
test ecx, ecx
jg 0x1403a1b4b
jmp 0x1403a1bdc
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov r8d, r12d
mov rdx, r14
mov dword [rsp + 0x20], ebx
mov rcx, qword [rsp + 0x50]
add rdi, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
call dbg.addWhereTerm
cmp dword [r13 + 8], edi
jle 0x1403a1be0
mov rax, rdi
movzx edx, word [rbp + 0x46]
mov rcx, qword [rbp + 8]
shl rax, 4
add rax, qword [r13]
mov r8, qword [rax]
call sym.sqlite3ColumnIndex.isra.0
mov esi, eax
test eax, eax
js 0x1403a1b9b
mov dword [rsp + 0x60], ebx
lea r15, [r14 + 0x28]
xor r12d, r12d
mov rax, qword [r15]
movzx edx, word [rax + 0x46]
mov rcx, qword [rax + 8]
call sym.sqlite3ColumnIndex.isra.0
mov r9d, eax
test eax, eax
jns 0x1403a1b10
add r12d, 1
add r15, 0x70
cmp ebx, r12d
jne 0x1403a1b77
mov r12, qword [rsp + 0x50]
lea rdx, str.cannot_join_using_column__s___column_not_present_in_both_tables
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov r8, qword [rbp + 0x10]
lea rdx, str._s_is_not_a_function
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov dword [rsp + 0x60], ebx
mov eax, dword [r14]
add qword [rsp + 0x68], 0x70
add ebx, 1
sub eax, 1
cmp eax, dword [rsp + 0x60]
jg 0x1403a1a46
mov r12, qword [rsp + 0x50]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
test eax, eax
jle 0x1403a2846
mov rbx, qword [rsp + 0xb0]
sub eax, 1
xor r9d, r9d
shl rax, 5
lea rsi, [rbx + 8]
lea r8, [rbx + rax + 0x28]
mov qword [rsp + 0xb8], rsi
mov rax, rsi
jmp 0x1403a1c51
add rax, 0x20
or r9d, dword [rdx + 4]
cmp r8, rax
je 0x1403a2814
mov rdx, qword [rax]
movzx ecx, byte [rdx]
cmp cl, 0xb3
je 0x1403a1c6a
cmp cl, 0x8c
jne 0x1403a1c40
mov rcx, qword [rdx + 0x18]
cmp byte [rcx], 0xb3
jne 0x1403a1c40
mov rax, qword [r12]
xor r13d, r13d
mov dword [rsp + 0xc0], r9d
lea r15, [0x140768440]
mov dword [rsp + 0xc4], 0
mov rbp, r13
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x60], r12
and eax, 0x44
mov dword [rsp + 0x78], eax
jmp 0x1403a1d4a
cmp al, 0x8c
jne 0x1403a1cb4
mov rax, qword [r8 + 0x18]
cmp byte [rax], 0xb3
je 0x1403a282a
mov rcx, qword [rsp + 0x60]
mov rdx, rbp
call sym.sqlite3ExprListAppend
mov rbx, rax
mov rbp, rax
test rax, rax
je 0x1403a1d13
mov eax, dword [rax]
mov rsi, qword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
sub eax, 1
mov rdx, qword [rsi + 8]
cdqe
shl rax, 5
add rax, rbx
mov qword [rax + 0x10], rdx
lea rcx, [rax + 0x10]
movzx eax, byte [rsi + 0x14]
mov edx, eax
mov byte [rsp + 0x50], al
movzx eax, byte [rcx + 0xc]
and edx, 3
and eax, 0xfffffffc
or eax, edx
mov byte [rcx + 0xc], al
mov qword [rsi + 8], 0
mov rax, qword [rsp + 0xb8]
mov qword [rax], 0
mov rsi, qword [rsp + 0xb0]
add dword [rsp + 0xc4], 1
add qword [rsp + 0xb8], 0x20
mov eax, dword [rsp + 0xc4]
cmp dword [rsi], eax
jle 0x1403a27b0
mov rax, qword [rsp + 0xb8]
mov r8, qword [rax]
movzx eax, byte [r8]
mov ebx, dword [r8 + 4]
or dword [rsp + 0xc0], ebx
cmp al, 0xb3
jne 0x1403a1ca3
mov rax, qword [rsp + 0x40]
xor edi, edi
mov edx, dword [rax]
test edx, edx
jle 0x1403a2876
mov rax, qword [rsp + 0xc8]
xor r14d, r14d
mov dword [rsp + 0x9c], 0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rbx, qword [rax + 0x20]
mov rsi, qword [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rax + 0x28]
mov qword [rsp + 0x80], rbx
test rsi, rsi
je 0x1403a2763
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x63], 0
jne 0x1403a1fbf
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1403a1de5
test byte [rax + 5], 8
jne 0x1403a2770
test rdi, rdi
je 0x1403a1e13
xor edx, edx
jmp 0x1403a1e03
movzx ebx, byte [r15 + rcx]
cmp byte [r15 + rax], bl
jne 0x1403a1f9d
add rdx, 1
movzx eax, byte [rdi + rdx]
movzx ecx, byte [rsi + rdx]
cmp eax, ecx
jne 0x1403a1df0
test eax, eax
jne 0x1403a1dff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x70]
mov qword [rsp + 0x80], rcx
test rcx, rcx
je 0x1403a2862
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x20]
cmp rcx, qword [rdx + 0x18]
je 0x1403a1e4d
lea rax, [rdx + 0x20]
mov rdx, rax
add rax, 0x20
cmp rcx, qword [rax - 8]
jne 0x1403a1e40
mov qword [rsp + 0x80], 0
mov rax, qword [rdx]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
cmp word [rax + 0x46], 0
jle 0x1403a1f9d
test rdi, rdi
mov qword [rsp + 0x88], rdi
mov r12, rbp
mov r11d, r14d
setne dl
mov qword [rsp + 0xa8], rsi
cmp qword [rsp + 0x80], 0
setne al
mov esi, dword [rsp + 0x9c]
xor ebx, ebx
and edx, eax
mov byte [rsp + 0x98], dl
nop
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov dword [rsp + 0x70], ebx
shl rax, 5
mov rbp, qword [rdi + 8]
add rbp, rax
cmp byte [rsp + 0x98], 0
mov rdi, qword [rbp]
jne 0x1403a25d8
mov rax, qword [rsp + 0x138]
test byte [rax + 6], 2
jne 0x1403a1ef1
test byte [rbp + 0x1c], 2
jne 0x1403a1f7a
test esi, esi
jle 0x1403a2643
cmp qword [rsp + 0x88], 0
jne 0x1403a2643
mov rax, qword [rsp + 0x68]
test byte [rax + 0x3c], 4
jne 0x1403a265b
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x1403a2643
mov r9, qword [rax]
mov eax, dword [rax + 8]
test eax, eax
jle 0x1403a2643
sub eax, 1
shl rax, 4
lea r11, [r9 + rax + 0x10]
nop dword [rax + rax]
mov r8, qword [r9]
xor ecx, ecx
jmp 0x1403a1f63
movzx edx, byte [r15 + rdx]
cmp byte [r15 + rax], dl
jne 0x1403a2400
add rcx, 1
movzx eax, byte [r8 + rcx]
movzx edx, byte [rdi + rcx]
cmp eax, edx
jne 0x1403a1f50
test eax, eax
jne 0x1403a1f5f
mov r11d, 1
mov rax, qword [rsp + 0x50]
add rbx, 1
movsx eax, word [rax + 0x46]
cmp eax, ebx
jg 0x1403a1eb0
mov rdi, qword [rsp + 0x88]
mov rbp, r12
mov r14d, r11d
mov rbx, qword [rsp + 0x40]
add dword [rsp + 0x9c], 1
add qword [rsp + 0x68], 0x70
mov eax, dword [rsp + 0x9c]
cmp dword [rbx], eax
jg 0x1403a1d98
test r14d, r14d
jne 0x1403a1d22
test rdi, rdi
je 0x1403a2876
mov rcx, qword [rsp + 0x60]
mov r8, rdi
lea rdx, str.no_such_table:__s
call dbg.sqlite3ErrorMsg
jmp 0x1403a1d22
mov r8, r9
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov rsi, qword [rsp + 0x68]
mov rcx, r8
mov edx, dword [rsi + 0xb4]
call dbg.sqlite3SetJoinExpr
mov r8, qword [rsi + 0xb8]
jmp 0x1403a1abf
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0xb8], 0
jne 0x1403a2962
cmp qword [rax + 0xc0], 0
jne 0x1403a2962
xor esi, esi
cmp word [rbp + 0x46], 0
jle 0x1403a1bdc
mov rax, rsi
mov edi, esi
shl rax, 5
add rax, qword [rbp + 8]
test byte [rax + 0x1c], 2
jne 0x1403a20a4
mov r8, qword [rax]
lea r13, [r14 + 0x28]
xor r12d, r12d
nop dword [rax]
mov rax, qword [r13]
mov r15, qword [rax + 8]
movzx edx, word [rax + 0x46]
mov rcx, r15
call sym.sqlite3ColumnIndex.isra.0
test eax, eax
js 0x1403a2097
movsxd rdx, eax
shl rdx, 5
test byte [r15 + rdx + 0x1c], 2
je 0x1403a20b5
add r12d, 1
add r13, 0x70
cmp ebx, r12d
jne 0x1403a2070
movsx eax, word [rbp + 0x46]
add rsi, 1
cmp eax, esi
jg 0x1403a204f
jmp 0x1403a1a93
mov r9d, eax
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x28], edi
mov r8d, r12d
mov dword [rsp + 0x20], ebx
mov rcx, qword [rsp + 0x50]
mov rdx, r14
add rsi, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
call dbg.addWhereTerm
movsx eax, word [rbp + 0x46]
cmp eax, esi
jg 0x1403a204f
jmp 0x1403a1a93
mov ecx, 0x78
call sym.sqlite3Malloc
mov qword [rsp + 0x60], rax
jmp 0x1403a1751
mov byte [r13 + 0x12], 0
jmp 0x1403a184d
mov rcx, qword [rsp + 0x48]
mov edx, 0x40
call sym.sqlite3DbMallocRawNN
test rax, rax
je 0x1403a2986
mov rsi, qword [rsp + 0x138]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0
mov qword [rax + 0x20], 0
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
mov qword [rsi + 0x68], rax
jmp 0x1403a1423
mov r8, qword [rsi]
lea rdx, str.too_many_references_to___s_:_max_65535
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov qword [rbp + 0x20], 0
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
test rbx, rbx
je 0x1403a225b
mov edx, 0x14
mov rcx, rbx
call sym.sqlite3DbMallocRawNN
mov r13, rax
test r13, r13
je 0x1403a2921
mov qword [r13], 0
mov qword [r13 + 8], 0
mov dword [r13 + 0x10], 0
mov rcx, qword [r12]
mov qword [rsi + 0x30], r13
test rcx, rcx
je 0x1403a224f
mov edx, 0x18
call sym.sqlite3DbMallocRawNN
test rax, rax
je 0x1403a28f8
mov rdx, qword [r12 + 0x188]
lea rdi, [sym.sqlite3DbFree]
mov qword [rax], rdx
mov qword [r12 + 0x188], rax
mov qword [rax + 8], r13
mov qword [rax + 0x10], rdi
movzx eax, byte [rsi + 0x38]
mov byte [r13 + 0x12], al
jmp 0x1403a17b1
mov r8, r13
lea rdx, str.multiple_references_to_recursive_table:__s
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov ecx, 0x18
call sym.sqlite3Malloc
jmp 0x1403a21f8
mov ecx, 0x14
call sym.sqlite3Malloc
mov r13, rax
jmp 0x1403a21c0
mov rdi, qword [rsp + 0x78]
mov rcx, r15
mov rbp, qword [rsp + 0x70]
mov r15d, dword [rsp + 0x98]
mov r11d, dword [rdi + 4]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
lea rsi, str.circular_reference:__s
lea rax, [rax + rax*2]
shl rax, 4
and r11d, 0x2000
mov qword [rbx + rax + 0x28], rsi
mov rax, qword [rsp + 0x130]
mov rsi, qword [r12 + 0x180]
mov qword [r12 + 0x180], rbx
mov rax, qword [rax + 0x10]
jne 0x1403a23b4
test rax, rax
je 0x1403a22ea
mov rcx, qword [rsp + 0x130]
mov rdx, rdi
call sym.sqlite3WalkSelect.part.0
test eax, eax
jne 0x1403a23a7
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x180], rax
mov rax, rdi
mov rdx, rax
mov rax, qword [rax + 0x50]
test rax, rax
jne 0x1403a22fa
mov rax, qword [rsp + 0x58]
mov rdx, qword [rdx + 0x20]
lea rax, [rax + rax*2]
shl rax, 4
add rax, qword [rsp + 0x50]
mov r10, qword [rax + 0x18]
test r10, r10
je 0x1403a23f8
test rdx, rdx
je 0x1403a2339
mov r9d, dword [rdx]
mov edx, dword [r10]
cmp r9d, edx
jne 0x1403a2390
mov rax, qword [rsp + 0x60]
mov r9, qword [rsp + 0x90]
mov rdx, r10
mov rcx, qword [r12]
lea r8, [rax + 0x46]
call sym.sqlite3ColumnsFromExprList.isra.0
cmp byte [rsp + 0x88], 1
jbe 0x1403a288c
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
lea rax, [rax + rax*2]
shl rax, 4
mov qword [rbx + rax + 0x28], 0
movzx eax, byte [rbp + 0x40]
mov qword [r12 + 0x180], rsi
jmp 0x1403a15fe
mov dword [rsp + 0x20], edx
mov r8, qword [rax + 0x10]
mov rcx, r12
lea rdx, str.table__s_has__d_values_for__d_columns
call dbg.sqlite3ErrorMsg
mov qword [r12 + 0x180], rsi
jmp 0x1403a1619
mov rdx, qword [rdi + 0x68]
mov qword [rcx + 0x68], rdx
test rax, rax
je 0x1403a29ab
mov rbx, rcx
mov rdx, rcx
mov rcx, qword [rsp + 0x130]
call sym.sqlite3WalkSelect.part.0
mov qword [rbx + 0x68], 0
test eax, eax
je 0x1403a22ea
jmp 0x1403a23a7
mov ebx, r11d
and ebx, 0x2000
jmp 0x1403a1974
mov r10, rdx
jmp 0x1403a2339
add r9, 0x10
cmp r11, r9
jne 0x1403a1f48
mov qword [rsp + 0xd0], rdi
mov rcx, rdi
call sym.strlen
and eax, 0x3fffffff
mov rcx, qword [rsp + 0x48]
lea rbp, [rsp + 0xd0]
xor r9d, r9d
mov edx, 0x3b
mov r8, rbp
mov dword [rsp + 0xd8], eax
call sym.sqlite3ExprAlloc
cmp dword [rsp + 0x78], 4
mov r11, rax
je 0x1403a2461
mov rax, qword [rsp + 0x40]
xor r13d, r13d
cmp dword [rax], 1
jle 0x1403a254e
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xd0], rcx
test rcx, rcx
je 0x1403a275c
mov qword [rsp + 0xa0], r11
call sym.strlen
mov r11, qword [rsp + 0xa0]
and eax, 0x3fffffff
mov r13, qword [rsp + 0x48]
xor r9d, r9d
mov r8, rbp
mov edx, 0x3b
mov qword [rsp + 0xa0], r11
mov rcx, r13
mov dword [rsp + 0xd8], eax
call sym.sqlite3ExprAlloc
mov r14, qword [rsp + 0x60]
mov edx, 0x8c
mov r11, qword [rsp + 0xa0]
mov r8, rax
mov r9, r11
mov rcx, r14
call dbg.sqlite3PExpr
mov r11, rax
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x1403a2540
mov rcx, rax
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0xd0], rax
call sym.strlen
xor r9d, r9d
mov r8, rbp
mov edx, 0x3b
and eax, 0x3fffffff
mov rcx, r13
mov dword [rsp + 0xd8], eax
call sym.sqlite3ExprAlloc
mov r11, qword [rsp + 0xa0]
mov edx, 0x8c
mov rcx, r14
mov r8, rax
mov r9, r11
call dbg.sqlite3PExpr
mov r11, rax
xor r13d, r13d
cmp dword [rsp + 0x78], 4
je 0x1403a2725
mov rcx, qword [rsp + 0x60]
mov rdx, r12
mov r8, r11
call sym.sqlite3ExprListAppend
mov qword [rsp + 0xd0], rdi
mov r12, rax
test rdi, rdi
je 0x1403a26ac
mov rcx, rdi
call sym.strlen
and eax, 0x3fffffff
mov dword [rsp + 0xd8], eax
test r12, r12
je 0x1403a25bd
mov r14, qword [rsp + 0x60]
xor r9d, r9d
mov r8, rbp
mov rdx, r12
mov rcx, r14
call sym.sqlite3ExprListSetName.part.0
mov rax, qword [rsp + 0x138]
test byte [rax + 5], 8
je 0x1403a25bd
cmp byte [r14 + 0x114], 1
jbe 0x1403a26b3
test r13, r13
je 0x1403a1f74
mov rcx, qword [rsp + 0x48]
mov rdx, r13
call sym.sqlite3DbFreeNN
jmp 0x1403a1f74
mov rcx, qword [rsp + 0x80]
movsxd rdx, ebx
shl rdx, 5
mov rcx, qword [rcx + 0x20]
movzx edx, byte [rcx + rdx + 0x1c]
and edx, 3
cmp dl, 2
jne 0x1403a1f7a
mov rcx, qword [rcx + rax + 0x10]
mov r8, qword [rsp + 0x88]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0xa0], r11d
call sym.sqlite3MatchEName.part.0.isra.0
mov r11d, dword [rsp + 0xa0]
test eax, eax
je 0x1403a1f7a
mov rax, qword [rsp + 0x138]
test byte [rax + 6], 2
jne 0x1403a2643
test byte [rbp + 0x1c], 2
jne 0x1403a1f7a
mov qword [rsp + 0xd0], rdi
xor eax, eax
test rdi, rdi
jne 0x1403a2415
jmp 0x1403a2422
mov rax, qword [rsp + 0x40]
xor ebp, ebp
mov r8, rdi
lea r13, [rax + 0x28]
nop dword [rax]
mov rax, qword [r13]
mov rdi, qword [rax + 8]
movzx edx, word [rax + 0x46]
mov rcx, rdi
call sym.sqlite3ColumnIndex.isra.0
test eax, eax
js 0x1403a2699
cdqe
shl rax, 5
test byte [rdi + rax + 0x1c], 2
je 0x1403a1f74
add ebp, 1
add r13, 0x70
cmp ebp, esi
jl 0x1403a2670
mov rdi, r8
jmp 0x1403a1f17
xor eax, eax
jmp 0x1403a257f
movsxd rbp, dword [r12]
lea ecx, [rbp - 1]
shl rbp, 5
add rbp, r12
mov r14d, ecx
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x1403a26d7
mov rcx, qword [rsp + 0x48]
call sym.sqlite3DbFreeNN
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1403a2781
movsxd rax, dword [rsp + 0x70]
shl rax, 5
add rax, qword [rcx + 0x20]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rax + 0x10]
call sym.sqlite3DbStrDup
mov qword [rbp - 0x10], rax
movsxd rax, r14d
shl rax, 5
lea rdx, [r12 + rax + 0x10]
movzx eax, byte [rdx + 0xc]
and eax, 0xfffffffc
or eax, 2
mov byte [rdx + 0xc], al
jmp 0x1403a25bd
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
mov r9, rdi
lea rdx, str._s._s
mov qword [rsp + 0xa0], r11
call dbg.sqlite3MPrintf
mov r11, qword [rsp + 0xa0]
mov rdi, rax
mov r13, rax
jmp 0x1403a254e
xor eax, eax
jmp 0x1403a2494
mov rax, qword [rsp + 0x50]
mov rsi, qword [rax]
jmp 0x1403a1dbf
mov qword [rsp + 0x90], 0
jmp 0x1403a1e64
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0xa8]
lea rdx, str._s._s._s
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
call dbg.sqlite3MPrintf
mov qword [rbp - 0x10], rax
jmp 0x1403a2707
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
mov r12, qword [rsp + 0x60]
mov r13, rbp
call dbg.exprListDeleteNN
mov rax, qword [rsp + 0x138]
mov qword [rax + 0x20], rbp
test r13, r13
je 0x1403a1621
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
cmp dword [r13], eax
jg 0x1403a28dc
test dword [rsp + 0xc0], 0x200004
je 0x1403a1621
mov rax, qword [rsp + 0x138]
or dword [rax + 4], 0x40000
jmp 0x1403a1621
mov rax, qword [rsp + 0x138]
mov dword [rsp + 0xc0], r9d
mov r13, qword [rax + 0x20]
jmp 0x1403a27d1
mov rax, qword [r8 + 0x10]
mov rdi, qword [rax + 8]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
test eax, eax
jg 0x1403a1d7d
jmp 0x1403a1fc8
mov rax, qword [rsp + 0x138]
mov dword [rsp + 0xc0], 0
mov r13, qword [rax + 0x20]
jmp 0x1403a27d1
lea rax, [0x140758459]
mov qword [rsp + 0x90], rax
jmp 0x1403a1e64
mov rcx, qword [rsp + 0x60]
lea rdx, str.no_tables_specified
call dbg.sqlite3ErrorMsg
jmp 0x1403a1d22
test byte [rdi + 5], 0x20
lea rax, str.recursive_reference_in_a_subquery:__s
mov rbx, qword [rsp + 0x50]
lea rdx, str.multiple_recursive_references:__s
cmove rdx, rax
mov rax, qword [rsp + 0x58]
lea rax, [rax + rax*2]
shl rax, 4
mov qword [rbx + rax + 0x28], rdx
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x10], 0
je 0x1403a2364
mov rdx, rdi
mov rcx, rax
call sym.sqlite3WalkSelect.part.0
jmp 0x1403a2364
lea rdx, str.too_many_columns_in_result_set
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov rcx, qword [r12]
mov rdx, r13
mov rsi, rbx
call sym.sqlite3DbFree
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
call sym.sqlite3DbFreeNN
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov rsi, rbx
mov rbx, qword [rsp + 0x58]
lea rax, [rbx + rbx*2 + 3]
mov rbx, qword [rsp + 0x50]
shl rax, 4
mov qword [rbx + rax], 0
jmp 0x1403a2907
mov r12, qword [rsp + 0x50]
lea rdx, str.cannot_have_both_ON_and_USING_clauses_in_the_same_join
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov r12, qword [rsp + 0x50]
xor r8d, r8d
lea rdx, str.a_NATURAL_join_may_not_have_an_ON_or_USING_clause
mov rcx, r12
call dbg.sqlite3ErrorMsg
mov dword [rsp + 0x58], 2
jmp 0x1403a1621
mov rax, qword [rsp + 0x138]
mov dword [rsp + 0x58], 2
mov qword [rax + 0x68], 0
jmp 0x1403a1621
mov rcx, rdi
jmp 0x1403a2286
mov qword [rcx + 0x68], 0
jmp 0x1403a22ea