Function at 0x180084ca0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r12
push r15
sub rsp, 0x60
xor r15d, r15d
movsxd rbx, r8d
mov r12, r9
mov rdi, rdx
mov rbp, rcx
cmp byte [rdx + 0x5f], r15b
jne 0x180084cdd
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.180004d10
lea eax, [r15 + 1]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xc8], 1
jle 0x180084d03
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.180004d10
mov eax, 1
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0xa8], r14
mov r14d, dword [rdx + 0x4c]
lea rdx, [0x180000000]
test r12, r12
je 0x180084da9
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0xd28c0], 3
je 0x180084d4f
lea r8, str.non_text_filename
mov rdx, rdi
mov rcx, rbp
call fcn.180004d10
mov eax, 1
jmp 0x1800851e1
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x180084d78
cmp byte [r9 + 0xa], 1
jne 0x180084d78
mov r9, qword [r9 + 0x10]
mov eax, r14d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x180084db0
test cl, 1
je 0x180084d8e
mov eax, r14d
xor r9d, r9d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x180084db0
mov dl, 1
mov rcx, r12
call fcn.180028cb0
mov r9, rax
mov eax, dword [rdi + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x180084db0
lea r9, [0x1800c6874]
mov eax, dword [rdi + 0x2c]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rcx, qword [rdi + 0x30]
mov edx, dword [rdi + 0x74]
mov dword [rsp + 0x3c], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov dword [rsp + 0x40], edx
mov edx, dword [rdi + 0x78]
mov qword [rsp + 0x58], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov dword [rsp + 0x44], edx
movzx edx, byte [rdi + 0x68]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov byte [rdi + 0x68], r15b
mov byte [rsp + 0x20], dl
mov rdx, rbx
shl rdx, 5
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0xa0], r13
mov rcx, qword [rax + rdx]
mov rbx, qword [rax + rdx + 8]
mov rdx, rbp
movsxd r13, dword [rdi + 0x28]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x38], r13d
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rdi
mov byte [rsp + 0x98], al
call fcn.180084a80
mov dword [rdi + 0x4c], r14d
mov esi, eax
test eax, eax
jne 0x180085169
mov rax, r13
shl rax, 5
add rax, qword [rdi + 0x20]
mov qword [rsp + 0x28], rax
mov r13, qword [rax + 8]
test r12, r12
je 0x180084ec7
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x30], r15
mov rax, qword [rcx]
test rax, rax
je 0x180084ec3
lea rdx, [rsp + 0x30]
call qword [rax + 0x30]
test eax, eax
jne 0x180084ea7
cmp qword [rsp + 0x30], r15
jle 0x180084ec3
lea r8, str.output_file_already_exists
mov rdx, rdi
mov rcx, rbp
mov esi, 1
call fcn.180004d10
jmp 0x180085164
or dword [rdi + 0x2c], 8
mov rcx, rbx
call fcn.18001b800
mov rcx, qword [rdi + 0x20]
mov r14d, eax
mov rdx, qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rdx, qword [rcx + rdx + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.18001b470
xor edx, edx
mov rcx, rbx
call fcn.18001b500
mov edx, eax
mov rcx, r13
call fcn.18001b500
mov edx, 0x21
mov rcx, r13
call fcn.18001b630
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rdi
call fcn.180084970
mov esi, eax
test eax, eax
jne 0x180085164
xor edx, edx
mov eax, 2
test r12, r12
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.18001bf40
mov esi, eax
test eax, eax
jne 0x180085164
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x180084f63
mov dword [rdi + 0x6c], r15d
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov rcx, r13
mov r8d, r14d
call fcn.18001b720
test eax, eax
jne 0x18008515f
cmp byte [rsp + 0x98], r15b
jne 0x180084f9f
mov edx, dword [rdi + 0x6c]
xor r9d, r9d
mov r8d, r14d
mov rcx, r13
call fcn.18001b720
test eax, eax
jne 0x18008515f
cmp byte [rdi + 0x61], r15b
jne 0x18008515f
movzx eax, byte [rdi + 0x64]
test al, al
js 0x180084fb6
movsx eax, al
jmp 0x180084fbe
mov rcx, rbx
call fcn.18001b9f0
mov edx, eax
mov rcx, r13
call fcn.18001b960
mov eax, dword [rsp + 0x38]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r14, qword [rsp + 0x50]
mov rdx, rbp
mov r9, r14
mov byte [rdi + 0xb4], al
mov rcx, rdi
call fcn.180084a80
mov esi, eax
test eax, eax
jne 0x180085164
mov r9, r14
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rbp
mov rcx, rdi
call fcn.180084a80
mov esi, eax
test eax, eax
jne 0x180085164
mov r9, r14
mov byte [rdi + 0xb4], r15b
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, rdi
call fcn.180084a80
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x180085164
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, rdi
call fcn.180084a80
mov esi, eax
test eax, eax
jne 0x180085164
xor r14d, r14d
lea rbp, [0x180000000]
nop dword [rax + rax]
movzx r8d, byte [rbx + 0x11]
movzx esi, byte [r14 + rbp + 0xcd788]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x18008509d
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x18008509d
mov rcx, rbx
call fcn.180018c60
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x1800850b0
mov rax, qword [r15]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x1800850c4
mov rax, qword [r15 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x1800850d7
sub dword [rbx + 0x14], 1
jne 0x1800850d7
mov rcx, rbx
call fcn.180018c30
movzx r8d, byte [r14 + rbp + 0xcd789]
mov rcx, r13
movzx edx, byte [r14 + rbp + 0xcd788]
add r8d, esi
call fcn.180025190
mov esi, eax
test eax, eax
jne 0x180085164
add r14, 2
cmp r14, 0xa
jl 0x180085070
test r12, r12
jne 0x18008511e
mov rdx, r13
mov rcx, rbx
call fcn.1800277c0
mov esi, eax
test eax, eax
jne 0x180085164
mov rcx, r13
call fcn.18001d410
mov esi, eax
test eax, eax
jne 0x180085164
test r12, r12
jne 0x180085164
mov rcx, r13
call fcn.18001b9f0
mov edx, eax
mov rcx, rbx
call fcn.18001b960
mov rax, qword [r13 + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov edx, dword [rax + 0x34]
call fcn.18001b720
mov esi, eax
jmp 0x180085164
mov esi, 7
mov r15, qword [rsp + 0x28]
mov eax, dword [rsp + 0x3c]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x58]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov eax, dword [rsp + 0x40]
lea edx, [r9 - 2]
mov dword [rdi + 0x74], eax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x78], eax
movzx eax, byte [rsp + 0x20]
mov byte [rdi + 0x68], al
mov byte [rdi + 0xb4], 0
call fcn.18001b720
mov r13, qword [rsp + 0xa0]
mov byte [rdi + 0x5f], 1
test r15, r15
je 0x1800851cf
mov rcx, qword [r15 + 8]
call fcn.18001b2b0
xor eax, eax
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rax
mov rcx, rdi
call fcn.180052bb0
mov eax, esi
mov rsi, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rbp
pop rbx
ret