Function at 0x140153e00
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2c8]
mov rax, qword [0x14026c6c0]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x1402830ac]
call fcn.1400b2f21
nop
mov dword [rbp + 4], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x2a8]
movzx eax, byte [rax + 0x4e]
test eax, eax
jne 0x140153e9d
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x2a0]
call fcn.1401583a0
nop
mov eax, 1
jmp 0x140154462
mov rax, qword [rbp + 0x2a8]
cmp dword [rax + 0xa4], 1
jle 0x140153ed2
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x2a0]
call fcn.1401583a0
nop
mov eax, 1
jmp 0x140154462
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x2c]
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x60]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x64]
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x2a8]
mov rax, qword [rax + 0xc0]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x2c]
or eax, 0x202800
mov rcx, qword [rbp + 0x2a8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x2c]
and eax, 0xfff5ffff
mov rcx, qword [rbp + 0x2a8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbp + 0x2a8]
mov qword [rax + 0xc0], 0
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.140120000
mov rcx, rax
call fcn.140144c70
mov dword [rbp + 0x124], eax
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x28]
mov dword [rbp + 0x164], eax
mov rcx, qword [rbp + 0x2a8]
call fcn.14015b1e0
test eax, eax
je 0x140153fbc
lea rax, str.ATTACH_:memory:_AS_vacuum_db_
mov qword [rbp + 0x68], rax
jmp 0x140153fc7
lea rax, str.ATTACH__AS_vacuum_db_
mov qword [rbp + 0x68], rax
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb450
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x164]
cmp dword [rax + 0x28], ecx
jle 0x140154017
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x28]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x2a8]
add rax, qword [rcx + 0x20]
mov qword [rbp + 0x108], rax
cmp dword [rbp + 4], 0
je 0x140154022
jmp 0x1401543ae
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 0x28]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x2a8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x48]
call fcn.14011b7a0
nop
mov rcx, qword [rbp + 0x28]
call fcn.14011d110
mov dword [rbp + 0x144], eax
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb450
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154089
jmp 0x1401543ae
lea r8, str.BEGIN_
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb450
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401540b1
jmp 0x1401543ae
mov edx, 2
mov rcx, qword [rbp + 0x28]
call fcn.14011ac70
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401540cd
jmp 0x1401543ae
mov rcx, qword [rbp + 0x28]
call fcn.140120000
mov rcx, rax
call fcn.140144c20
cmp eax, 5
jne 0x1401540f1
mov rax, qword [rbp + 0x2a8]
mov dword [rax + 0x58], 0
mov rcx, qword [rbp + 0x28]
call fcn.14011d0c0
xor r9d, r9d
mov r8d, dword [rbp + 0x144]
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.140120b40
test eax, eax
jne 0x14015414c
cmp dword [rbp + 0x124], 0
jne 0x14015413d
xor r9d, r9d
mov r8d, dword [rbp + 0x144]
mov rax, qword [rbp + 0x2a8]
mov edx, dword [rax + 0x58]
mov rcx, qword [rbp + 0x48]
call fcn.140120b40
test eax, eax
jne 0x14015414c
mov rax, qword [rbp + 0x2a8]
movzx eax, byte [rax + 0x50]
test eax, eax
je 0x140154158
mov dword [rbp + 4], 7
jmp 0x1401543ae
mov rax, qword [rbp + 0x2a8]
movsx eax, byte [rax + 0x52]
test eax, eax
jl 0x14015417a
mov rax, qword [rbp + 0x2a8]
movsx eax, byte [rax + 0x52]
mov dword [rbp + 0x274], eax
jmp 0x140154189
mov rcx, qword [rbp + 0x28]
call fcn.14011ce40
mov dword [rbp + 0x274], eax
mov edx, dword [rbp + 0x274]
mov rcx, qword [rbp + 0x48]
call fcn.1401208d0
nop
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb2e0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401541c1
jmp 0x1401543ae
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb2e0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401541e9
jmp 0x1401543ae
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb2e0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154211
jmp 0x1401543ae
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb2e0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154239
jmp 0x1401543ae
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb2e0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154261
jmp 0x1401543ae
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb2e0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154289
jmp 0x1401543ae
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400eb450
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401542b1
jmp 0x1401543ae
mov dword [rbp + 0x1a4], 0
jmp 0x1401542cc
mov eax, dword [rbp + 0x1a4]
add eax, 2
mov dword [rbp + 0x1a4], eax
cmp dword [rbp + 0x1a4], 0xa
jge 0x140154349
movsxd rax, dword [rbp + 0x1a4]
lea rcx, [0x14021e9e0]
movzx eax, byte [rcx + rax]
lea r8, [rbp + 0x184]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.14011d010
nop
mov eax, dword [rbp + 0x1a4]
inc eax
cdqe
lea rcx, [0x14021e9e0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x184]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 0x1a4]
lea rdx, [0x14021e9e0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rbp + 0x48]
call fcn.140121180
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154344
jmp 0x1401543ae
jmp 0x1401542bd
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.14011ba60
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154361
jmp 0x1401543ae
mov rcx, qword [rbp + 0x48]
call fcn.14011b7a0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140154375
jmp 0x1401543ae
mov rcx, qword [rbp + 0x48]
call fcn.14011ce40
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1401208d0
nop
mov rcx, qword [rbp + 0x48]
call fcn.14011d0c0
mov r9d, 1
mov r8d, dword [rbp + 0x144]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.140120b40
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x84]
mov dword [rax + 0x2c], ecx
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0xa4]
mov dword [rax + 0x60], ecx
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0xc4]
mov dword [rax + 0x64], ecx
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0xe8]
mov qword [rax + 0xc0], rcx
mov r9d, 1
mov r8d, 0xffffffff
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call fcn.140120b40
nop
mov rax, qword [rbp + 0x2a8]
mov byte [rax + 0x4e], 1
cmp qword [rbp + 0x108], 0
je 0x140154452
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 8]
call fcn.14011b430
nop
mov rax, qword [rbp + 0x108]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x108]
mov qword [rax + 0x18], 0
mov rcx, qword [rbp + 0x2a8]
call fcn.140151c20
nop
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140227590]
call fcn.1400b26b1
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.1400b1699
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret