Function at 0x1400918e0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x70
xor r12d, r12d
movsxd rbx, r8d
mov rsi, rdx
mov rbp, rcx
lea r14d, [r12 + 1]
cmp byte [rdx + 0x65], r12b
jne 0x140091922
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140006fa0
mov eax, r14d
add rsp, 0x70
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], r14d
jle 0x140091946
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140006fa0
mov eax, r14d
add rsp, 0x70
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], r13
lea rcx, [0x140000000]
mov r13d, dword [rdx + 0x4c]
test r9, r9
je 0x1400919a5
movzx eax, word [r9 + 0x14]
and eax, 0x3f
cmp byte [rax + rcx + 0x2257c0], 3
je 0x140091990
lea r8, str.non_text_filename
mov rcx, rbp
call fcn.140006fa0
mov r13, qword [rsp + 0x68]
mov eax, r14d
add rsp, 0x70
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov rcx, r9
call fcn.140034230
and dword [rsi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rsi + 0x4c], 6
jmp 0x1400919ac
lea r9, [0x140218ff0]
mov eax, dword [rsi + 0x2c]
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rsi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x40], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x48], rdx
mov rdx, qword [rsi + 0x80]
or rax, 0x201
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x60], r15
mov r15, rbx
shl r15, 5
mov qword [rsp + 0x50], rdx
movzx edx, byte [rsi + 0x6e]
mov byte [rsi + 0x6e], r12b
mov rcx, qword [rax + r15]
mov rbx, qword [rax + r15 + 8]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0xa8], dl
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x140091a3e
mov dword [rsp + 0x20], r12d
cmp byte [rcx + 0x14], r12b
je 0x140091a43
mov dword [rsp + 0x20], r14d
mov eax, dword [rsi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, rbp
mov dword [rsp + 0x24], eax
mov rcx, rsi
call fcn.1400916d0
mov dword [rsi + 0x4c], r13d
mov edi, eax
test eax, eax
jne 0x140091d9a
movsxd r12, dword [rsp + 0x24]
shl r12, 5
add r12, qword [rsi + 0x20]
cmp qword [rsp + 0xb8], 0
mov r13, qword [r12 + 8]
je 0x140091af9
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov r14, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rdi, qword [r14]
test rdi, rdi
je 0x140091ae2
mov rdi, qword [rdi + 0x30]
mov rcx, rdi
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x28]
mov rcx, r14
call rdi
test eax, eax
jne 0x140091ac6
cmp qword [rsp + 0x28], 0
jle 0x140091ae2
lea r8, str.output_file_already_exists
mov rdx, rsi
mov rcx, rbp
mov edi, 1
call fcn.140006fa0
jmp 0x140091d9a
mov rax, qword [rsi + 0x20]
or dword [rsi + 0x2c], 8
movzx r14d, byte [rax + r15 + 0x10]
mov eax, dword [rsi + 0x30]
and eax, 0x38
or r14d, eax
mov rcx, rbx
call fcn.140020690
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x28], eax
mov rdx, qword [rcx + r15 + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.1400203c0
xor edx, edx
mov rcx, rbx
call fcn.140020470
mov edx, eax
mov rcx, r13
call fcn.140020470
or r14d, 0x20
mov rcx, r13
mov edx, r14d
call fcn.140020530
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rsi
call fcn.1400915c0
mov edi, eax
test eax, eax
jne 0x140091d9a
mov r14, qword [rsp + 0xb8]
xor edx, edx
mov eax, 2
test r14, r14
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.140020c60
mov edi, eax
test eax, eax
jne 0x140091d9a
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140091b97
test r14, r14
jne 0x140091b97
mov dword [rsi + 0x74], edi
mov rax, qword [rbx + 8]
xor r9d, r9d
mov edi, dword [rsp + 0x28]
mov rcx, r13
mov r8d, edi
mov edx, dword [rax + 0x34]
call fcn.140020590
test eax, eax
jne 0x140091d95
cmp dword [rsp + 0x20], eax
jne 0x140091bd7
mov edx, dword [rsi + 0x74]
xor r9d, r9d
mov r8d, edi
mov rcx, r13
call fcn.140020590
test eax, eax
jne 0x140091d95
cmp byte [rsi + 0x67], 0
jne 0x140091d95
movzx eax, byte [rsi + 0x6a]
test al, al
js 0x140091bee
movsx eax, al
jmp 0x140091bf6
mov rcx, rbx
call fcn.140020810
mov edx, eax
mov rcx, r13
call fcn.140020780
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r14, qword [rsp + 0x38]
mov rdx, rbp
mov r9, r14
mov byte [rsi + 0xc4], al
mov rcx, rsi
call fcn.1400916d0
mov edi, eax
test eax, eax
jne 0x140091d9a
mov r9, r14
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rbp
mov rcx, rsi
call fcn.1400916d0
mov edi, eax
test eax, eax
jne 0x140091d9a
mov r9, r14
mov byte [rsi + 0xc4], al
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, rbp
mov rcx, rsi
call fcn.1400916d0
and dword [rsi + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140091d9a
mov r9, r14
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rbp
mov rcx, rsi
call fcn.1400916d0
mov edi, eax
test eax, eax
jne 0x140091d9a
xor r14d, r14d
lea rbp, [0x140000000]
nop
cmp byte [rbx + 0x11], 0
movzx edi, byte [r14 + rbp + 0x21ff90]
mov r15, qword [rbx + 8]
je 0x140091cc4
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x140091cc4
mov rcx, rbx
call fcn.14001d730
cmp edi, 0xf
jne 0x140091cd7
mov rax, qword [r15]
mov edi, dword [rax + 0x84]
add edi, dword [rbx + 0x1c]
jmp 0x140091ceb
mov rax, qword [r15 + 0x18]
lea edx, [rdi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov edi, dword [rdx + rcx]
bswap edi
cmp byte [rbx + 0x11], 0
je 0x140091cff
sub dword [rbx + 0x14], 1
jne 0x140091cff
mov rcx, rbx
call fcn.14001d6d0
movzx r8d, byte [r14 + rbp + 0x21ff91]
mov rcx, r13
movzx edx, byte [r14 + rbp + 0x21ff90]
add r8d, edi
call fcn.140029830
mov edi, eax
test eax, eax
jne 0x140091d9a
add r14, 2
cmp r14, 0xa
jl 0x140091ca0
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
jne 0x140091d4e
mov rdx, r13
mov rcx, rbx
call fcn.14002bef0
mov edi, eax
test eax, eax
jne 0x140091d9a
mov rcx, r13
call fcn.140021f10
mov edi, eax
test eax, eax
jne 0x140091d9a
test rbp, rbp
jne 0x140091d9a
mov rcx, r13
call fcn.140020810
mov edx, eax
mov rcx, rbx
call fcn.140020780
mov rcx, r13
call fcn.140020690
mov rcx, qword [r13 + 8]
lea r9d, [rdi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.140020590
mov edi, eax
jmp 0x140091d9a
mov edi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rsi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x40]
or edx, 0xffffffff
mov qword [rsi + 0x30], rax
mov rcx, rbx
mov rax, qword [rsp + 0x48]
mov qword [rsi + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x80], rax
movzx eax, byte [rsp + 0xa8]
mov byte [rsi + 0x6e], al
mov byte [rsi + 0xc4], 0
call fcn.140020590
mov r15, qword [rsp + 0x60]
mov byte [rsi + 0x65], 1
test r12, r12
je 0x140091e0f
mov rcx, qword [r12 + 8]
call fcn.1400202b0
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rsi
call fcn.14005b030
mov r13, qword [rsp + 0x68]
mov eax, edi
mov rdi, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret