Function at 0x140065150
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x53]
test eax, eax
jne 0x1400651ad
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140062f80
mov eax, 1
jmp 0x140065746
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0xac], 1
jle 0x1400651e4
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140062f80
mov eax, 1
jmp 0x140065746
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x6c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x5c]
mov byte [rsp + 0x50], al
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
or eax, 0x10202800
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
and eax, 0xfff5ff7f
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov byte [rax + 0x5c], 0
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rax + rcx]
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.14001d5b0
mov rcx, rax
call fcn.14002e770
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x48], eax
lea r8, str.ATTACHAS_vacuum_db
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140065c30
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x1400652f7
jmp 0x140065692
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140063020
mov rcx, qword [rsp + 0x38]
call fcn.140065880
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rsp + 0x20]
call fcn.140062fd0
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140065760
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.140065760
mov edx, 0x21
mov rcx, qword [rsp + 0x20]
call fcn.14005bca0
lea r8, str.BEGIN
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140065c30
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x1400653b4
jmp 0x140065692
mov edx, 2
mov rcx, qword [rsp + 0x38]
call fcn.140028c30
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x1400653d3
jmp 0x140065692
mov rcx, qword [rsp + 0x38]
call fcn.14001d5b0
mov rcx, rax
call fcn.140024b90
cmp eax, 5
jne 0x1400653f9
mov rax, qword [rsp + 0x98]
mov dword [rax + 0x60], 0
mov rcx, qword [rsp + 0x38]
call fcn.140027bc0
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.14002e380
test eax, eax
jne 0x140065453
cmp dword [rsp + 0x44], 0
jne 0x140065443
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x98]
mov edx, dword [rax + 0x60]
mov rcx, qword [rsp + 0x20]
call fcn.14002e380
test eax, eax
jne 0x140065453
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x55]
test eax, eax
je 0x140065460
mov dword [rsp + 0x2c], 7
jmp 0x140065692
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax + 0x58]
test eax, eax
jl 0x140065482
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax + 0x58]
mov dword [rsp + 0x70], eax
jmp 0x140065490
mov rcx, qword [rsp + 0x38]
call fcn.1400659f0
mov dword [rsp + 0x70], eax
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
call fcn.140065900
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rsp + 0x48]
mov byte [rax + 0xa8], cl
mov r9, qword [rsp + 0x60]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140065d20
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x1400654e2
jmp 0x140065692
mov r9, qword [rsp + 0x60]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140065d20
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140065513
jmp 0x140065692
mov rax, qword [rsp + 0x98]
mov byte [rax + 0xa8], 0
mov r9, qword [rsp + 0x60]
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, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140065d20
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x2c]
btr eax, 0x1c
mov rcx, qword [rsp + 0x98]
mov dword [rcx + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14006556d
jmp 0x140065692
mov r9, qword [rsp + 0x60]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140065d20
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14006559e
jmp 0x140065692
mov dword [rsp + 0x68], 0
jmp 0x1400655b3
mov eax, dword [rsp + 0x68]
add eax, 2
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xa
jge 0x140065624
movsxd rax, dword [rsp + 0x68]
lea rcx, [0x1400dceb0]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0x6c]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.14002e0a0
mov eax, dword [rsp + 0x68]
inc eax
cdqe
lea rcx, [0x1400dceb0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x68]
lea rdx, [0x1400dceb0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x20]
call fcn.14002e160
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140065622
jmp 0x140065692
jmp 0x1400655a8
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
call fcn.140065a70
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140065640
jmp 0x140065692
mov rcx, qword [rsp + 0x20]
call fcn.140063020
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140065657
jmp 0x140065692
mov rcx, qword [rsp + 0x20]
call fcn.1400659f0
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140065900
mov rcx, qword [rsp + 0x20]
call fcn.140027bc0
mov r9d, 1
mov r8d, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.14002e380
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x98]
mov byte [rax + 0xa8], 0
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x68], ecx
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x6c], ecx
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rsp + 0x50]
mov byte [rax + 0x5c], cl
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call fcn.14002e380
mov rax, qword [rsp + 0x98]
mov byte [rax + 0x53], 1
cmp qword [rsp + 0x58], 0
je 0x140065735
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
call fcn.140030f90
mov rax, qword [rsp + 0x58]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0x98]
call fcn.14005d260
mov eax, dword [rsp + 0x2c]
add rsp, 0x88
ret