Function at 0x140071a70
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x60
xor r14d, r14d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x5f], r14b
jne 0x140071aa1
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140075db0
lea eax, [r14 + 1]
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret
cmp dword [rdx + 0xbc], 1
jle 0x140071ac4
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140075db0
mov eax, 1
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret
mov eax, dword [rdx + 0x30]
movzx ecx, word [rdx + 0x2c]
or dword [rdx + 0x2c], 6
mov dword [rsp + 0x2c], eax
and eax, 0xffffaf7f
mov word [rsp + 0x98], cx
or eax, 0x201
mov ecx, dword [rdx + 0x74]
mov dword [rdx + 0x30], eax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x80], rbp
mov dword [rsp + 0x30], ecx
mov ecx, dword [rdx + 0x78]
mov dword [rsp + 0x34], ecx
movzx ecx, byte [rdx + 0x68]
mov byte [rdx + 0x68], r14b
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], r15
movsxd r15, dword [rdx + 0x28]
mov rdx, rsi
mov dword [rsp + 0x28], r15d
mov rbp, qword [rax + r13 + 8]
mov r12, qword [rax + r13]
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rbx
mov dword [rsp + 0x24], eax
call fcn.14002e300
mov edi, eax
test eax, eax
jne 0x140071dbc
mov r14, r15
shl r14, 5
add r14, qword [rbx + 0x20]
mov r15, qword [r14 + 8]
mov rcx, r15
call fcn.14004e690
cmp byte [rbp + 0x11], dil
je 0x140071b97
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], dil
jne 0x140071b97
mov rcx, rbp
call fcn.1400249b0
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x30]
sub ecx, dword [rax + 0x34]
cmp byte [rbp + 0x11], 0
mov dword [rsp + 0x20], ecx
je 0x140071bb9
sub dword [rbp + 0x14], 1
jne 0x140071bb9
mov rcx, rbp
call fcn.140090730
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + r13 + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r15
call fcn.140050df0
xor edx, edx
mov rcx, rbp
call fcn.140050fc0
mov edx, eax
mov rcx, r15
call fcn.140050fc0
mov edx, 0x21
mov rcx, r15
call fcn.140050f60
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.14002e300
mov edi, eax
test eax, eax
jne 0x140071dbc
lea edx, [rax + 2]
mov rcx, rbp
call fcn.14004e0b0
mov edi, eax
test eax, eax
jne 0x140071dbc
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140071c2f
mov dword [rbx + 0x6c], edi
mov rax, qword [rbp + 8]
xor r9d, r9d
mov r13d, dword [rsp + 0x20]
mov rcx, r15
mov r8d, r13d
mov edx, dword [rax + 0x30]
call fcn.140050e80
test eax, eax
jne 0x140071db7
cmp dword [rsp + 0x24], eax
jne 0x140071c70
mov edx, dword [rbx + 0x6c]
xor r9d, r9d
mov r8d, r13d
mov rcx, r15
call fcn.140050e80
test eax, eax
jne 0x140071db7
cmp byte [rbx + 0x61], 0
jne 0x140071db7
movzx eax, byte [rbx + 0x64]
test al, al
js 0x140071c87
movsx eax, al
jmp 0x140071c8f
mov rcx, rbp
call fcn.14004ef80
mov edx, eax
mov rcx, r15
call fcn.140050d60
mov eax, dword [rsp + 0x28]
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 + 0xb4], al
mov rdx, rsi
mov rcx, rbx
call fcn.14002e410
mov edi, eax
test eax, eax
jne 0x140071dbc
mov r9, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.14002e410
mov edi, eax
test eax, eax
jne 0x140071dbc
mov r9, r12
mov byte [rbx + 0xb4], 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.14002e410
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140071dbc
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.14002e410
mov edi, eax
test eax, eax
jne 0x140071dbc
xor esi, esi
lea r12, [0x14016d1a0]
movzx edx, byte [rsi + r12]
lea r8, [rsp + 0x28]
mov rcx, rbp
call fcn.14004efe0
movzx r8d, byte [rsi + r12 + 1]
mov rcx, r15
add r8d, dword [rsp + 0x28]
movzx edx, byte [rsi + r12]
call fcn.140051440
mov edi, eax
test eax, eax
jne 0x140071dbc
add rsi, 2
cmp rsi, 0xa
jl 0x140071d32
mov rdx, r15
mov rcx, rbp
call fcn.14004e860
mov edi, eax
test eax, eax
jne 0x140071dbc
mov rcx, r15
call fcn.14004e690
mov edi, eax
test eax, eax
jne 0x140071dbc
mov rcx, r15
call fcn.14004ef80
mov edx, eax
mov rcx, rbp
call fcn.140050d60
mov rax, qword [r15 + 8]
lea r9d, [rdi + 1]
mov r8d, r13d
mov rcx, rbp
mov edx, dword [rax + 0x30]
call fcn.140050e80
mov edi, eax
jmp 0x140071dbc
mov edi, 7
movzx eax, word [rsp + 0x98]
or r8d, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r9d, 1
mov eax, dword [rsp + 0x2c]
or edx, r8d
mov dword [rbx + 0x30], eax
mov rcx, rbp
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x74], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x78], eax
movzx eax, byte [rsp + 0x88]
mov byte [rbx + 0x68], al
mov byte [rbx + 0xb4], 0
call fcn.140050e80
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
mov byte [rbx + 0x5f], 1
test r14, r14
je 0x140071e3c
mov rcx, qword [r14 + 8]
call fcn.14004e480
mov qword [r14 + 8], 0
mov qword [r14 + 0x18], 0
mov rcx, rbx
call fcn.1400707b0
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret