Function at 0x18007bfa0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x65]
test eax, eax
jne 0x18007c00d
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1800737d0
mov eax, 1
jmp 0x18007c885
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0xd8], 1
jle 0x18007c044
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1800737d0
mov eax, 1
jmp 0x18007c885
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0xf8], 0
je 0x18007c0df
mov rcx, qword [rsp + 0xf8]
call fcn.180031b10
cmp eax, 3
je 0x18007c099
lea r8, str.non_text_filename
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1800737d0
mov eax, 1
jmp 0x18007c885
mov rcx, qword [rsp + 0xf8]
call fcn.180031a10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x4c]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x4c]
or eax, 6
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 0x4c], eax
jmp 0x18007c0eb
lea rax, [0x180157bbe]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x6e]
mov byte [rsp + 0x70], al
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x30]
or rax, 0x201
mov rcx, qword [rsp + 0xe8]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x2c]
or eax, 6
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0xe8]
movabs rcx, 0xfffffffeefffafff
mov rax, qword [rax + 0x30]
and rax, rcx
mov rcx, qword [rsp + 0xe8]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x6e], 0
movsxd rax, dword [rsp + 0xf0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rax + rcx]
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0xf0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.180018010
mov rcx, rax
call fcn.18001c050
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x60], eax
mov r9, qword [rsp + 0x78]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.18007ceb0
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x88]
mov dword [rax + 0x4c], ecx
cmp dword [rsp + 0x38], 0
je 0x18007c256
jmp 0x18007c7b0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe8]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0xf8], 0
je 0x18007c361
mov rcx, qword [rsp + 0x28]
call fcn.180018010
mov rcx, rax
call fcn.18001c090
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x98]
cmp qword [rax], 0
je 0x18007c314
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.18001b100
test eax, eax
jne 0x18007c2eb
cmp qword [rsp + 0xa0], 0
jle 0x18007c314
mov dword [rsp + 0x38], 1
lea r8, str.output_file_already_exists
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1800737d0
jmp 0x18007c7b0
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x2c]
or eax, 8
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 0x2c], eax
movsxd rax, dword [rsp + 0xf0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x20]
movzx eax, byte [rcx + rax + 0x10]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x30]
and rcx, 0x38
or rax, rcx
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x50]
call fcn.18002a9a0
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xe8]
cmp dword [rax + 0x74], 0
je 0x18007c3ba
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
mov edx, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe8]
call fcn.1800f78e0
cmp dword [rsp + 0xb0], 0
je 0x18007c3ba
mov rax, qword [rsp + 0xe8]
mov dword [rax + 0x74], 0
movsxd rax, dword [rsp + 0xf0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rsp + 0x28]
call fcn.180048b50
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.18007c8a0
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.18007c8a0
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.1800694a0
lea r8, str.BEGIN
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.18007cd90
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c43b
jmp 0x18007c7b0
cmp qword [rsp + 0xf8], 0
jne 0x18007c453
mov dword [rsp + 0xbc], 2
jmp 0x18007c45e
mov dword [rsp + 0xbc], 0
xor r8d, r8d
mov edx, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x50]
call fcn.180020fd0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c482
jmp 0x18007c7b0
mov rcx, qword [rsp + 0x50]
call fcn.180018010
mov rcx, rax
call fcn.18001c0b0
cmp eax, 5
jne 0x18007c4b3
cmp qword [rsp + 0xf8], 0
jne 0x18007c4b3
mov rax, qword [rsp + 0xe8]
mov dword [rax + 0x74], 0
mov rcx, qword [rsp + 0x50]
call fcn.180017ff0
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.18002a4a0
test eax, eax
jne 0x18007c50d
cmp dword [rsp + 0x5c], 0
jne 0x18007c4fd
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rax, qword [rsp + 0xe8]
mov edx, dword [rax + 0x74]
mov rcx, qword [rsp + 0x28]
call fcn.18002a4a0
test eax, eax
jne 0x18007c50d
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x67]
test eax, eax
je 0x18007c51a
mov dword [rsp + 0x38], 7
jmp 0x18007c7b0
mov rax, qword [rsp + 0xe8]
movsx eax, byte [rax + 0x6a]
test eax, eax
jl 0x18007c53f
mov rax, qword [rsp + 0xe8]
movsx eax, byte [rax + 0x6a]
mov dword [rsp + 0xc0], eax
jmp 0x18007c550
mov rcx, qword [rsp + 0x50]
call fcn.18007cab0
mov dword [rsp + 0xc0], eax
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x28]
call fcn.18007c9c0
mov rax, qword [rsp + 0xe8]
movzx ecx, byte [rsp + 0x60]
mov byte [rax + 0xc4], cl
mov r9, qword [rsp + 0x90]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.18007ceb0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c5a8
jmp 0x18007c7b0
mov r9, qword [rsp + 0x90]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.18007ceb0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c5dc
jmp 0x18007c7b0
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0xc4], 0
mov r9, qword [rsp + 0x90]
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.18007ceb0
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 0x2c]
and eax, 0xfffffffb
mov rcx, qword [rsp + 0xe8]
mov dword [rcx + 0x2c], eax
cmp dword [rsp + 0x38], 0
je 0x18007c638
jmp 0x18007c7b0
mov r9, qword [rsp + 0x90]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call fcn.18007ceb0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c66c
jmp 0x18007c7b0
mov dword [rsp + 0xb4], 0
jmp 0x18007c68a
mov eax, dword [rsp + 0xb4]
add eax, 2
mov dword [rsp + 0xb4], eax
cmp dword [rsp + 0xb4], 0xa
jge 0x18007c713
movsxd rax, dword [rsp + 0xb4]
lea rcx, [0x1801297c0]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0xb8]
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.1800521b0
mov eax, dword [rsp + 0xb4]
inc eax
cdqe
lea rcx, [0x1801297c0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0xb8]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0xb4]
lea rdx, [0x1801297c0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x28]
call fcn.18002a290
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c70e
jmp 0x18007c7b0
jmp 0x18007c679
cmp qword [rsp + 0xf8], 0
jne 0x18007c731
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.18007cb30
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c73a
jmp 0x18007c7b0
mov rcx, qword [rsp + 0x28]
call fcn.180073820
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18007c751
jmp 0x18007c7b0
cmp qword [rsp + 0xf8], 0
jne 0x18007c772
mov rcx, qword [rsp + 0x28]
call fcn.18007cab0
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.18007c9c0
cmp qword [rsp + 0xf8], 0
jne 0x18007c7b0
mov rcx, qword [rsp + 0x28]
call fcn.18002a9a0
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x28]
call fcn.180017ff0
mov r9d, 1
mov r8d, dword [rsp + 0x58]
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.18002a4a0
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0xc4], 0
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x78], rcx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0xe8]
movzx ecx, byte [rsp + 0x70]
mov byte [rax + 0x6e], cl
mov r9d, 1
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call fcn.18002a4a0
mov rax, qword [rsp + 0xe8]
mov byte [rax + 0x65], 1
cmp qword [rsp + 0x80], 0
je 0x18007c874
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call fcn.18002d330
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0xe8]
call fcn.18006aee0
mov eax, dword [rsp + 0x38]
add rsp, 0xd8
ret