Function at 0x1401d04c0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
xor r14d, r14d
movsxd rdi, r8d
mov r12, r9
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x5f], r14b
jne 0x1401d04fd
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1401d4bd0
lea eax, [r14 + 1]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp dword [rdx + 0xc8], 1
jle 0x1401d0523
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1401d4bd0
mov eax, 1
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x80], rbp
lea rcx, [0x140000000]
mov ebp, dword [rdx + 0x4c]
test r12, r12
je 0x1401d057a
movzx eax, word [r9 + 8]
and eax, 0x3f
cmp byte [rax + rcx + 0x24d620], 3
je 0x1401d0565
lea r8, str.non_text_filename
mov rcx, rsi
call fcn.1401d4bd0
mov eax, 1
jmp 0x1401d094e
mov rcx, r12
call fcn.14016ecf0
and dword [rbx + 0x4c], 0xfffffffe
mov r9, rax
or dword [rbx + 0x4c], 6
jmp 0x1401d0581
lea r9, [0x140257edf]
mov eax, dword [rbx + 0x2c]
lea r8, str.ATTACH__Q_AS_vacuum_db
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 dword [rsp + 0x38], edx
movzx edx, byte [rbx + 0x68]
mov byte [rbx + 0x68], r14b
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x90], r13
mov r13, qword [rax + rcx]
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov qword [rsp + 0x98], r15
mov r15, qword [rax + rcx + 8]
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rbx
mov byte [rsp + 0x88], al
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x24], eax
call fcn.140189160
mov dword [rbx + 0x4c], ebp
mov edi, eax
test eax, eax
jne 0x1401d08d0
movsxd r14, dword [rsp + 0x24]
shl r14, 5
add r14, qword [rbx + 0x20]
mov rbp, qword [r14 + 8]
test r12, r12
je 0x1401d0692
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 0x1401d068e
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x1401d0672
cmp qword [rsp + 0x28], 0
jle 0x1401d068e
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rsi
mov edi, 1
call fcn.1401d4bd0
jmp 0x1401d08d0
or dword [rbx + 0x2c], 8
mov rcx, r15
call fcn.1401ab010
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.1401acd70
xor edx, edx
mov rcx, r15
call fcn.1401acfd0
mov edx, eax
mov rcx, rbp
call fcn.1401acfd0
mov edx, 0x21
mov rcx, rbp
call fcn.1401acee0
lea r8, [0x140261638]
mov rdx, rsi
mov rcx, rbx
call fcn.140189050
mov edi, eax
test eax, eax
jne 0x1401d08d0
xor edx, edx
mov eax, 2
test r12, r12
mov rcx, r15
cmove edx, eax
xor r8d, r8d
call fcn.1401a9c10
mov edi, eax
test eax, eax
jne 0x1401d08d0
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x1401d072a
mov dword [rbx + 0x6c], edi
mov rcx, qword [r15 + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov edi, dword [rsp + 0x28]
mov rcx, rbp
mov r8d, edi
call fcn.1401ace00
test eax, eax
jne 0x1401d08cb
cmp byte [rsp + 0x88], al
jne 0x1401d0769
mov edx, dword [rbx + 0x6c]
xor r9d, r9d
mov r8d, edi
mov rcx, rbp
call fcn.1401ace00
test eax, eax
jne 0x1401d08cb
cmp byte [rbx + 0x61], 0
jne 0x1401d08cb
movzx eax, byte [rbx + 0x64]
test al, al
js 0x1401d0780
movsx eax, al
jmp 0x1401d0788
mov rcx, r15
call fcn.1401aaf20
mov edx, eax
mov rcx, rbp
call fcn.1401acce0
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_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.140189160
mov edi, eax
test eax, eax
jne 0x1401d08d0
mov r9, r13
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.140189160
mov edi, eax
test eax, eax
jne 0x1401d08d0
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_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, rsi
mov rcx, rbx
call fcn.140189160
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401d08d0
mov r9, r13
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rsi
mov rcx, rbx
call fcn.140189160
mov edi, eax
test eax, eax
jne 0x1401d08d0
xor esi, esi
lea rdi, [0x140000000]
mov rcx, r15
movzx edx, byte [rsi + rdi + 0x24d758]
lea r8, [rsp + 0x88]
call fcn.1401aaf80
movzx r8d, byte [rsi + rdi + 0x24d759]
mov rcx, rbp
add r8d, dword [rsp + 0x88]
movzx edx, byte [rsi + rdi + 0x24d758]
call fcn.1401ad2e0
mov edi, eax
test eax, eax
jne 0x1401d08d0
add rsi, 2
cmp rsi, 0xa
jl 0x1401d0824
test r12, r12
jne 0x1401d088a
mov rdx, rbp
mov rcx, r15
call fcn.1401aa530
mov edi, eax
test eax, eax
jne 0x1401d08d0
mov rcx, rbp
call fcn.1401aa2e0
mov edi, eax
test eax, eax
jne 0x1401d08d0
test r12, r12
jne 0x1401d08d0
mov rcx, rbp
call fcn.1401aaf20
mov edx, eax
mov rcx, r15
call fcn.1401acce0
mov rax, qword [rbp + 8]
lea r9d, [rdi + 1]
mov r8d, dword [rsp + 0x28]
mov rcx, r15
mov edx, dword [rax + 0x34]
call fcn.1401ace00
mov edi, eax
jmp 0x1401d08d0
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, r15
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 + 0x20]
mov byte [rbx + 0x68], al
mov byte [rbx + 0xb4], 0
call fcn.1401ace00
mov r15, qword [rsp + 0x98]
mov r13, qword [rsp + 0x90]
mov byte [rbx + 0x5f], 1
test r14, r14
je 0x1401d0944
mov rcx, qword [r14 + 8]
call fcn.1401aa030
mov qword [r14 + 8], 0
mov qword [r14 + 0x18], 0
mov rcx, rbx
call fcn.1401cf1f0
mov eax, edi
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret