Function at 0x1401f8e30
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
cmp byte [rdx + 0x65], 0
movsxd rdi, r8d
mov r13, rcx
mov r14, rdx
mov rbp, r9
lea r8, str.cannot_VACUUM_from_within_a_transaction
je 0x1401f8e88
cmp dword [rdx + 0xd8], 1
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
jg 0x1401f8e88
mov ebx, dword [rdx + 0x4c]
test r9, r9
je 0x1401f8eb6
mov rcx, r9
call fcn.14021b680
cmp eax, 3
je 0x1401f8e9e
lea r8, str.non_text_filename
mov rdx, r14
mov rcx, r13
mov r15d, 1
call fcn.1401fd1e0
jmp 0x1401f93a8
call fcn.14021b640
mov r9, rax
mov eax, dword [r14 + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [r14 + 0x4c], eax
jmp 0x1401f8ebd
lea r9, [0x1402cd40e]
mov rax, qword [r14 + 0x30]
shl rdi, 5
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x28], rdi
lea r8, str.ATTACH__Q_AS_vacuum_db
xor esi, esi
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 0x2c]
mov dword [rsp + 0x38], eax
mov rax, qword [r14 + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x80]
mov qword [rsp + 0x48], rax
mov al, byte [r14 + 0x6e]
mov byte [r14 + 0x6e], 0
mov byte [rsp + 0x57], al
mov eax, dword [rsp + 0x38]
or eax, 6
mov dword [r14 + 0x2c], eax
movabs rax, 0xfffffffeefffafff
and rax, qword [rsp + 0x30]
or rax, 0x201
mov qword [r14 + 0x30], rax
mov rax, qword [r14 + 0x20]
add rax, rdi
mov r12, qword [rax + 8]
mov rdi, qword [rax]
mov rax, qword [r12 + 8]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
mov eax, dword [r14 + 0x28]
mov dword [rsp + 0x3c], eax
call fcn.14018c520
mov dword [r14 + 0x4c], ebx
mov r15d, eax
test eax, eax
jne 0x1401f9333
movsxd rsi, dword [rsp + 0x3c]
shl rsi, 5
add rsi, qword [r14 + 0x20]
mov rbx, qword [rsi + 8]
test rbp, rbp
je 0x1401f8fed
mov rax, qword [rbx + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov qword [rsp + 0x68], 0
cmp qword [rcx], 0
je 0x1401f8fca
lea rdx, [rsp + 0x68]
call fcn.1401ecc80
test eax, eax
jne 0x1401f8fad
cmp qword [rsp + 0x68], 0
jle 0x1401f8fca
lea r8, str.output_file_already_exists
mov rdx, r14
mov rcx, r13
mov r15d, 1
call fcn.1401fd1e0
jmp 0x1401f9333
mov rax, qword [r14 + 0x20]
mov rcx, qword [rsp + 0x28]
mov edx, dword [r14 + 0x30]
or dword [r14 + 0x2c], 8
movzx r8d, byte [rax + rcx + 0x10]
and edx, 0x38
or r8d, edx
mov r15d, r8d
jmp 0x1401f8ff3
mov r15d, 1
mov rcx, r12
call fcn.1401d01b0
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x50], eax
mov rax, qword [r14 + 0x20]
mov rax, qword [rax + rcx + 0x18]
mov rcx, rbx
mov edx, dword [rax + 0x74]
call fcn.1401d1ef0
xor edx, edx
mov rcx, r12
call fcn.1401d20b0
mov rcx, rbx
mov edx, eax
call fcn.1401d20b0
mov edx, r15d
mov rcx, rbx
or edx, 0x20
call fcn.1401d2000
lea r8, str.BEGIN
mov rdx, r13
mov rcx, r14
call fcn.14018c430
mov r15d, eax
test eax, eax
jne 0x1401f9333
test rbp, rbp
mov eax, 2
mov rcx, r12
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
call fcn.1401cf0a0
mov r15d, eax
test eax, eax
jne 0x1401f9333
mov rax, qword [r12 + 8]
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x1401f9097
test rbp, rbp
jne 0x1401f9097
mov dword [r14 + 0x74], 0
mov edx, dword [rax + 0x34]
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov r15d, 7
call fcn.1401d1f40
test eax, eax
jne 0x1401f9333
movabs rax, 0xff000000ff
test qword [rsp + 0x58], rax
je 0x1401f90db
cmp byte [r14 + 0x67], 0
mov r15d, 7
je 0x1401f90fe
jmp 0x1401f9333
mov edx, dword [r14 + 0x74]
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov r15d, 7
call fcn.1401d1f40
test eax, eax
je 0x1401f90c9
jmp 0x1401f9333
movsx edx, byte [r14 + 0x6a]
test dl, dl
jns 0x1401f9111
mov rcx, r12
call fcn.1401d00e0
mov edx, eax
mov rcx, rbx
call fcn.1401d1e90
mov al, byte [rsp + 0x3c]
mov r9, rdi
mov rdx, r13
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rcx, r14
mov byte [r14 + 0xc4], al
call fcn.14018c520
mov r15d, eax
test eax, eax
jne 0x1401f9333
mov r9, rdi
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r13
mov rcx, r14
call fcn.14018c520
mov r15d, eax
test eax, eax
jne 0x1401f9333
mov r9, rdi
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, r13
mov rcx, r14
mov byte [r14 + 0xc4], 0
call fcn.14018c520
and dword [r14 + 0x2c], 0xfffffffb
mov r15d, eax
test eax, eax
jne 0x1401f9333
mov r9, rdi
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r13
mov rcx, r14
call fcn.14018c520
mov r15d, eax
test eax, eax
jne 0x1401f9333
lea r13, [0x1402da1f0]
lea rdi, [rsp + 0x64]
movzx r15d, byte [r13]
mov r8, rdi
mov rcx, r12
mov edx, r15d
call fcn.1401d0150
movzx r8d, byte [r13 + 1]
mov edx, r15d
mov rcx, rbx
add r8d, dword [rsp + 0x64]
call fcn.1401d24a0
mov r15d, eax
test eax, eax
jne 0x1401f9333
add r13, 2
lea rax, [0x1402da1fa]
cmp rax, r13
jne 0x1401f91bd
test rbp, rbp
je 0x1401f921d
mov rcx, rbx
call fcn.1401cf8c0
mov r15d, eax
test eax, eax
je 0x1401f92f9
jmp 0x1401f9333
mov rcx, r12
lea r13, [rsp + 0x68]
call fcn.1401d0070
mov rcx, rbx
call fcn.1401d0070
mov rax, qword [r12 + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
cmp qword [rcx], 0
je 0x1401f9271
mov rdx, qword [rbx + 8]
mov r8, r13
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x68], rax
call fcn.1401ecc50
mov r15d, eax
test eax, eax
je 0x1401f9271
cmp eax, 0xc
jne 0x1401f92df
xor eax, eax
mov ecx, 0x12
mov rdi, r13
mov edx, 0x7fffffff
rep stosd dword [rdi], eax
mov rcx, r13
mov rax, qword [rbx]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x80], 1
call fcn.140212860
mov rcx, r13
call fcn.140212610
mov r15d, eax
test eax, eax
jne 0x1401f92c8
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
jmp 0x1401f92df
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1401f92df
call fcn.1401bd5c0
mov rcx, rbx
call fcn.1401d0ea0
mov rcx, r12
call fcn.1401d0ea0
test r15d, r15d
jne 0x1401f9333
jmp 0x1401f9205
test rbp, rbp
jne 0x1401f9333
mov rcx, rbx
call fcn.1401d00e0
mov rcx, r12
mov edx, eax
call fcn.1401d1e90
mov rcx, rbx
call fcn.1401d01b0
mov r9d, 1
mov rcx, r12
mov r8d, eax
mov rax, qword [rbx + 8]
mov edx, dword [rax + 0x34]
call fcn.1401d1f40
mov r15d, eax
mov eax, dword [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
mov byte [r14 + 0xc4], 0
mov rcx, r12
mov dword [r14 + 0x2c], eax
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x78], rax
mov rax, qword [rsp + 0x48]
mov qword [r14 + 0x80], rax
mov al, byte [rsp + 0x57]
mov byte [r14 + 0x6e], al
call fcn.1401d1f40
mov byte [r14 + 0x65], 1
test rsi, rsi
je 0x1401f93a0
mov rcx, qword [rsi + 8]
call fcn.1401cf790
mov qword [rsi + 8], 0
mov qword [rsi + 0x18], 0
mov rcx, r14
call fcn.1401f8200
mov eax, r15d
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret