Function at 0x140088a80
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14013c0e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
movsxd rdi, r8d
mov r15, r9
mov rbx, rdx
mov rsi, rcx
lea r12d, [rbp + 1]
mov r13d, r12d
cmp byte [rdx + 0x65], bpl
jne 0x140088acf
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140025608
mov eax, r12d
jmp 0x140088f01
cmp dword [rdx + 0xd8], r12d
jle 0x140088ae1
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x140088ac2
mov r14d, dword [rdx + 0x4c]
test r15, r15
je 0x140088b1b
mov rcx, r15
call fcn.140048cc8
cmp eax, 3
je 0x140088b06
lea r8, str.non_text_filename
mov rdx, rbx
mov rcx, rsi
jmp 0x140088ac2
mov rcx, r15
call fcn.140048cb0
and dword [rbx + 0x4c], 0xfffffffe
mov r9, rax
or dword [rbx + 0x4c], 6
jmp 0x140088b22
lea r9, [0x1401187d3]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x78]
mov dword [rsp + 0x2c], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rdx
mov rdx, qword [rbx + 0x80]
mov qword [rsp + 0x40], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x50], rdx
mov dl, byte [rbx + 0x6e]
or rax, 0x201
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
mov byte [rbx + 0x6e], bpl
mov byte [rsp + 0x20], dl
mov rdx, rdi
shl rdx, 5
mov qword [rsp + 0x30], rdx
mov rcx, qword [rdx + rax]
mov r12, qword [rdx + rax + 8]
mov qword [rsp + 0x38], rcx
mov rcx, r12
call fcn.140041484
mov rcx, rax
call fcn.140033bf4
mov dword [rsp + 0x24], eax
lea r8, str.ATTACH__Q_AS_vacuum_db
mov eax, dword [rbx + 0x28]
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], eax
call fcn.140088948
mov dword [rbx + 0x4c], r14d
mov edi, eax
test eax, eax
jne 0x140088e94
movsxd rbp, dword [rsp + 0x28]
shl rbp, 5
add rbp, qword [rbx + 0x20]
mov r14, qword [rbp + 8]
test r15, r15
je 0x140088c4e
mov rcx, r14
call fcn.140041484
mov rcx, rax
call fcn.14000b1f4
and qword [rsp + 0x58], 0
cmp qword [rax], 0
je 0x140088c30
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140024390
test eax, eax
jne 0x140088c16
cmp qword [rsp + 0x58], 0
jle 0x140088c30
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rsi
mov edi, r13d
call fcn.140025608
jmp 0x140088e94
mov rax, qword [rbx + 0x20]
or dword [rbx + 0x2c], 8
mov rdi, qword [rsp + 0x30]
movzx r13d, byte [rdi + rax + 0x10]
mov eax, dword [rbx + 0x30]
and eax, 0x38
or r13d, eax
jmp 0x140088c53
mov rdi, qword [rsp + 0x30]
mov rcx, r12
call fcn.140039f74
mov rcx, qword [rbx + 0x20]
mov dword [rsp + 0x58], eax
mov rdx, qword [rdi + rcx + 0x18]
mov rcx, r14
mov edx, dword [rdx + 0x74]
call fcn.140039d84
xor edx, edx
mov rcx, r12
call fcn.140039dc8
mov edx, eax
mov rcx, r14
call fcn.140039dc8
or r13d, 0x20
mov rcx, r14
mov edx, r13d
call fcn.140039e50
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.140088868
mov edi, eax
test eax, eax
jne 0x140088e94
mov rax, r15
mov rcx, r12
neg rax
sbb edx, edx
xor r8d, r8d
not edx
and edx, 2
call fcn.14003a774
mov edi, eax
test eax, eax
jne 0x140088e94
mov rcx, r12
call fcn.140041484
mov rcx, rax
call fcn.140034138
cmp eax, 5
jne 0x140088cf2
test r15, r15
jne 0x140088cf2
and dword [rbx + 0x74], r15d
mov rcx, r12
call fcn.140039f5c
mov edi, dword [rsp + 0x58]
mov edx, eax
mov r8d, edi
xor r9d, r9d
mov rcx, r14
call fcn.140039e94
test eax, eax
jne 0x140088e8f
cmp dword [rsp + 0x24], eax
jne 0x140088d35
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, edi
mov rcx, r14
call fcn.140039e94
test eax, eax
jne 0x140088e8f
cmp byte [rbx + 0x67], 0
jne 0x140088e8f
movsx eax, byte [rbx + 0x6a]
test al, al
jns 0x140088d4f
mov rcx, r12
call fcn.14003a0d0
mov edx, eax
mov rcx, r14
call fcn.14003a058
mov eax, dword [rsp + 0x28]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r13, qword [rsp + 0x38]
mov rdx, rsi
mov r9, r13
mov byte [rbx + 0xc4], al
mov rcx, rbx
call fcn.140088948
mov edi, eax
test eax, eax
jne 0x140088e94
mov r9, r13
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.140088948
mov edi, eax
test eax, eax
jne 0x140088e94
mov r9, r13
mov byte [rbx + 0xc4], al
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, rsi
mov rcx, rbx
call fcn.140088948
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140088e94
mov r9, r13
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rsi
mov rcx, rbx
call fcn.140088948
mov edi, eax
test eax, eax
jne 0x140088e94
xor esi, esi
lea rdi, [0x14011af28]
mov rcx, r12
movzx edx, byte [rsi + rdi]
lea r8, [rsp + 0x24]
call fcn.14004128c
movzx r8d, byte [rsi + rdi + 1]
mov rcx, r14
add r8d, dword [rsp + 0x24]
movzx edx, byte [rsi + rdi]
call fcn.1400412fc
mov edi, eax
test eax, eax
jne 0x140088e94
add rsi, 2
cmp rsi, 0xa
jl 0x140088df0
test r15, r15
jne 0x140088e45
mov rdx, r14
mov rcx, r12
call fcn.14004306c
mov edi, eax
test eax, eax
jne 0x140088e94
mov rcx, r14
call fcn.14003b2a8
mov edi, eax
test eax, eax
jne 0x140088e94
test r15, r15
jne 0x140088e94
mov rcx, r14
call fcn.14003a0d0
mov edx, eax
mov rcx, r12
call fcn.14003a058
mov rcx, r14
call fcn.140039f74
mov rcx, r14
mov r8d, eax
call fcn.140039f5c
mov edx, eax
lea r9d, [rdi + 1]
mov rcx, r12
call fcn.140039e94
mov edi, eax
jmp 0x140088e94
mov edi, 7
mov eax, dword [rsp + 0x2c]
mov r9d, 1
mov dword [rbx + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x40]
or edx, 0xffffffff
mov qword [rbx + 0x30], rax
mov rcx, r12
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x80], rax
mov al, byte [rsp + 0x20]
mov byte [rbx + 0x6e], al
mov byte [rbx + 0xc4], 0
call fcn.140039e94
mov byte [rbx + 0x65], 1
test rbp, rbp
je 0x140088ef7
mov rcx, qword [rbp + 8]
call fcn.140039cd4
and qword [rbp + 8], 0
and qword [rbp + 0x18], 0
mov rcx, rbx
call fcn.1400649d8
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400cb0f0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret