Function at 0x14014d950
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 0x14014d98d
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140152550
lea eax, [r14 + 1]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rdx + 0xd8], 1
jle 0x14014d9b3
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140152550
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 0x14014da0a
movzx eax, word [r9 + 8]
and eax, 0x3f
cmp byte [rax + rcx + 0x1dc350], 3
je 0x14014d9f5
lea r8, str.non_text_filename
mov rcx, rsi
call fcn.140152550
mov eax, 1
jmp 0x14014de0d
mov rcx, r9
call fcn.1400b3030
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x14014da11
lea r9, [0x1401d48cb]
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 0x14014daab
cmp byte [rcx + 0x14], r14b
jne 0x14014daab
xor r13d, r13d
jmp 0x14014dab1
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.1400d9f40
mov dword [rbx + 0x4c], ebp
mov edi, eax
test eax, eax
jne 0x14014dd86
movsxd r14, dword [rsp + 0x20]
shl r14, 5
add r14, qword [rbx + 0x20]
mov rbp, qword [r14 + 8]
test r12, r12
je 0x14014db3d
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 0x14014db39
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x14014db1d
cmp qword [rsp + 0x28], 0
jle 0x14014db39
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rsi
mov edi, 1
call fcn.140152550
jmp 0x14014dd86
or dword [rbx + 0x2c], 8
mov rcx, r15
call fcn.14011c300
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.14011e5e0
xor edx, edx
mov rcx, r15
call fcn.14011e840
mov rcx, rbp
mov edx, eax
call fcn.14011e840
mov edx, 0x21
mov rcx, rbp
call fcn.14011e7e0
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1400d9e30
mov edi, eax
test eax, eax
jne 0x14014dd86
xor edx, edx
mov eax, 2
test r12, r12
cmove edx, eax
xor r8d, r8d
mov rcx, r15
call fcn.14011adf0
mov edi, eax
test eax, eax
jne 0x14014dd86
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x14014dbd7
test r12, r12
jne 0x14014dbd7
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.14011e6f0
test eax, eax
jne 0x14014dd81
test r13d, r13d
jne 0x14014dc16
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, edi
mov rcx, rbp
call fcn.14011e6f0
test eax, eax
jne 0x14014dd81
cmp byte [rbx + 0x67], 0
jne 0x14014dd81
movzx eax, byte [rbx + 0x6a]
test al, al
js 0x14014dc2d
movsx eax, al
jmp 0x14014dc35
mov rcx, r15
call fcn.14011c1d0
mov edx, eax
mov rcx, rbp
call fcn.14011e550
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.1400d9f40
mov edi, eax
test eax, eax
jne 0x14014dd86
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov r9, r13
mov rdx, rsi
mov rcx, rbx
call fcn.1400d9f40
mov edi, eax
test eax, eax
jne 0x14014dd86
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.1400d9f40
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x14014dd86
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.1400d9f40
mov edi, eax
test eax, eax
jne 0x14014dd86
xor esi, esi
nop word [rax + rax]
lea rdi, [0x140000000]
lea r8, [rsp + 0x20]
mov rcx, r15
movzx edx, byte [rsi + rdi + 0x1dd220]
call fcn.14011c260
movzx r8d, byte [rsi + rdi + 0x1dd221]
movzx edx, byte [rsi + rdi + 0x1dd220]
add r8d, dword [rsp + 0x20]
mov rcx, rbp
call fcn.14011f430
mov edi, eax
test eax, eax
jne 0x14014dd86
add rsi, 2
cmp rsi, 0xa
jl 0x14014dce0
test r12, r12
jne 0x14014dd40
mov rdx, rbp
mov rcx, r15
call fcn.14011b6d0
mov edi, eax
test eax, eax
jne 0x14014dd86
mov rcx, rbp
call fcn.14011b4f0
mov edi, eax
test eax, eax
jne 0x14014dd86
test r12, r12
jne 0x14014dd86
mov rcx, rbp
call fcn.14011c1d0
mov rcx, r15
mov edx, eax
call fcn.14011e550
mov rax, qword [rbp + 8]
mov r8d, dword [rsp + 0x28]
mov edx, dword [rax + 0x34]
lea r9d, [rdi + 1]
mov rcx, r15
call fcn.14011e6f0
mov edi, eax
jmp 0x14014dd86
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.14011e6f0
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
mov byte [rbx + 0x65], 1
test r14, r14
je 0x14014de03
mov rcx, qword [r14 + 8]
call fcn.14011b2f0
mov qword [r14 + 8], 0
mov qword [r14 + 0x18], 0
mov rcx, rbx
call fcn.14014c2b0
mov eax, edi
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret