Function at 0x1401e95f0
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 0x1401e9648
cmp dword [rdx + 0xd8], 1
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
jg 0x1401e9648
mov ebx, dword [rdx + 0x4c]
test r9, r9
je 0x1401e9676
mov rcx, r9
call fcn.14020be40
cmp eax, 3
je 0x1401e965e
lea r8, str.non_text_filename
mov rdx, r14
mov rcx, r13
mov r15d, 1
call fcn.1401ed9a0
jmp 0x1401e9b68
call fcn.14020be00
mov r9, rax
mov eax, dword [r14 + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [r14 + 0x4c], eax
jmp 0x1401e967d
lea r9, [0x14029aabe]
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.14017cce0
mov dword [r14 + 0x4c], ebx
mov r15d, eax
test eax, eax
jne 0x1401e9af3
movsxd rsi, dword [rsp + 0x3c]
shl rsi, 5
add rsi, qword [r14 + 0x20]
mov rbx, qword [rsi + 8]
test rbp, rbp
je 0x1401e97ad
mov rax, qword [rbx + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov qword [rsp + 0x68], 0
cmp qword [rcx], 0
je 0x1401e978a
lea rdx, [rsp + 0x68]
call fcn.1401dd440
test eax, eax
jne 0x1401e976d
cmp qword [rsp + 0x68], 0
jle 0x1401e978a
lea r8, str.output_file_already_exists
mov rdx, r14
mov rcx, r13
mov r15d, 1
call fcn.1401ed9a0
jmp 0x1401e9af3
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 0x1401e97b3
mov r15d, 1
mov rcx, r12
call fcn.1401c0970
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.1401c26b0
xor edx, edx
mov rcx, r12
call fcn.1401c2870
mov rcx, rbx
mov edx, eax
call fcn.1401c2870
mov edx, r15d
mov rcx, rbx
or edx, 0x20
call fcn.1401c27c0
lea r8, str.BEGIN
mov rdx, r13
mov rcx, r14
call fcn.14017cbf0
mov r15d, eax
test eax, eax
jne 0x1401e9af3
test rbp, rbp
mov eax, 2
mov rcx, r12
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
call fcn.1401bf860
mov r15d, eax
test eax, eax
jne 0x1401e9af3
mov rax, qword [r12 + 8]
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x1401e9857
test rbp, rbp
jne 0x1401e9857
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.1401c2700
test eax, eax
jne 0x1401e9af3
movabs rax, 0xff000000ff
test qword [rsp + 0x58], rax
je 0x1401e989b
cmp byte [r14 + 0x67], 0
mov r15d, 7
je 0x1401e98be
jmp 0x1401e9af3
mov edx, dword [r14 + 0x74]
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov r15d, 7
call fcn.1401c2700
test eax, eax
je 0x1401e9889
jmp 0x1401e9af3
movsx edx, byte [r14 + 0x6a]
test dl, dl
jns 0x1401e98d1
mov rcx, r12
call fcn.1401c08a0
mov edx, eax
mov rcx, rbx
call fcn.1401c2650
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.14017cce0
mov r15d, eax
test eax, eax
jne 0x1401e9af3
mov r9, rdi
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r13
mov rcx, r14
call fcn.14017cce0
mov r15d, eax
test eax, eax
jne 0x1401e9af3
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.14017cce0
and dword [r14 + 0x2c], 0xfffffffb
mov r15d, eax
test eax, eax
jne 0x1401e9af3
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.14017cce0
mov r15d, eax
test eax, eax
jne 0x1401e9af3
lea r13, [0x1402a7890]
lea rdi, [rsp + 0x64]
movzx r15d, byte [r13]
mov r8, rdi
mov rcx, r12
mov edx, r15d
call fcn.1401c0910
movzx r8d, byte [r13 + 1]
mov edx, r15d
mov rcx, rbx
add r8d, dword [rsp + 0x64]
call fcn.1401c2c60
mov r15d, eax
test eax, eax
jne 0x1401e9af3
add r13, 2
lea rax, [0x1402a789a]
cmp rax, r13
jne 0x1401e997d
test rbp, rbp
je 0x1401e99dd
mov rcx, rbx
call fcn.1401c0080
mov r15d, eax
test eax, eax
je 0x1401e9ab9
jmp 0x1401e9af3
mov rcx, r12
lea r13, [rsp + 0x68]
call fcn.1401c0830
mov rcx, rbx
call fcn.1401c0830
mov rax, qword [r12 + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
cmp qword [rcx], 0
je 0x1401e9a31
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.1401dd410
mov r15d, eax
test eax, eax
je 0x1401e9a31
cmp eax, 0xc
jne 0x1401e9a9f
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.140203020
mov rcx, r13
call fcn.140202dd0
mov r15d, eax
test eax, eax
jne 0x1401e9a88
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
jmp 0x1401e9a9f
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1401e9a9f
call fcn.1401add80
mov rcx, rbx
call fcn.1401c1660
mov rcx, r12
call fcn.1401c1660
test r15d, r15d
jne 0x1401e9af3
jmp 0x1401e99c5
test rbp, rbp
jne 0x1401e9af3
mov rcx, rbx
call fcn.1401c08a0
mov rcx, r12
mov edx, eax
call fcn.1401c2650
mov rcx, rbx
call fcn.1401c0970
mov r9d, 1
mov rcx, r12
mov r8d, eax
mov rax, qword [rbx + 8]
mov edx, dword [rax + 0x34]
call fcn.1401c2700
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.1401c2700
mov byte [r14 + 0x65], 1
test rsi, rsi
je 0x1401e9b60
mov rcx, qword [rsi + 8]
call fcn.1401bff50
mov qword [rsi + 8], 0
mov qword [rsi + 0x18], 0
mov rcx, r14
call fcn.1401e89c0
mov eax, r15d
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret