Function at 0x18020d64c
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x4e]
test eax, eax
jne 0x18020d6ad
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.180287188
mov eax, 1
jmp 0x18020dc90
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x9c], 1
jle 0x18020d6e4
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.180287188
mov eax, 1
jmp 0x18020dc90
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x64]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
or eax, 0x202800
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
and eax, 0xfff5ffff
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov qword [rax + 0xb8], 0
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.180260208
mov rcx, rax
call fcn.1802723d8
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x98]
call fcn.1801f601c
test eax, eax
je 0x18020d7d1
lea rax, str.ATTACH_:memory:_AS_vacuum_db_
mov qword [rsp + 0x60], rax
jmp 0x18020d7dd
lea rax, str.ATTACH__AS_vacuum_db_
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dda8
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x54]
cmp dword [rax + 0x28], ecx
jle 0x18020d830
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x28]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x20], 0
je 0x18020d83c
jmp 0x18020dbe7
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x28]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.180267b84
mov rcx, qword [rsp + 0x28]
call fcn.180269850
mov dword [rsp + 0x38], eax
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dda8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020d8a9
jmp 0x18020dbe7
lea r8, str.BEGIN_
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dda8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020d8d5
jmp 0x18020dbe7
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.180268ad4
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020d8f4
jmp 0x18020dbe7
mov rcx, qword [rsp + 0x28]
call fcn.180260208
mov rcx, rax
call fcn.180271b94
cmp eax, 5
jne 0x18020d91a
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x58], 0
mov rcx, qword [rsp + 0x28]
call fcn.18026989c
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1802698b4
test eax, eax
jne 0x18020d974
cmp dword [rsp + 0x58], 0
jne 0x18020d964
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rax, qword [rsp + 0x98]
mov edx, dword [rax + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.1802698b4
test eax, eax
jne 0x18020d974
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x50]
test eax, eax
je 0x18020d981
mov dword [rsp + 0x20], 7
jmp 0x18020dbe7
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax + 0x52]
test eax, eax
jl 0x18020d9a3
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax + 0x52]
mov dword [rsp + 0x3c], eax
jmp 0x18020d9b1
mov rcx, qword [rsp + 0x28]
call fcn.1802695ec
mov dword [rsp + 0x3c], eax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
call fcn.180269668
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dcec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020d9eb
jmp 0x18020dbe7
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dcec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020da17
jmp 0x18020dbe7
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dcec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020da43
jmp 0x18020dbe7
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dcec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020da6f
jmp 0x18020dbe7
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dcec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020da9b
jmp 0x18020dbe7
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dcec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020dac7
jmp 0x18020dbe7
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.18020dda8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020daf3
jmp 0x18020dbe7
mov dword [rsp + 0x24], 0
jmp 0x18020db08
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xa
jge 0x18020db79
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x18031bb58]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.180260510
mov eax, dword [rsp + 0x24]
inc eax
cdqe
lea rcx, [0x18031bb58]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
lea rdx, [0x18031bb58]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x30]
call fcn.180260464
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020db77
jmp 0x18020dbe7
jmp 0x18020dafd
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.18025d3d0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020db95
jmp 0x18020dbe7
mov rcx, qword [rsp + 0x30]
call fcn.180267b84
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18020dbac
jmp 0x18020dbe7
mov rcx, qword [rsp + 0x30]
call fcn.1802695ec
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.180269668
mov rcx, qword [rsp + 0x30]
call fcn.18026989c
mov r9d, 1
mov r8d, dword [rsp + 0x38]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1802698b4
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x60], ecx
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x68]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0xb8], rcx
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.1802698b4
mov rax, qword [rsp + 0x98]
mov byte [rax + 0x4e], 1
cmp qword [rsp + 0x40], 0
je 0x18020dc7f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call fcn.180269b10
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0x98]
call fcn.1802365c4
mov eax, dword [rsp + 0x20]
add rsp, 0x88
ret