Function at 0x1401900b0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x50
xor r12d, r12d
mov rdi, rdx
mov rbp, rcx
cmp byte [rdx + 0x28], r12b
jne 0x1401900e2
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1401515b0
lea eax, [r12 + 1]
add rsp, 0x50
pop r12
pop rdi
pop rbp
ret
cmp dword [rdx + 0xb0], 1
jle 0x140190105
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1401515b0
mov eax, 1
add rsp, 0x50
pop r12
pop rdi
pop rbp
ret
mov eax, dword [rdx + 0x18]
mov ecx, dword [rdx + 0x4c]
mov qword [rsp + 0x70], rbx
mov ebx, dword [rdx + 8]
mov dword [rsp + 0x88], eax
and eax, 0xfaffffff
or eax, 0x10050000
cmp byte [rdx + 0x29], 2
mov dword [rsp + 0x20], ecx
mov ecx, dword [rdx + 0x50]
mov dword [rdx + 0x18], eax
mov rax, qword [rdx + 0x10]
mov dword [rsp + 0x24], ecx
mov rcx, qword [rdx + 0xc0]
mov qword [rdx + 0xc0], r12
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], r14
mov r14, qword [rax + 8]
lea r8, str.ATTACH_:memory:_AS_vacuum_db_
mov qword [rsp + 0x30], r15
mov rax, qword [r14 + 8]
mov rdx, rbp
mov rcx, qword [rax]
lea rax, str.ATTACH__AS_vacuum_db_
movzx r15d, byte [rcx + 0x12]
mov rcx, rdi
cmovne r8, rax
call fcn.14018ede0
mov esi, eax
movsxd rax, dword [rdi + 8]
cmp eax, ebx
jle 0x1401901a1
lea ecx, [rax - 1]
movsxd r12, ecx
shl r12, 5
add r12, qword [rdi + 0x10]
test esi, esi
jne 0x1401903e3
mov rcx, rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], r13
shl rcx, 5
mov r13, qword [rcx + rax - 0x18]
mov rcx, r13
call fcn.140186e40
mov rcx, r14
call fcn.140142c20
mov rcx, qword [r14 + 8]
mov rdx, qword [rcx]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp byte [rdx + 9], 5
jne 0x1401901e7
mov dword [rdi + 0x30], esi
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, r13
call fcn.14014b610
test eax, eax
jne 0x1401903d9
test r15d, r15d
jne 0x140190222
mov edx, dword [rdi + 0x30]
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
call fcn.14014b610
test eax, eax
jne 0x1401903d9
cmp byte [rdi + 0x2a], 0
jne 0x1401903d9
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, rbp
mov rcx, rdi
call fcn.14018ede0
mov esi, eax
test eax, eax
jne 0x1401903de
movzx eax, byte [rdi + 0x2c]
test al, al
js 0x140190255
movsx eax, al
jmp 0x14019025d
mov rcx, r14
call fcn.140142a50
mov edx, eax
mov rcx, r13
call fcn.140142ab0
lea r8, str.BEGIN_EXCLUSIVE_
mov rdx, rbp
mov rcx, rdi
call fcn.14018ede0
mov esi, eax
test eax, eax
jne 0x1401903de
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov rdx, rbp
mov rcx, rdi
call fcn.14018fa40
mov esi, eax
test eax, eax
jne 0x1401903de
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, rbp
mov rcx, rdi
call fcn.14018fa40
mov esi, eax
test eax, eax
jne 0x1401903de
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, rbp
mov rcx, rdi
call fcn.14018fa40
mov esi, eax
test eax, eax
jne 0x1401903de
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_rootpage_0
mov rdx, rbp
mov rcx, rdi
call fcn.14018fa40
mov esi, eax
test eax, eax
jne 0x1401903de
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, rbp
mov rcx, rdi
call fcn.14018fa40
mov esi, eax
test eax, eax
jne 0x1401903de
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, rbp
mov rcx, rdi
call fcn.14018fa40
mov esi, eax
test eax, eax
jne 0x1401903de
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, rbp
mov rcx, rdi
call fcn.14018ede0
mov esi, eax
test eax, eax
jne 0x1401903de
xor ebx, ebx
lea rbp, [0x1403346a8]
movzx edx, byte [rbx + rbp]
lea r8, [rsp + 0x78]
mov rcx, r14
call fcn.1401428e0
movzx r8d, byte [rbx + rbp + 1]
movzx edx, byte [rbx + rbp]
add r8d, dword [rsp + 0x78]
mov rcx, r13
call fcn.1401684e0
mov esi, eax
test eax, eax
jne 0x1401903de
add rbx, 2
cmp rbx, 8
jl 0x140190350
mov rdx, r13
mov rcx, r14
call fcn.140187b90
mov esi, eax
test eax, eax
jne 0x1401903de
mov rcx, r13
call fcn.140186e40
mov esi, eax
test eax, eax
jne 0x1401903de
mov rcx, r13
call fcn.140142a50
mov rcx, r14
mov edx, eax
call fcn.140142ab0
mov r11, qword [r13 + 8]
mov r8d, dword [rsp + 0x80]
mov edx, dword [r11 + 0x34]
lea r9d, [rsi + 1]
mov rcx, r14
call fcn.14014b610
mov esi, eax
jmp 0x1401903de
mov esi, 7
mov r13, qword [rsp + 0x40]
mov eax, dword [rsp + 0x88]
or r8d, 0xffffffff
mov r9d, 1
mov dword [rdi + 0x18], eax
mov eax, dword [rsp + 0x20]
or edx, r8d
mov dword [rdi + 0x4c], eax
mov eax, dword [rsp + 0x24]
mov rcx, r14
mov dword [rdi + 0x50], eax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 0xc0], rax
call fcn.14014b610
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
mov byte [rdi + 0x28], 1
test r12, r12
je 0x140190450
mov rcx, qword [r12 + 8]
call fcn.1401820c0
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
or edx, 0xffffffff
mov rcx, rdi
call fcn.14014fad0
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x50
pop r12
pop rdi
pop rbp
ret