Function at 0x1401dcd70
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
cmp byte [rdx + 0x65], 0
movsxd rdi, r8d
mov r13, rcx
mov r14, rdx
mov rbp, r9
lea r8, str.cannot_VACUUM_from_within_a_transaction
je 0x1401dcdc8
cmp dword [rdx + 0xd8], 1
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
jg 0x1401dcdc8
mov ebx, dword [rdx + 0x4c]
test r9, r9
je 0x1401dcdf6
mov rcx, r9
call fcn.1401ff5c0
cmp eax, 3
je 0x1401dcdde
lea r8, str.non_text_filename
mov rdx, r14
mov rcx, r13
mov r15d, 1
call fcn.1401e1120
jmp 0x1401dd2e8
call fcn.1401ff580
mov r9, rax
mov eax, dword [r14 + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [r14 + 0x4c], eax
jmp 0x1401dcdfd
lea r9, [0x14028e13e]
mov rax, qword [r14 + 0x30]
shl rdi, 5
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x28], rdi
lea r8, str.ATTACH__Q_AS_vacuum_db
xor esi, esi
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 0x2c]
mov dword [rsp + 0x38], eax
mov rax, qword [r14 + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x80]
mov qword [rsp + 0x48], rax
mov al, byte [r14 + 0x6e]
mov byte [r14 + 0x6e], 0
mov byte [rsp + 0x57], al
mov eax, dword [rsp + 0x38]
or eax, 6
mov dword [r14 + 0x2c], eax
movabs rax, 0xfffffffeefffafff
and rax, qword [rsp + 0x30]
or rax, 0x201
mov qword [r14 + 0x30], rax
mov rax, qword [r14 + 0x20]
add rax, rdi
mov r12, qword [rax + 8]
mov rdi, qword [rax]
mov rax, qword [r12 + 8]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
mov eax, dword [r14 + 0x28]
mov dword [rsp + 0x3c], eax
call fcn.140170460
mov dword [r14 + 0x4c], ebx
mov r15d, eax
test eax, eax
jne 0x1401dd273
movsxd rsi, dword [rsp + 0x3c]
shl rsi, 5
add rsi, qword [r14 + 0x20]
mov rbx, qword [rsi + 8]
test rbp, rbp
je 0x1401dcf2d
mov rax, qword [rbx + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov qword [rsp + 0x68], 0
cmp qword [rcx], 0
je 0x1401dcf0a
lea rdx, [rsp + 0x68]
call fcn.1401d0bc0
test eax, eax
jne 0x1401dceed
cmp qword [rsp + 0x68], 0
jle 0x1401dcf0a
lea r8, str.output_file_already_exists
mov rdx, r14
mov rcx, r13
mov r15d, 1
call fcn.1401e1120
jmp 0x1401dd273
mov rax, qword [r14 + 0x20]
mov rcx, qword [rsp + 0x28]
mov edx, dword [r14 + 0x30]
or dword [r14 + 0x2c], 8
movzx r8d, byte [rax + rcx + 0x10]
and edx, 0x38
or r8d, edx
mov r15d, r8d
jmp 0x1401dcf33
mov r15d, 1
mov rcx, r12
call fcn.1401b40f0
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x50], eax
mov rax, qword [r14 + 0x20]
mov rax, qword [rax + rcx + 0x18]
mov rcx, rbx
mov edx, dword [rax + 0x74]
call fcn.1401b5e30
xor edx, edx
mov rcx, r12
call fcn.1401b5ff0
mov rcx, rbx
mov edx, eax
call fcn.1401b5ff0
mov edx, r15d
mov rcx, rbx
or edx, 0x20
call fcn.1401b5f40
lea r8, str.BEGIN
mov rdx, r13
mov rcx, r14
call fcn.140170370
mov r15d, eax
test eax, eax
jne 0x1401dd273
test rbp, rbp
mov eax, 2
mov rcx, r12
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
call fcn.1401b2fe0
mov r15d, eax
test eax, eax
jne 0x1401dd273
mov rax, qword [r12 + 8]
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x1401dcfd7
test rbp, rbp
jne 0x1401dcfd7
mov dword [r14 + 0x74], 0
mov edx, dword [rax + 0x34]
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov r15d, 7
call fcn.1401b5e80
test eax, eax
jne 0x1401dd273
movabs rax, 0xff000000ff
test qword [rsp + 0x58], rax
je 0x1401dd01b
cmp byte [r14 + 0x67], 0
mov r15d, 7
je 0x1401dd03e
jmp 0x1401dd273
mov edx, dword [r14 + 0x74]
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov r15d, 7
call fcn.1401b5e80
test eax, eax
je 0x1401dd009
jmp 0x1401dd273
movsx edx, byte [r14 + 0x6a]
test dl, dl
jns 0x1401dd051
mov rcx, r12
call fcn.1401b4020
mov edx, eax
mov rcx, rbx
call fcn.1401b5dd0
mov al, byte [rsp + 0x3c]
mov r9, rdi
mov rdx, r13
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rcx, r14
mov byte [r14 + 0xc4], al
call fcn.140170460
mov r15d, eax
test eax, eax
jne 0x1401dd273
mov r9, rdi
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r13
mov rcx, r14
call fcn.140170460
mov r15d, eax
test eax, eax
jne 0x1401dd273
mov r9, rdi
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, r13
mov rcx, r14
mov byte [r14 + 0xc4], 0
call fcn.140170460
and dword [r14 + 0x2c], 0xfffffffb
mov r15d, eax
test eax, eax
jne 0x1401dd273
mov r9, rdi
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r13
mov rcx, r14
call fcn.140170460
mov r15d, eax
test eax, eax
jne 0x1401dd273
lea r13, [0x14029af10]
lea rdi, [rsp + 0x64]
movzx r15d, byte [r13]
mov r8, rdi
mov rcx, r12
mov edx, r15d
call fcn.1401b4090
movzx r8d, byte [r13 + 1]
mov edx, r15d
mov rcx, rbx
add r8d, dword [rsp + 0x64]
call fcn.1401b63e0
mov r15d, eax
test eax, eax
jne 0x1401dd273
add r13, 2
lea rax, [0x14029af1a]
cmp rax, r13
jne 0x1401dd0fd
test rbp, rbp
je 0x1401dd15d
mov rcx, rbx
call fcn.1401b3800
mov r15d, eax
test eax, eax
je 0x1401dd239
jmp 0x1401dd273
mov rcx, r12
lea r13, [rsp + 0x68]
call fcn.1401b3fb0
mov rcx, rbx
call fcn.1401b3fb0
mov rax, qword [r12 + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
cmp qword [rcx], 0
je 0x1401dd1b1
mov rdx, qword [rbx + 8]
mov r8, r13
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x68], rax
call fcn.1401d0b90
mov r15d, eax
test eax, eax
je 0x1401dd1b1
cmp eax, 0xc
jne 0x1401dd21f
xor eax, eax
mov ecx, 0x12
mov rdi, r13
mov edx, 0x7fffffff
rep stosd dword [rdi], eax
mov rcx, r13
mov rax, qword [rbx]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x80], 1
call fcn.1401f67a0
mov rcx, r13
call fcn.1401f6550
mov r15d, eax
test eax, eax
jne 0x1401dd208
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
jmp 0x1401dd21f
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1401dd21f
call fcn.1401a1500
mov rcx, rbx
call fcn.1401b4de0
mov rcx, r12
call fcn.1401b4de0
test r15d, r15d
jne 0x1401dd273
jmp 0x1401dd145
test rbp, rbp
jne 0x1401dd273
mov rcx, rbx
call fcn.1401b4020
mov rcx, r12
mov edx, eax
call fcn.1401b5dd0
mov rcx, rbx
call fcn.1401b40f0
mov r9d, 1
mov rcx, r12
mov r8d, eax
mov rax, qword [rbx + 8]
mov edx, dword [rax + 0x34]
call fcn.1401b5e80
mov r15d, eax
mov eax, dword [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
mov byte [r14 + 0xc4], 0
mov rcx, r12
mov dword [r14 + 0x2c], eax
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x78], rax
mov rax, qword [rsp + 0x48]
mov qword [r14 + 0x80], rax
mov al, byte [rsp + 0x57]
mov byte [r14 + 0x6e], al
call fcn.1401b5e80
mov byte [r14 + 0x65], 1
test rsi, rsi
je 0x1401dd2e0
mov rcx, qword [rsi + 8]
call fcn.1401b36d0
mov qword [rsi + 8], 0
mov qword [rsi + 0x18], 0
mov rcx, r14
call fcn.1401dc140
mov eax, r15d
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret