Function at 0x140096910
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x5f]
test eax, eax
jne 0x140096972
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400796b0
mov eax, 1
jmp 0x1400970fc
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0xc8], 1
jle 0x1400969a9
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400796b0
mov eax, 1
jmp 0x1400970fc
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0xc8], 0
je 0x140096a48
mov rcx, qword [rsp + 0xc8]
call fcn.140060250
cmp eax, 3
je 0x1400969ff
lea r8, str.non_text_filename
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400796b0
mov eax, 1
jmp 0x1400970fc
mov rcx, qword [rsp + 0xc8]
call fcn.140060190
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4c]
and eax, 0xfffffffe
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x4c]
or eax, 6
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x4c], eax
jmp 0x140096a57
lea rax, [0x14015adb7]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x78]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x68]
mov byte [rsp + 0x24], al
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x30]
or rax, 0x201
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x2c]
or eax, 6
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0xb8]
movabs rcx, 0xfffffffeefffafff
mov rax, qword [rax + 0x30]
and rax, rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0x68], 0
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.14006c8c0
mov rcx, rax
call fcn.140073610
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x58], eax
mov r9, qword [rsp + 0x80]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14010cb50
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x68]
mov dword [rax + 0x4c], ecx
cmp dword [rsp + 0x20], 0
je 0x140096bbb
jmp 0x140097037
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
add rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0xc8], 0
je 0x140096c8c
mov rcx, qword [rsp + 0x30]
call fcn.14006c8c0
mov rcx, rax
call fcn.140073560
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x88]
cmp qword [rax], 0
je 0x140096c73
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.1400745e0
test eax, eax
jne 0x140096c4a
cmp qword [rsp + 0x90], 0
jle 0x140096c73
mov dword [rsp + 0x20], 1
lea r8, str.output_file_already_exists
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400796b0
jmp 0x140097037
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x2c]
or eax, 8
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x2c], eax
mov rcx, qword [rsp + 0x38]
call fcn.1400691f0
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0xc0]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov edx, dword [rax + 0x74]
mov rcx, qword [rsp + 0x30]
call fcn.140068e20
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140068e70
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.140068e70
mov edx, 0x21
mov rcx, qword [rsp + 0x30]
call fcn.140068f20
lea r8, str.BEGIN
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14010ca20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096d17
jmp 0x140097037
cmp qword [rsp + 0xc8], 0
jne 0x140096d2c
mov dword [rsp + 0x50], 2
jmp 0x140096d34
mov dword [rsp + 0x50], 0
xor r8d, r8d
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140069440
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096d55
jmp 0x140097037
mov rcx, qword [rsp + 0x38]
call fcn.14006c8c0
mov rcx, rax
call fcn.140071cf0
cmp eax, 5
jne 0x140096d7b
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x6c], 0
mov rcx, qword [rsp + 0x38]
call fcn.1400690b0
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.140068f70
test eax, eax
jne 0x140096dd5
cmp dword [rsp + 0x6c], 0
jne 0x140096dc5
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rax, qword [rsp + 0xb8]
mov edx, dword [rax + 0x6c]
mov rcx, qword [rsp + 0x30]
call fcn.140068f70
test eax, eax
jne 0x140096dd5
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax + 0x61]
test eax, eax
je 0x140096de2
mov dword [rsp + 0x20], 7
jmp 0x140097037
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax + 0x64]
test eax, eax
jl 0x140096e04
mov rax, qword [rsp + 0xb8]
movsx eax, byte [rax + 0x64]
mov dword [rsp + 0x54], eax
jmp 0x140096e12
mov rcx, qword [rsp + 0x38]
call fcn.140069390
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
call fcn.1400692a0
mov rax, qword [rsp + 0xb8]
movzx ecx, byte [rsp + 0x58]
mov byte [rax + 0xb4], 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 + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14010cb50
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096e64
jmp 0x140097037
mov r9, qword [rsp + 0x60]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14010cb50
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096e95
jmp 0x140097037
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0xb4], 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 + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14010cb50
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x2c]
and eax, 0xfffffffb
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x2c], eax
cmp dword [rsp + 0x20], 0
je 0x140096eee
jmp 0x140097037
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 + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.14010cb50
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096f1f
jmp 0x140097037
mov dword [rsp + 0x28], 0
jmp 0x140096f34
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jge 0x140096fa8
movsxd rax, dword [rsp + 0x28]
lea rcx, [0x140136ff8]
movzx eax, byte [rcx + rax]
lea r8, [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.14006a540
mov eax, dword [rsp + 0x28]
inc eax
cdqe
lea rcx, [0x140136ff8]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x28]
lea rdx, [0x140136ff8]
movzx ecx, byte [rdx + rcx]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x30]
call fcn.14006a5e0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096fa6
jmp 0x140097037
jmp 0x140096f29
cmp qword [rsp + 0xc8], 0
jne 0x140096fc6
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.14006a040
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096fcf
jmp 0x140097037
mov rcx, qword [rsp + 0x30]
call fcn.140069a80
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140096fe6
jmp 0x140097037
cmp qword [rsp + 0xc8], 0
jne 0x140097007
mov rcx, qword [rsp + 0x30]
call fcn.140069390
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.1400692a0
cmp qword [rsp + 0xc8], 0
jne 0x140097037
mov rcx, qword [rsp + 0x30]
call fcn.1400690b0
mov r9d, 1
mov r8d, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140068f70
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0xb4], 0
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x98]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x74], ecx
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 0x78], ecx
mov rax, qword [rsp + 0xb8]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0x68], cl
mov r9d, 1
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140068f70
mov rax, qword [rsp + 0xb8]
mov byte [rax + 0x5f], 1
cmp qword [rsp + 0x48], 0
je 0x1400970eb
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call fcn.140068cc0
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0xb8]
call fcn.140080a20
mov eax, dword [rsp + 0x20]
add rsp, 0xa8
ret