Function at 0x1401b02c0
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 0x1401b02fd
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1401b4ec0
lea eax, [r14 + 1]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rdx + 0xd8], 1
jle 0x1401b0323
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1401b4ec0
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 0x1401b037a
movzx eax, word [r9 + 8]
and eax, 0x3f
cmp byte [rax + rcx + 0x24ba10], 3
je 0x1401b0365
lea r8, str.non_text_filename
mov rcx, rsi
call fcn.1401b4ec0
mov eax, 1
jmp 0x1401b077d
mov rcx, r9
call fcn.1401159a0
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x1401b0381
lea r9, [0x140224e98]
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 0x1401b041b
cmp byte [rcx + 0x14], r14b
jne 0x1401b041b
xor r13d, r13d
jmp 0x1401b0421
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.14013c8b0
mov dword [rbx + 0x4c], ebp
mov edi, eax
test eax, eax
jne 0x1401b06f6
movsxd r14, dword [rsp + 0x20]
shl r14, 5
add r14, qword [rbx + 0x20]
mov rbp, qword [r14 + 8]
test r12, r12
je 0x1401b04ad
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 0x1401b04a9
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x1401b048d
cmp qword [rsp + 0x28], 0
jle 0x1401b04a9
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rsi
mov edi, 1
call fcn.1401b4ec0
jmp 0x1401b06f6
or dword [rbx + 0x2c], 8
mov rcx, r15
call fcn.14017ec70
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.140180f50
xor edx, edx
mov rcx, r15
call fcn.1401811b0
mov rcx, rbp
mov edx, eax
call fcn.1401811b0
mov edx, 0x21
mov rcx, rbp
call fcn.140181150
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.14013c7a0
mov edi, eax
test eax, eax
jne 0x1401b06f6
xor edx, edx
mov eax, 2
test r12, r12
cmove edx, eax
xor r8d, r8d
mov rcx, r15
call fcn.14017d760
mov edi, eax
test eax, eax
jne 0x1401b06f6
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401b0547
test r12, r12
jne 0x1401b0547
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.140181060
test eax, eax
jne 0x1401b06f1
test r13d, r13d
jne 0x1401b0586
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, edi
mov rcx, rbp
call fcn.140181060
test eax, eax
jne 0x1401b06f1
cmp byte [rbx + 0x67], 0
jne 0x1401b06f1
movzx eax, byte [rbx + 0x6a]
test al, al
js 0x1401b059d
movsx eax, al
jmp 0x1401b05a5
mov rcx, r15
call fcn.14017eb40
mov edx, eax
mov rcx, rbp
call fcn.140180ec0
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.14013c8b0
mov edi, eax
test eax, eax
jne 0x1401b06f6
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov r9, r13
mov rdx, rsi
mov rcx, rbx
call fcn.14013c8b0
mov edi, eax
test eax, eax
jne 0x1401b06f6
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.14013c8b0
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401b06f6
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.14013c8b0
mov edi, eax
test eax, eax
jne 0x1401b06f6
xor esi, esi
nop word [rax + rax]
lea rdi, [0x140000000]
lea r8, [rsp + 0x20]
mov rcx, r15
movzx edx, byte [rsi + rdi + 0x24c8e0]
call fcn.14017ebd0
movzx r8d, byte [rsi + rdi + 0x24c8e1]
movzx edx, byte [rsi + rdi + 0x24c8e0]
add r8d, dword [rsp + 0x20]
mov rcx, rbp
call fcn.140181da0
mov edi, eax
test eax, eax
jne 0x1401b06f6
add rsi, 2
cmp rsi, 0xa
jl 0x1401b0650
test r12, r12
jne 0x1401b06b0
mov rdx, rbp
mov rcx, r15
call fcn.14017e040
mov edi, eax
test eax, eax
jne 0x1401b06f6
mov rcx, rbp
call fcn.14017de60
mov edi, eax
test eax, eax
jne 0x1401b06f6
test r12, r12
jne 0x1401b06f6
mov rcx, rbp
call fcn.14017eb40
mov rcx, r15
mov edx, eax
call fcn.140180ec0
mov rax, qword [rbp + 8]
mov r8d, dword [rsp + 0x28]
mov edx, dword [rax + 0x34]
lea r9d, [rdi + 1]
mov rcx, r15
call fcn.140181060
mov edi, eax
jmp 0x1401b06f6
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.140181060
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
mov byte [rbx + 0x65], 1
test r14, r14
je 0x1401b0773
mov rcx, qword [r14 + 8]
call fcn.14017dc60
mov qword [r14 + 8], 0
mov qword [r14 + 0x18], 0
mov rcx, rbx
call fcn.1401aec20
mov eax, edi
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret