Function at 0x14012eaa0
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 [0x1401b7680]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x1401c54bb]
call fcn.140080d02
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 0x14012eb3b
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x2a0]
call fcn.140132f60
mov eax, 1
jmp 0x14012f0f8
mov rax, qword [rbp + 0x2a8]
cmp dword [rax + 0xa4], 1
jle 0x14012eb6f
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x2a0]
call fcn.140132f60
mov eax, 1
jmp 0x14012f0f8
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.1400fb4d0
mov rcx, rax
call fcn.14011fbd0
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.140135d50
test eax, eax
je 0x14012ec59
lea rax, str.ATTACH_:memory:_AS_vacuum_db_
mov qword [rbp + 0x68], rax
jmp 0x14012ec64
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.1400c7090
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x2a8]
mov ecx, dword [rbp + 0x164]
cmp dword [rax + 0x28], ecx
jle 0x14012ecb4
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 0x14012ecbf
jmp 0x14012f047
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.1400f6d30
mov rcx, qword [rbp + 0x28]
call fcn.1400f8650
mov dword [rbp + 0x144], eax
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400c7090
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ed25
jmp 0x14012f047
lea r8, str.BEGIN_
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x2a8]
call fcn.1400c7090
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ed4d
jmp 0x14012f047
mov edx, 2
mov rcx, qword [rbp + 0x28]
call fcn.1400f6230
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ed69
jmp 0x14012f047
mov rcx, qword [rbp + 0x28]
call fcn.1400fb4d0
mov rcx, rax
call fcn.14011fb80
cmp eax, 5
jne 0x14012ed8d
mov rax, qword [rbp + 0x2a8]
mov dword [rax + 0x58], 0
mov rcx, qword [rbp + 0x28]
call fcn.1400f8600
xor r9d, r9d
mov r8d, dword [rbp + 0x144]
mov edx, eax
mov rcx, qword [rbp + 0x48]
call fcn.1400fc000
test eax, eax
jne 0x14012ede8
cmp dword [rbp + 0x124], 0
jne 0x14012edd9
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.1400fc000
test eax, eax
jne 0x14012ede8
mov rax, qword [rbp + 0x2a8]
movzx eax, byte [rax + 0x50]
test eax, eax
je 0x14012edf4
mov dword [rbp + 4], 7
jmp 0x14012f047
mov rax, qword [rbp + 0x2a8]
movsx eax, byte [rax + 0x52]
test eax, eax
jl 0x14012ee16
mov rax, qword [rbp + 0x2a8]
movsx eax, byte [rax + 0x52]
mov dword [rbp + 0x274], eax
jmp 0x14012ee25
mov rcx, qword [rbp + 0x28]
call fcn.1400f8380
mov dword [rbp + 0x274], eax
mov edx, dword [rbp + 0x274]
mov rcx, qword [rbp + 0x48]
call fcn.1400fbd90
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.1400c6f20
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ee5c
jmp 0x14012f047
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.1400c6f20
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ee84
jmp 0x14012f047
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.1400c6f20
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012eeac
jmp 0x14012f047
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.1400c6f20
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012eed4
jmp 0x14012f047
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.1400c6f20
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012eefc
jmp 0x14012f047
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.1400c6f20
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ef24
jmp 0x14012f047
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.1400c7090
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012ef4c
jmp 0x14012f047
mov dword [rbp + 0x1a4], 0
jmp 0x14012ef67
mov eax, dword [rbp + 0x1a4]
add eax, 2
mov dword [rbp + 0x1a4], eax
cmp dword [rbp + 0x1a4], 0xa
jge 0x14012efe3
movsxd rax, dword [rbp + 0x1a4]
lea rcx, [0x14018abb0]
movzx eax, byte [rcx + rax]
lea r8, [rbp + 0x184]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400f8550
mov eax, dword [rbp + 0x1a4]
inc eax
cdqe
lea rcx, [0x14018abb0]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x184]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 0x1a4]
lea rdx, [0x14018abb0]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rbp + 0x48]
call fcn.1400fc640
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012efde
jmp 0x14012f047
jmp 0x14012ef58
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.1400f6fd0
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012effb
jmp 0x14012f047
mov rcx, qword [rbp + 0x48]
call fcn.1400f6d30
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14012f00f
jmp 0x14012f047
mov rcx, qword [rbp + 0x48]
call fcn.1400f8380
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400fbd90
mov rcx, qword [rbp + 0x48]
call fcn.1400f8600
mov r9d, 1
mov r8d, dword [rbp + 0x144]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400fc000
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.1400fc000
mov rax, qword [rbp + 0x2a8]
mov byte [rax + 0x4e], 1
cmp qword [rbp + 0x108], 0
je 0x14012f0e9
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax + 8]
call fcn.1400f69e0
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.14012c910
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140193750]
call fcn.140080ab4
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.14008064a
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret