Function at 0x180069e10
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor r13d, r13d
mov rdi, rdx
mov r14, rcx
cmp byte [rdx + 0x4f], r13b
jne 0x180069e44
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.18001eaf8
mov eax, 1
jmp 0x18006a1b6
cmp dword [rdx + 0xa4], 1
jle 0x180069e56
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x180069e35
mov eax, dword [rdx + 0x2c]
lea r8, str.ATTACH_:memory:_AS_vacuum_db_
mov ecx, dword [rdx + 0x60]
mov ebx, dword [rdx + 0x28]
mov dword [rsp + 0x88], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [rsp + 0x20], ecx
mov ecx, dword [rdx + 0x64]
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x24], ecx
mov rcx, qword [rdx + 0xc0]
and qword [rdx + 0xc0], r13
mov rbp, qword [rax + 8]
cmp byte [rdx + 0x50], 2
mov rdx, r14
mov qword [rsp + 0x28], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
mov al, byte [rcx + 0x13]
mov rcx, rdi
mov byte [rsp + 0x78], al
lea rax, str.ATTACH__AS_vacuum_db_
cmovne r8, rax
call fcn.180069cb8
mov esi, eax
movsxd rax, dword [rdi + 0x28]
cmp eax, ebx
jle 0x180069ee0
lea ecx, [rax - 1]
movsxd r13, ecx
shl r13, 5
add r13, qword [rdi + 0x20]
test esi, esi
jne 0x18006a156
mov rcx, rax
mov rax, qword [rdi + 0x20]
shl rcx, 5
mov r12, qword [rcx + rax - 0x18]
mov rcx, r12
call fcn.18002f2f8
mov cl, byte [rbp + 0x11]
test cl, cl
je 0x180069f1b
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], sil
jne 0x180069f1b
mov rcx, rbp
call fcn.18002be90
mov cl, byte [rbp + 0x11]
mov rax, qword [rbp + 8]
mov ebx, dword [rax + 0x30]
sub ebx, dword [rax + 0x34]
mov dword [rsp + 0x80], ebx
test cl, cl
je 0x180069f3e
sub dword [rbp + 0x14], 1
jne 0x180069f3e
mov rcx, rbp
call fcn.18002be48
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, r14
mov rcx, rdi
call fcn.180069cb8
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.BEGIN_
mov rdx, r14
mov rcx, rdi
call fcn.180069cb8
mov esi, eax
test eax, eax
jne 0x18006a156
lea edx, [rax + 2]
mov rcx, rbp
call fcn.18002e120
mov esi, eax
test eax, eax
jne 0x18006a156
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x180069f9f
and dword [rdi + 0x58], esi
mov rcx, qword [rbp + 8]
mov edx, dword [rcx + 0x30]
xor r9d, r9d
mov rcx, r12
mov r8d, ebx
call fcn.18002dac8
test eax, eax
jne 0x18006a151
cmp byte [rsp + 0x78], al
jne 0x180069fd7
mov edx, dword [rdi + 0x58]
xor r9d, r9d
mov r8d, ebx
mov rcx, r12
call fcn.18002dac8
test eax, eax
jne 0x18006a151
cmp byte [rdi + 0x51], 0
jne 0x18006a151
movsx eax, byte [rdi + 0x53]
test al, al
jns 0x180069ff1
mov rcx, rbp
call fcn.18002dd10
mov edx, eax
mov rcx, r12
call fcn.18002dc80
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, r14
mov rcx, rdi
call fcn.180069d48
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, r14
mov rcx, rdi
call fcn.180069d48
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, r14
mov rcx, rdi
call fcn.180069d48
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, r14
mov rcx, rdi
call fcn.180069d48
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, r14
mov rcx, rdi
call fcn.180069d48
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rdx, r14
mov rcx, rdi
call fcn.180069d48
mov esi, eax
test eax, eax
jne 0x18006a156
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov rdx, r14
mov rcx, rdi
call fcn.180069cb8
mov esi, eax
test eax, eax
jne 0x18006a156
xor ebx, ebx
lea rsi, [0x1800f7d68]
mov rcx, rbp
movzx edx, byte [rbx + rsi]
lea r8, [rsp + 0x78]
call fcn.180034658
movzx r8d, byte [rbx + rsi + 1]
mov rcx, r12
add r8d, dword [rsp + 0x78]
movzx edx, byte [rbx + rsi]
call fcn.180034700
mov esi, eax
test eax, eax
jne 0x18006a156
add rbx, 2
cmp rbx, 0xa
jl 0x18006a0c1
mov rdx, r12
mov rcx, rbp
call fcn.1800360b8
mov esi, eax
test eax, eax
jne 0x18006a156
mov rcx, r12
call fcn.18002f2f8
mov esi, eax
test eax, eax
jne 0x18006a156
mov rcx, r12
call fcn.18002dd10
mov edx, eax
mov rcx, rbp
call fcn.18002dc80
mov rax, qword [r12 + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x80]
mov rcx, rbp
mov edx, dword [rax + 0x30]
call fcn.18002dac8
mov esi, eax
jmp 0x18006a156
mov esi, 7
mov eax, dword [rsp + 0x88]
mov r9d, 1
mov dword [rdi + 0x2c], eax
mov rcx, rbp
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x60], eax
mov eax, dword [rsp + 0x24]
mov dword [rdi + 0x64], eax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 0xc0], rax
or eax, 0xffffffff
mov r8d, eax
mov edx, eax
call fcn.18002dac8
mov byte [rdi + 0x4f], 1
test r13, r13
je 0x18006a1ac
mov rcx, qword [r13 + 8]
call fcn.18002d7d4
and qword [r13 + 8], 0
and qword [r13 + 0x18], 0
mov rcx, rdi
call fcn.18004d9f0
mov eax, esi
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret