Function at 0x140086ed0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x60
xor r15d, r15d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x53], r15b
jne 0x140086f01
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140015b80
lea eax, [r15 + 1]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
cmp dword [rdx + 0xac], 1
jle 0x140086f24
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140015b80
mov eax, 1
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
mov eax, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x68]
mov dword [rsp + 0x28], eax
and eax, 0xfff5ff7f
mov qword [rsp + 0x80], rbp
or eax, 0x10202800
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rdx + 0x6c]
mov dword [rsp + 0x30], ecx
movzx ecx, byte [rdx + 0x5c]
mov byte [rdx + 0x5c], r15b
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
movsxd r13, r8d
lea r8, str.ATTACHAS_vacuum_db
mov byte [rsp + 0x98], cl
shl r13, 5
mov qword [rsp + 0x40], r14
movsxd r14, dword [rdx + 0x28]
mov rdx, rsi
mov dword [rsp + 0x24], r14d
mov rbp, qword [rax + r13 + 8]
mov r12, qword [rax + r13]
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x11]
mov rcx, rbx
mov byte [rsp + 0x88], al
call fcn.140086c50
mov edi, eax
test eax, eax
jne 0x140087220
mov r15, r14
shl r15, 5
add r15, qword [rbx + 0x20]
mov r14, qword [r15 + 8]
mov rcx, r14
call fcn.14002c460
mov rcx, rbp
call fcn.14002ac20
mov dword [rsp + 0x20], eax
cmp dword [rbx + 0x60], edi
je 0x140087007
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rcx + 8]
mov rcx, qword [rdx + 8]
mov rdx, qword [rcx]
mov rcx, qword [rdx + 0x128]
test rcx, rcx
je 0x140087007
cmp word [rcx], di
je 0x140087007
mov dword [rbx + 0x60], edi
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + r13 + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r14
call fcn.14002a880
xor edx, edx
mov rcx, rbp
call fcn.14002a910
mov edx, eax
mov rcx, r14
call fcn.14002a910
mov edx, 0x21
mov rcx, r14
call fcn.14002aa40
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.140086c50
mov edi, eax
test eax, eax
jne 0x140087220
lea edx, [rax + 2]
mov rcx, rbp
call fcn.14002b280
mov edi, eax
test eax, eax
jne 0x140087220
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x140087081
mov dword [rbx + 0x60], edi
mov rcx, qword [rbp + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov r13d, dword [rsp + 0x20]
mov rcx, r14
mov r8d, r13d
call fcn.14002ab30
test eax, eax
jne 0x14008721b
cmp byte [rsp + 0x88], al
jne 0x1400870c1
mov edx, dword [rbx + 0x60]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call fcn.14002ab30
test eax, eax
jne 0x14008721b
cmp byte [rbx + 0x55], 0
jne 0x14008721b
movzx eax, byte [rbx + 0x58]
test al, al
js 0x1400870d8
movsx eax, al
jmp 0x1400870e0
mov rcx, rbp
call fcn.14002ae00
mov edx, eax
mov rcx, r14
call fcn.14002ad70
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, r12
mov byte [rbx + 0xa8], al
mov rdx, rsi
mov rcx, rbx
call fcn.140086d20
mov edi, eax
test eax, eax
jne 0x140087220
mov r9, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov rdx, rsi
mov rcx, rbx
call fcn.140086d20
mov edi, eax
test eax, eax
jne 0x140087220
mov r9, r12
mov byte [rbx + 0xa8], 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.140086d20
and dword [rbx + 0x2c], 0xefffffff
mov edi, eax
test eax, eax
jne 0x140087220
mov r9, r12
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.140086d20
mov edi, eax
test eax, eax
jne 0x140087220
xor esi, esi
lea r12, [0x1400e5390]
nop word [rax + rax]
movzx edx, byte [rsi + r12]
lea r8, [rsp + 0x88]
mov rcx, rbp
call fcn.140032c80
movzx r8d, byte [rsi + r12 + 1]
mov rcx, r14
add r8d, dword [rsp + 0x88]
movzx edx, byte [rsi + r12]
call fcn.140032d10
mov edi, eax
test eax, eax
jne 0x140087220
add rsi, 2
cmp rsi, 0xa
jl 0x140087190
mov rdx, r14
mov rcx, rbp
call fcn.140035200
mov edi, eax
test eax, eax
jne 0x140087220
mov rcx, r14
call fcn.14002c460
mov edi, eax
test eax, eax
jne 0x140087220
mov rcx, r14
call fcn.14002ae00
mov edx, eax
mov rcx, rbp
call fcn.14002ad70
mov rax, qword [r14 + 8]
lea r9d, [rdi + 1]
mov r8d, r13d
mov rcx, rbp
mov edx, dword [rax + 0x34]
call fcn.14002ab30
mov edi, eax
jmp 0x140087220
mov edi, 7
mov eax, dword [rsp + 0x28]
mov edx, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r8d, edx
mov eax, dword [rsp + 0x2c]
mov rcx, rbp
mov dword [rbx + 0x68], eax
mov eax, dword [rsp + 0x30]
lea r9d, [rdx + 2]
mov dword [rbx + 0x6c], eax
movzx eax, byte [rsp + 0x98]
mov byte [rbx + 0x5c], al
mov byte [rbx + 0xa8], 0
call fcn.14002ab30
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
mov byte [rbx + 0x53], 1
test r15, r15
je 0x140087294
mov rcx, qword [r15 + 8]
call fcn.14002a6d0
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.14005ac60
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret