Function at 0x140010630
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov qword [rsp + 0xc0], rcx
mov r15, rdx
mov qword [rsp + 0x60], 0
cmp r8d, 2
jle 0x140010a82
lea r14, [rdx + 0x10]
lea eax, [r8 - 3]
xor ebx, ebx
mov dword [rsp + 0x54], 0
lea rsi, [0x140150568]
lea rdi, [rdx + rax*8 + 0x18]
mov rax, r14
lea r13, str._verbose
mov r14, rsi
mov esi, ebx
mov rbx, rax
lea rbp, str._groupbyparent
lea r12, [0x140151cc3]
nop dword [rax]
mov rdx, qword [rbx]
cmp byte [rdx], 0
je 0x1400106c6
mov r8, rdx
nop dword [rax + rax]
add r8, 1
cmp byte [r8], 0
jne 0x1400106b0
sub r8, rdx
test r8d, 0x3ffffffe
jne 0x1400106f0
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
lea rcx, str.Usage:__s__s___verbose____groupbyparent__n
call sym.ePrintfUtf8
nop
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
and r8d, 0x3fffffff
mov rcx, r13
mov dword [rsp + 0x48], r8d
call sym.sqlite3_strnicmp
test eax, eax
jne 0x1400107a0
mov dword [rsp + 0x54], 1
nop dword [rax]
add rbx, 8
cmp rdi, rbx
jne 0x1400106a0
mov ebx, esi
mov rsi, r14
lea rax, [sym.shellFkeyCollateClause]
mov r9d, 1
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x30], 0
mov r8d, 4
lea rdx, str.fkey_collate_clause
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3_create_function
test eax, eax
je 0x1400107c5
mov rcx, qword [rsp + 0xc0]
call sym.sqlite3_errmsg
lea rcx, [0x140151227]
mov rdx, rax
call sym.ePrintfUtf8
jmp 0x1400106da
mov rdx, qword [rbx]
mov r8d, dword [rsp + 0x48]
mov rcx, rbp
call sym.sqlite3_strnicmp
test eax, eax
jne 0x1400106c6
mov r14, r12
mov esi, 1
jmp 0x140010718
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xc0]
lea r9, [rsp + 0x60]
mov r8d, 0xffffffff
lea rdx, str.SELECT______EXPLAIN_QUERY_PLAN_SELECT_1_FROM___quote_s.name____WHERE____group_concat_quote_s.name___.__quote_f._from_________fkey_collate_clause________f._table___COALESCE_f._to___p._name____s.name__f._from____AND_________SEARCH___s.name___USING_COVERING_INDEX____group_concat_____AND____________s.name______group_concat_f._from_________________f._table______group_concat_COALESCE_f._to___p._name_____________CREATE_INDEX___quote_s.name___group_concat_f._from__________ON___quote_s.name_______group_concat_quote_f._from___________fkey_collate_clause___________f._table___COALESCE_f._to___p._name____s.name__f._from___________________f._table__FROM_sqlite_schema_AS_s__pragma_foreign_key_list_s.name__AS_f_LEFT_JOIN_pragma_table_info_AS_p_ON__pk_1seq_AND_p.argf._table___GROUP_BY_s.name__f.id_ORDER_BY__CASE_WHEN___THEN_f._table__ELSE_s.name_END_
call sym.sqlite3_prepare_v2
test eax, eax
jne 0x140010775
mov rcx, qword [rsp + 0x60]
mov r8d, ebx
mov edx, 1
call sym.sqlite3_bind_int
mov qword [rsp + 0x48], 0
nop dword [rax]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3_step
cmp eax, 0x64
jne 0x140010a1c
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
xor edx, edx
call sym.sqlite3_column_text
mov rcx, qword [rsp + 0x60]
mov edx, 1
mov rdi, rax
call sym.sqlite3_column_text
mov rcx, qword [rsp + 0x60]
mov edx, 2
mov rbp, rax
call sym.sqlite3_column_text
mov rcx, qword [rsp + 0x60]
mov edx, 3
mov r14, rax
call sym.sqlite3_column_text
mov rcx, qword [rsp + 0x60]
mov edx, 4
mov r12, rax
call sym.sqlite3_column_text
mov rcx, qword [rsp + 0x60]
mov edx, 5
mov r15, rax
call sym.sqlite3_column_text
mov r13, rax
test rbp, rbp
je 0x140010810
test rdi, rdi
je 0x140010810
mov rcx, qword [rsp + 0xc0]
mov rdx, rdi
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, 0xffffffff
call sym.sqlite3_prepare_v2
mov edi, eax
test eax, eax
jne 0x140010a4d
mov rcx, qword [rsp + 0x68]
call sym.sqlite3_step
cmp eax, 0x64
je 0x140010923
mov rcx, qword [rsp + 0x68]
call sym.sqlite3_finalize
test eax, eax
jne 0x140010a4d
lea rcx, str.Error:_internal_error
call sym.ePutsUtf8.isra.0
mov rcx, qword [rsp + 0x48]
call sym.sqlite3_free
mov rcx, qword [rsp + 0x60]
call sym.sqlite3_finalize
test eax, eax
jne 0x140010775
jmp 0x1400106da
mov rcx, qword [rsp + 0x68]
mov edx, 3
call sym.sqlite3_column_text
mov rdx, rax
test rax, rax
je 0x1400109ec
mov rcx, rbp
mov qword [rsp + 0x58], rax
call sym.sqlite3_strglob
mov rdx, qword [rsp + 0x58]
test eax, eax
jne 0x140010a2b
mov rcx, qword [rsp + 0x68]
call sym.sqlite3_finalize
test eax, eax
jne 0x140010a4d
test ebx, ebx
je 0x1400109c6
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140010810
mov edi, eax
cmp qword [rsp + 0x48], 0
je 0x140010995
mov rdx, qword [rsp + 0x48]
mov rcx, r13
call sym.sqlite3_stricmp
test eax, eax
je 0x1400109c2
mov rdx, r13
lea rcx, str.___Parent_table__s_n
call sym.oPrintfUtf8
mov rcx, qword [rsp + 0x48]
call sym.sqlite3_free
mov rdx, r13
lea rcx, [0x1401509b2]
call sym.sqlite3_mprintf
mov qword [rsp + 0x48], rax
test edi, edi
je 0x140010a02
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140010810
mov r9, r12
mov r8, r14
lea rcx, str._s__no_extra_indexes_required_for__s_____s___n
mov rdx, rsi
call sym.oPrintfUtf8
jmp 0x140010810
mov rcx, qword [rsp + 0x68]
call sym.sqlite3_finalize
test eax, eax
jne 0x140010a4d
test ebx, ebx
jne 0x14001097c
mov r9, r12
mov r8, r15
lea rcx, str._s_s______s_n
mov rdx, rsi
call sym.oPrintfUtf8
jmp 0x140010810
mov rcx, qword [rsp + 0x48]
call sym.sqlite3_free
jmp 0x14001090c
lea rcx, str.SEARCH__USING_INTEGER_PRIMARY_KEY__rowid__
call sym.sqlite3_strglob
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x140010a98
call sym.sqlite3_finalize
test eax, eax
je 0x14001096a
mov rcx, qword [rsp + 0x48]
call sym.sqlite3_free
mov rcx, qword [rsp + 0xc0]
call sym.sqlite3_errmsg
lea rcx, [0x140151227]
mov rdx, rax
call sym.ePrintfUtf8
mov rcx, qword [rsp + 0x60]
call sym.sqlite3_finalize
jmp 0x1400106da
mov dword [rsp + 0x54], 0
lea rsi, [0x140150568]
xor ebx, ebx
jmp 0x14001072a
call sym.sqlite3_finalize
test eax, eax
je 0x1400109fa
jmp 0x140010a4d