Function at 0x1401b16b0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
xor r14d, r14d
mov r12, r9
movsxd rdi, r8d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x65], r14b
jne 0x1401b16ed
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1401b62b0
lea eax, [r14 + 1]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rdx + 0xd8], 1
jle 0x1401b1713
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1401b62b0
mov eax, 1
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x90], rbp
mov ebp, dword [rdx + 0x4c]
lea rcx, [0x140000000]
test r9, r9
je 0x1401b176a
movzx eax, word [r9 + 8]
and eax, 0x3f
cmp byte [rax + rcx + 0x24dbe0], 3
je 0x1401b1755
lea r8, str.non_text_filename
mov rcx, rsi
call fcn.1401b62b0
mov eax, 1
jmp 0x1401b1b6d
mov rcx, r9
call fcn.140116d90
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x1401b1771
lea r9, [0x140227070]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov qword [rsp + 0x40], rcx
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rdx
mov rdx, qword [rbx + 0x80]
movabs rcx, 0xfffffffeefffafff
mov qword [rsp + 0xa0], r13
and rax, rcx
mov qword [rsp + 0x58], rdx
movzx edx, byte [rbx + 0x6e]
mov byte [rbx + 0x6e], r14b
or rax, 0x201
mov rcx, rdi
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
shl rcx, 5
mov qword [rsp + 0xa8], r15
mov r15, qword [rax + rcx + 8]
mov byte [rsp + 0x98], dl
mov rdx, qword [rax + rcx]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x50], rdx
cmp byte [rcx + 0x10], r14b
jne 0x1401b180b
cmp byte [rcx + 0x14], r14b
jne 0x1401b180b
xor r13d, r13d
jmp 0x1401b1811
mov r13d, 1
mov eax, dword [rbx + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14013dca0
mov dword [rbx + 0x4c], ebp
mov edi, eax
test eax, eax
jne 0x1401b1ae6
movsxd r14, dword [rsp + 0x20]
shl r14, 5
add r14, qword [rbx + 0x20]
mov rbp, qword [r14 + 8]
test r12, r12
je 0x1401b189d
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x1401b1899
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x1401b187d
cmp qword [rsp + 0x28], 0
jle 0x1401b1899
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rsi
mov edi, 1
call fcn.1401b62b0
jmp 0x1401b1ae6
or dword [rbx + 0x2c], 8
mov rcx, r15
call fcn.140180060
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rcx + rdx + 0x18]
mov rcx, rbp
mov dword [rsp + 0x28], eax
mov edx, dword [rdx + 0x74]
call fcn.140182340
xor edx, edx
mov rcx, r15
call fcn.1401825a0
mov rcx, rbp
mov edx, eax
call fcn.1401825a0
mov edx, 0x21
mov rcx, rbp
call fcn.140182540
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.14013db90
mov edi, eax
test eax, eax
jne 0x1401b1ae6
xor edx, edx
mov eax, 2
test r12, r12
cmove edx, eax
xor r8d, r8d
mov rcx, r15
call fcn.14017eb50
mov edi, eax
test eax, eax
jne 0x1401b1ae6
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401b1937
test r12, r12
jne 0x1401b1937
mov dword [rbx + 0x74], r12d
mov rax, qword [r15 + 8]
mov edi, dword [rsp + 0x28]
xor r9d, r9d
mov edx, dword [rax + 0x34]
mov r8d, edi
mov rcx, rbp
call fcn.140182450
test eax, eax
jne 0x1401b1ae1
test r13d, r13d
jne 0x1401b1976
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, edi
mov rcx, rbp
call fcn.140182450
test eax, eax
jne 0x1401b1ae1
cmp byte [rbx + 0x67], 0
jne 0x1401b1ae1
movzx eax, byte [rbx + 0x6a]
test al, al
js 0x1401b198d
movsx eax, al
jmp 0x1401b1995
mov rcx, r15
call fcn.14017ff30
mov edx, eax
mov rcx, rbp
call fcn.1401822b0
mov eax, dword [rsp + 0x20]
mov r13, qword [rsp + 0x50]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r9, r13
mov rdx, rsi
mov rcx, rbx
mov byte [rbx + 0xc4], al
call fcn.14013dca0
mov edi, eax
test eax, eax
jne 0x1401b1ae6
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov r9, r13
mov rdx, rsi
mov rcx, rbx
call fcn.14013dca0
mov edi, eax
test eax, eax
jne 0x1401b1ae6
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 r9, r13
mov rdx, rsi
mov rcx, rbx
mov byte [rbx + 0xc4], al
call fcn.14013dca0
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401b1ae6
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov r9, r13
mov rdx, rsi
mov rcx, rbx
call fcn.14013dca0
mov edi, eax
test eax, eax
jne 0x1401b1ae6
xor esi, esi
nop word [rax + rax]
lea rdi, [0x140000000]
lea r8, [rsp + 0x20]
mov rcx, r15
movzx edx, byte [rsi + rdi + 0x24eab0]
call fcn.14017ffc0
movzx r8d, byte [rsi + rdi + 0x24eab1]
movzx edx, byte [rsi + rdi + 0x24eab0]
add r8d, dword [rsp + 0x20]
mov rcx, rbp
call fcn.140183190
mov edi, eax
test eax, eax
jne 0x1401b1ae6
add rsi, 2
cmp rsi, 0xa
jl 0x1401b1a40
test r12, r12
jne 0x1401b1aa0
mov rdx, rbp
mov rcx, r15
call fcn.14017f430
mov edi, eax
test eax, eax
jne 0x1401b1ae6
mov rcx, rbp
call fcn.14017f250
mov edi, eax
test eax, eax
jne 0x1401b1ae6
test r12, r12
jne 0x1401b1ae6
mov rcx, rbp
call fcn.14017ff30
mov rcx, r15
mov edx, eax
call fcn.1401822b0
mov rax, qword [rbp + 8]
mov r8d, dword [rsp + 0x28]
mov edx, dword [rax + 0x34]
lea r9d, [rdi + 1]
mov rcx, r15
call fcn.140182450
mov edi, eax
jmp 0x1401b1ae6
mov edi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x40]
or edx, 0xffffffff
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x48]
mov rcx, r15
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x58]
mov byte [rbx + 0xc4], 0
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0x98]
mov byte [rbx + 0x6e], al
call fcn.140182450
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
mov byte [rbx + 0x65], 1
test r14, r14
je 0x1401b1b63
mov rcx, qword [r14 + 8]
call fcn.14017f050
mov qword [r14 + 8], 0
mov qword [r14 + 0x18], 0
mov rcx, rbx
call fcn.1401b0010
mov eax, edi
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret