Function at 0x18008ccd0
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x5f]
test eax, eax
jne 0x18008cd2d
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.180090770
mov eax, 1
jmp 0x18008d309
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0xbc], 1
jle 0x18008cd64
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.180090770
mov eax, 1
jmp 0x18008d309
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x98]
movzx eax, word [rax + 0x2c]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x78]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x68]
mov byte [rsp + 0x24], al
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x30]
or rax, 0x201
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
or eax, 6
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x30]
and rax, 0xffffffffefffaf7f
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x98]
mov byte [rax + 0x68], 0
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180065e60
mov rcx, rax
call fcn.1800824f0
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x54], eax
lea r8, str.ATTACHAS_vacuum_db
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18003b760
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008cea7
jmp 0x18008d244
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.180062980
mov rcx, qword [rsp + 0x38]
call fcn.1800639a0
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rsp + 0x30]
call fcn.180066620
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.180066830
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.180066830
mov edx, 0x21
mov rcx, qword [rsp + 0x30]
call fcn.1800667e0
lea r8, str.BEGIN
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18003b760
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008cf64
jmp 0x18008d244
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x38]
call fcn.1800620f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008cf86
jmp 0x18008d244
mov rcx, qword [rsp + 0x38]
call fcn.180065e60
mov rcx, rax
call fcn.1800824e0
cmp eax, 5
jne 0x18008cfac
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x6c], 0
mov rcx, qword [rsp + 0x38]
call fcn.1800639e0
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800666c0
test eax, eax
jne 0x18008d006
cmp dword [rsp + 0x60], 0
jne 0x18008cff6
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov rax, qword [rsp + 0x98]
mov edx, dword [rax + 0x6c]
mov rcx, qword [rsp + 0x30]
call fcn.1800666c0
test eax, eax
jne 0x18008d006
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x18008d013
mov dword [rsp + 0x20], 7
jmp 0x18008d244
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax + 0x64]
test eax, eax
jl 0x18008d035
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax + 0x64]
mov dword [rsp + 0x50], eax
jmp 0x18008d043
mov rcx, qword [rsp + 0x38]
call fcn.180063810
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.180066540
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rsp + 0x54]
mov byte [rax + 0xb4], cl
mov r9, qword [rsp + 0x58]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18003b880
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008d095
jmp 0x18008d244
mov r9, qword [rsp + 0x58]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18003b880
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008d0c6
jmp 0x18008d244
mov rax, qword [rsp + 0x98]
mov byte [rax + 0xb4], 0
mov r9, qword [rsp + 0x58]
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18003b880
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
and eax, 0xfffffffb
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
cmp dword [rsp + 0x20], 0
je 0x18008d11f
jmp 0x18008d244
mov r9, qword [rsp + 0x58]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18003b880
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008d150
jmp 0x18008d244
mov dword [rsp + 0x28], 0
jmp 0x18008d165
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jge 0x18008d1d6
movsxd rax, dword [rsp + 0x28]
lea rcx, [0x18010ece8]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0x64]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.180063910
mov eax, dword [rsp + 0x28]
inc eax
cdqe
lea rcx, [0x18010ece8]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x28]
lea rdx, [0x18010ece8]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x30]
call fcn.180066b00
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008d1d4
jmp 0x18008d244
jmp 0x18008d15a
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.180062b70
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008d1f2
jmp 0x18008d244
mov rcx, qword [rsp + 0x30]
call fcn.180062980
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18008d209
jmp 0x18008d244
mov rcx, qword [rsp + 0x30]
call fcn.180063810
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.180066540
mov rcx, qword [rsp + 0x30]
call fcn.1800639e0
mov r9d, 1
mov r8d, dword [rsp + 0x44]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1800666c0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov byte [rax + 0xb4], 0
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x6c]
mov dword [rax + 0x74], ecx
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0x78], ecx
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0x68], cl
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call fcn.1800666c0
mov rax, qword [rsp + 0x98]
mov byte [rax + 0x5f], 1
cmp qword [rsp + 0x48], 0
je 0x18008d2f8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call fcn.180062730
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0x98]
call fcn.18008b5d0
mov eax, dword [rsp + 0x20]
add rsp, 0x88
ret