Function at 0x1400860a0
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 0x1400860d1
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140012a40
lea eax, [r15 + 1]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
cmp dword [rdx + 0xac], 1
jle 0x1400860f4
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140012a40
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 + 0x88], 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 dword [rsp + 0x20], eax
call fcn.140085d90
mov edi, eax
test eax, eax
jne 0x1400863f0
mov r15, r14
shl r15, 5
add r15, qword [rbx + 0x20]
mov r14, qword [r15 + 8]
mov rcx, r14
call fcn.140028f40
cmp byte [rbp + 0x11], dil
je 0x1400861b7
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], dil
jne 0x1400861b7
mov rcx, rbp
call fcn.140024fb0
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x30]
sub ecx, dword [rax + 0x34]
cmp byte [rbp + 0x11], 0
mov dword [rsp + 0x98], ecx
je 0x1400861dc
sub dword [rbp + 0x14], 1
jne 0x1400861dc
mov rcx, rbp
call fcn.140024f80
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + r13 + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r14
call fcn.1400277a0
xor edx, edx
mov rcx, rbp
call fcn.140027830
mov edx, eax
mov rcx, r14
call fcn.140027830
mov edx, 0x21
mov rcx, r14
call fcn.1400278f0
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.140085d90
mov edi, eax
test eax, eax
jne 0x1400863f0
lea edx, [rax + 2]
mov rcx, rbp
call fcn.140027f50
mov edi, eax
test eax, eax
jne 0x1400863f0
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140086252
mov dword [rbx + 0x60], edi
mov rax, qword [rbp + 8]
xor r9d, r9d
mov r13d, dword [rsp + 0x98]
mov rcx, r14
mov r8d, r13d
mov edx, dword [rax + 0x30]
call fcn.140027950
test eax, eax
jne 0x1400863eb
cmp dword [rsp + 0x20], eax
jne 0x140086296
mov edx, dword [rbx + 0x60]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call fcn.140027950
test eax, eax
jne 0x1400863eb
cmp byte [rbx + 0x55], 0
jne 0x1400863eb
movzx eax, byte [rbx + 0x58]
test al, al
js 0x1400862ad
movsx eax, al
jmp 0x1400862b5
mov rcx, rbp
call fcn.140027b50
mov edx, eax
mov rcx, r14
call fcn.140027ac0
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.140085ef0
mov edi, eax
test eax, eax
jne 0x1400863f0
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.140085ef0
mov edi, eax
test eax, eax
jne 0x1400863f0
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.140085ef0
and dword [rbx + 0x2c], 0xefffffff
mov edi, eax
test eax, eax
jne 0x1400863f0
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.140085ef0
mov edi, eax
test eax, eax
jne 0x1400863f0
xor esi, esi
lea r12, [0x1400c79b0]
nop dword [rax + rax]
movzx edx, byte [rsi + r12]
lea r8, [rsp + 0x98]
mov rcx, rbp
call fcn.14002f390
movzx r8d, byte [rsi + r12 + 1]
mov rcx, r14
add r8d, dword [rsp + 0x98]
movzx edx, byte [rsi + r12]
call fcn.14002f420
mov edi, eax
test eax, eax
jne 0x1400863f0
add rsi, 2
cmp rsi, 0xa
jl 0x140086360
mov rdx, r14
mov rcx, rbp
call fcn.140031ba0
mov edi, eax
test eax, eax
jne 0x1400863f0
mov rcx, r14
call fcn.140028f40
mov edi, eax
test eax, eax
jne 0x1400863f0
mov rcx, r14
call fcn.140027b50
mov edx, eax
mov rcx, rbp
call fcn.140027ac0
mov rax, qword [r14 + 8]
lea r9d, [rdi + 1]
mov r8d, r13d
mov rcx, rbp
mov edx, dword [rax + 0x30]
call fcn.140027950
mov edi, eax
jmp 0x1400863f0
mov edi, 7
mov eax, dword [rsp + 0x28]
or r8d, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r9d, 1
mov eax, dword [rsp + 0x2c]
or edx, r8d
mov dword [rbx + 0x68], eax
mov rcx, rbp
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x6c], eax
movzx eax, byte [rsp + 0x88]
mov byte [rbx + 0x5c], al
mov byte [rbx + 0xa8], 0
call fcn.140027950
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 0x140086465
mov rcx, qword [r15 + 8]
call fcn.140027680
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.1400588c0
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret