Function at 0x14017e650
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x14022f6c0]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x140242c60]
call fcn.1400a1a40
mov dword [rbp + 4], 0
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x2c8]
movzx eax, byte [rax + 0x5f]
test eax, eax
jne 0x14017e6e8
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x2c0]
call fcn.140182f20
mov eax, 1
jmp 0x14017eca6
mov rax, qword [rbp + 0x2c8]
cmp dword [rax + 0xbc], 1
jle 0x14017e71c
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x2c0]
call fcn.140182f20
mov eax, 1
jmp 0x14017eca6
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x30]
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x2c8]
movzx eax, word [rax + 0x2c]
mov word [rbp + 0x64], ax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x74]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x78]
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x2c8]
movzx eax, byte [rax + 0x68]
mov byte [rbp + 0xe4], al
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x30]
or eax, 0x201
mov rcx, qword [rbp + 0x2c8]
mov dword [rcx + 0x30], eax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x2c]
or eax, 6
mov rcx, qword [rbp + 0x2c8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x30]
and eax, 0xffffaf7f
mov rcx, qword [rbp + 0x2c8]
mov dword [rcx + 0x30], eax
mov rax, qword [rbp + 0x2c8]
mov byte [rax + 0x68], 0
movsxd rax, dword [rbp + 0x2d0]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x2c8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x188], rax
movsxd rax, dword [rbp + 0x2d0]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x2c8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.140148790
mov rcx, rax
call fcn.1401702a0
mov dword [rbp + 0x124], eax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x28]
mov dword [rbp + 0x164], eax
lea r8, str.ATTACHAS_vacuum_db
mov rdx, qword [rbp + 0x2c0]
mov rcx, qword [rbp + 0x2c8]
call fcn.14010f580
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017e84f
jmp 0x14017ebdd
movsxd rax, dword [rbp + 0x164]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x2c8]
add rax, qword [rcx + 0x20]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov rax, qword [rax + 8]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x48]
call fcn.140143d30
mov rcx, qword [rbp + 0x28]
call fcn.1401456b0
mov dword [rbp + 0x144], eax
movsxd rax, dword [rbp + 0x2d0]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x2c8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rbp + 0x48]
call fcn.140149430
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.140149780
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.140149780
mov edx, 0x21
mov rcx, qword [rbp + 0x48]
call fcn.1401496f0
lea r8, str.BEGIN
mov rdx, qword [rbp + 0x2c0]
mov rcx, qword [rbp + 0x2c8]
call fcn.14010f580
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017e906
jmp 0x14017ebdd
mov edx, 2
mov rcx, qword [rbp + 0x28]
call fcn.140143230
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017e922
jmp 0x14017ebdd
mov rcx, qword [rbp + 0x28]
call fcn.140148790
mov rcx, rax
call fcn.140170250
cmp eax, 5
jne 0x14017e946
mov rax, qword [rbp + 0x2c8]
mov dword [rax + 0x6c], 0
mov rcx, qword [rbp + 0x28]
call fcn.140145720
xor r9d, r9d
mov r8d, dword [rbp + 0x144]
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.140149550
test eax, eax
jne 0x14017e9a1
cmp dword [rbp + 0x124], 0
jne 0x14017e992
xor r9d, r9d
mov r8d, dword [rbp + 0x144]
mov rax, qword [rbp + 0x2c8]
mov edx, dword [rax + 0x6c]
mov rcx, qword [rbp + 0x48]
call fcn.140149550
test eax, eax
jne 0x14017e9a1
mov rax, qword [rbp + 0x2c8]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x14017e9ad
mov dword [rbp + 4], 7
jmp 0x14017ebdd
mov rax, qword [rbp + 0x2c8]
movsx eax, byte [rax + 0x64]
test eax, eax
jl 0x14017e9cf
mov rax, qword [rbp + 0x2c8]
movsx eax, byte [rax + 0x64]
mov dword [rbp + 0x294], eax
jmp 0x14017e9de
mov rcx, qword [rbp + 0x28]
call fcn.140145400
mov dword [rbp + 0x294], eax
mov edx, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x48]
call fcn.1401492e0
mov rax, qword [rbp + 0x2c8]
movzx ecx, byte [rbp + 0x164]
mov byte [rax + 0xb4], cl
mov r9, qword [rbp + 0x188]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, qword [rbp + 0x2c0]
mov rcx, qword [rbp + 0x2c8]
call fcn.14010f760
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017ea30
jmp 0x14017ebdd
mov r9, qword [rbp + 0x188]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov rdx, qword [rbp + 0x2c0]
mov rcx, qword [rbp + 0x2c8]
call fcn.14010f760
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017ea5f
jmp 0x14017ebdd
mov rax, qword [rbp + 0x2c8]
mov byte [rax + 0xb4], 0
mov r9, qword [rbp + 0x188]
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 [rbp + 0x2c0]
mov rcx, qword [rbp + 0x2c8]
call fcn.14010f760
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x2c]
and eax, 0xfffffffb
mov rcx, qword [rbp + 0x2c8]
mov dword [rcx + 0x2c], eax
cmp dword [rbp + 4], 0
je 0x14017eab3
jmp 0x14017ebdd
mov r9, qword [rbp + 0x188]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, qword [rbp + 0x2c0]
mov rcx, qword [rbp + 0x2c8]
call fcn.14010f760
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017eae2
jmp 0x14017ebdd
mov dword [rbp + 0x1c4], 0
jmp 0x14017eafd
mov eax, dword [rbp + 0x1c4]
add eax, 2
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0xa
jge 0x14017eb79
movsxd rax, dword [rbp + 0x1c4]
lea rcx, [0x1401f76c0]
movzx eax, byte [rcx + rax]
lea r8, [rbp + 0x1a4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1401455d0
mov eax, dword [rbp + 0x1c4]
inc eax
cdqe
lea rcx, [0x1401f76c0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x1a4]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 0x1c4]
lea rdx, [0x1401f76c0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rbp + 0x48]
call fcn.140149b60
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017eb74
jmp 0x14017ebdd
jmp 0x14017eaee
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.140144040
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017eb91
jmp 0x14017ebdd
mov rcx, qword [rbp + 0x48]
call fcn.140143d30
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14017eba5
jmp 0x14017ebdd
mov rcx, qword [rbp + 0x48]
call fcn.140145400
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1401492e0
mov rcx, qword [rbp + 0x48]
call fcn.140145720
mov r9d, 1
mov r8d, dword [rbp + 0x144]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.140149550
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x2c8]
mov byte [rax + 0xb4], 0
movzx eax, word [rbp + 0x64]
mov rcx, qword [rbp + 0x2c8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbp + 0x2c8]
mov ecx, dword [rbp + 0x84]
mov dword [rax + 0x30], ecx
mov rax, qword [rbp + 0x2c8]
mov ecx, dword [rbp + 0xa4]
mov dword [rax + 0x74], ecx
mov rax, qword [rbp + 0x2c8]
mov ecx, dword [rbp + 0xc4]
mov dword [rax + 0x78], ecx
mov rax, qword [rbp + 0x2c8]
movzx ecx, byte [rbp + 0xe4]
mov byte [rax + 0x68], cl
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call fcn.140149550
mov rax, qword [rbp + 0x2c8]
mov byte [rax + 0x5f], 1
cmp qword [rbp + 0x108], 0
je 0x14017ec97
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 8]
call fcn.140143a00
mov rax, qword [rbp + 0x108]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x18], 0
mov rcx, qword [rbp + 0x2c8]
call fcn.14017c6b0
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140201150]
call fcn.1400a15c2
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.1400a0ca3
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret