Function at 0x1401fc770
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x50
xor r15d, r15d
movsxd rdi, r8d
mov r12, r9
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x5f], r15b
jne 0x1401fc7ad
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1401fecb0
lea eax, [r15 + 1]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rdx + 0xc8], 1
jle 0x1401fc7d3
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1401fecb0
mov eax, 1
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x80], rbp
mov ebp, dword [rdx + 0x4c]
test r12, r12
je 0x1401fc821
mov rcx, r12
call fcn.1401adb30
cmp eax, 3
je 0x1401fc80c
lea r8, str.non_text_filename
mov rdx, rbx
mov rcx, rsi
call fcn.1401fecb0
mov eax, 1
jmp 0x1401fcbfc
mov rcx, r12
call fcn.1401adad0
and dword [rbx + 0x4c], 0xfffffffe
mov r9, rax
or dword [rbx + 0x4c], 6
jmp 0x1401fc828
lea r9, [0x1402b04e8]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov edx, dword [rbx + 0x74]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov dword [rsp + 0x34], edx
mov edx, dword [rbx + 0x78]
or rax, 0x201
mov qword [rbx + 0x30], rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
shl rcx, 5
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x38], edx
movzx edx, byte [rbx + 0x68]
mov byte [rbx + 0x68], r15b
mov r13, qword [rcx + rax]
mov qword [rsp + 0x98], r14
mov r14, qword [rcx + rax + 8]
mov qword [rsp + 0x40], rcx
mov rcx, r14
mov byte [rsp + 0x88], dl
call fcn.1401e2700
mov rcx, rax
call fcn.1401f5d10
mov dword [rsp + 0x20], eax
lea r8, str.ATTACH__Q_AS_vacuum_db
mov eax, dword [rbx + 0x28]
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x24], eax
call fcn.1401c7030
mov dword [rbx + 0x4c], ebp
mov edi, eax
test eax, eax
jne 0x1401fcb7b
movsxd r15, dword [rsp + 0x24]
shl r15, 5
add r15, qword [rbx + 0x20]
mov rbp, qword [r15 + 8]
test r12, r12
je 0x1401fc946
mov rcx, rbp
call fcn.1401e2700
mov rcx, rax
call fcn.1401f5c20
mov qword [rsp + 0x28], 0
cmp qword [rax], 0
je 0x1401fc942
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.1401f51a0
test eax, eax
jne 0x1401fc926
cmp qword [rsp + 0x28], 0
jle 0x1401fc942
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rsi
mov edi, 1
call fcn.1401fecb0
jmp 0x1401fcb7b
or dword [rbx + 0x2c], 8
mov rcx, r14
call fcn.1401e10b0
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rdx, qword [rcx + rdx + 0x18]
mov rcx, rbp
mov edx, dword [rdx + 0x74]
call fcn.1401e2c00
xor edx, edx
mov rcx, r14
call fcn.1401e2db0
mov edx, eax
mov rcx, rbp
call fcn.1401e2db0
mov edx, 0x21
mov rcx, rbp
call fcn.1401e2d60
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1401c6f30
mov edi, eax
test eax, eax
jne 0x1401fcb7b
xor edx, edx
mov eax, 2
test r12, r12
mov rcx, r14
cmove edx, eax
xor r8d, r8d
call fcn.1401e0090
mov edi, eax
test eax, eax
jne 0x1401fcb7b
mov rcx, r14
call fcn.1401e2700
mov rcx, rax
call fcn.1401f5d00
cmp eax, 5
jne 0x1401fc9e2
mov dword [rbx + 0x6c], edi
mov rcx, r14
call fcn.1401e10a0
mov edi, dword [rsp + 0x28]
mov edx, eax
mov r8d, edi
xor r9d, r9d
mov rcx, rbp
call fcn.1401e2ca0
test eax, eax
jne 0x1401fcb76
cmp dword [rsp + 0x20], eax
jne 0x1401fca25
mov edx, dword [rbx + 0x6c]
xor r9d, r9d
mov r8d, edi
mov rcx, rbp
call fcn.1401e2ca0
test eax, eax
jne 0x1401fcb76
cmp byte [rbx + 0x61], 0
jne 0x1401fcb76
movsx eax, byte [rbx + 0x64]
test al, al
jns 0x1401fca3f
mov rcx, r14
call fcn.1401e0fc0
mov edx, eax
mov rcx, rbp
call fcn.1401e2b80
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 r9, r13
mov byte [rbx + 0xb4], al
mov rdx, rsi
mov rcx, rbx
call fcn.1401c7030
mov edi, eax
test eax, eax
jne 0x1401fcb7b
mov r9, r13
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.1401c7030
mov edi, eax
test eax, eax
jne 0x1401fcb7b
mov r9, r13
mov byte [rbx + 0xb4], 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, rsi
mov rcx, rbx
call fcn.1401c7030
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401fcb7b
mov r9, r13
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rsi
mov rcx, rbx
call fcn.1401c7030
mov edi, eax
test eax, eax
jne 0x1401fcb7b
xor esi, esi
lea r13, [0x1402f11a0]
movzx edx, byte [rsi + r13]
lea r8, [rsp + 0x20]
mov rcx, r14
call fcn.1401e1030
movzx r8d, byte [rsi + r13 + 1]
mov rcx, rbp
add r8d, dword [rsp + 0x20]
movzx edx, byte [rsi + r13]
call fcn.1401e2f80
mov edi, eax
test eax, eax
jne 0x1401fcb7b
add rsi, 2
cmp rsi, 0xa
jl 0x1401fcae2
test r12, r12
jne 0x1401fcb32
mov rdx, rbp
mov rcx, r14
call fcn.1401e0790
mov edi, eax
test eax, eax
jne 0x1401fcb7b
mov rcx, rbp
call fcn.1401e0610
mov edi, eax
test eax, eax
jne 0x1401fcb7b
test r12, r12
jne 0x1401fcb7b
mov rcx, rbp
call fcn.1401e0fc0
mov edx, eax
mov rcx, r14
call fcn.1401e2b80
mov rcx, rbp
call fcn.1401e10a0
mov r8d, dword [rsp + 0x28]
lea r9d, [rdi + 1]
mov edx, eax
mov rcx, r14
call fcn.1401e2ca0
mov edi, eax
jmp 0x1401fcb7b
mov edi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rbx + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, r14
mov qword [rbx + 0x30], rax
mov eax, dword [rsp + 0x34]
lea edx, [r9 - 2]
mov dword [rbx + 0x74], eax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x78], eax
movzx eax, byte [rsp + 0x88]
mov byte [rbx + 0x68], al
mov byte [rbx + 0xb4], 0
call fcn.1401e2ca0
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
mov byte [rbx + 0x5f], 1
test r15, r15
je 0x1401fcbf2
mov rcx, qword [r15 + 8]
call fcn.1401e0480
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.1401fb7c0
mov eax, edi
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret