Function at 0x1401cb720
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x70
xor r15d, r15d
movsxd rbx, r8d
mov r13, r9
mov rdi, rdx
mov rbp, rcx
cmp byte [rdx + 0x61], r15b
jne 0x1401cb75d
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.14014edb0
lea eax, [r15 + 1]
add rsp, 0x70
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], 1
jle 0x1401cb783
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.14014edb0
mov eax, 1
add rsp, 0x70
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0xb8], r14
mov r14d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1401cb829
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x215e60], 3
je 0x1401cb7cf
lea r8, str.non_text_filename
mov rdx, rdi
mov rcx, rbp
call fcn.14014edb0
mov eax, 1
jmp 0x1401cbc8c
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1401cb7f8
cmp byte [r9 + 0xa], 1
jne 0x1401cb7f8
mov r9, qword [r9 + 0x10]
mov eax, r14d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x1401cb830
test cl, 1
je 0x1401cb80e
mov eax, r14d
xor r9d, r9d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x1401cb830
mov dl, 1
mov rcx, r13
call fcn.140172ba0
mov r9, rax
mov eax, dword [rdi + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x1401cb830
lea r9, [0x14020e9cd]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x3c], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x50], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x58], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rdi + 0x20]
shl rcx, 5
mov qword [rsp + 0x60], rdx
movzx edx, byte [rdi + 0x6a]
mov byte [rdi + 0x6a], r15b
mov rbx, qword [rax + rcx + 8]
mov byte [rsp + 0xa8], dl
mov rdx, qword [rax + rcx]
mov qword [rsp + 0x40], rcx
mov rax, qword [rbx + 8]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0x48], rdx
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r15b
jne 0x1401cb8ca
mov dword [rsp + 0x28], r15d
cmp byte [rcx + 0x14], r15b
je 0x1401cb8d2
mov dword [rsp + 0x28], 1
movsxd r12, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, rbp
mov dword [rsp + 0x38], r12d
mov rcx, rdi
call fcn.1401cb580
mov dword [rdi + 0x4c], r14d
mov esi, eax
test eax, eax
jne 0x1401cbc0a
mov rax, r12
shl rax, 5
add rax, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
mov r12, qword [rax + 8]
test r13, r13
je 0x1401cb960
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x30], r15
mov rax, qword [rcx]
test rax, rax
je 0x1401cb95c
lea rdx, [rsp + 0x30]
call qword [rax + 0x30]
test eax, eax
jne 0x1401cb940
cmp qword [rsp + 0x30], r15
jle 0x1401cb95c
lea r8, str.output_file_already_exists
mov rdx, rdi
mov rcx, rbp
mov esi, 1
call fcn.14014edb0
jmp 0x1401cbc05
or dword [rdi + 0x2c], 8
mov rcx, rbx
call fcn.140165840
mov rcx, qword [rdi + 0x20]
mov r14d, eax
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov rdx, qword [rcx + rdx + 0x18]
mov rcx, r12
mov edx, dword [rdx + 0x74]
call fcn.140165480
xor edx, edx
mov rcx, rbx
call fcn.140165520
mov edx, eax
mov rcx, r12
call fcn.140165520
mov edx, 0x21
mov rcx, r12
call fcn.140165650
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rdi
call fcn.1401cb470
mov esi, eax
test eax, eax
jne 0x1401cbc05
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.140165fe0
mov esi, eax
test eax, eax
jne 0x1401cbc05
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x1401cba01
test r13, r13
jne 0x1401cba01
mov dword [rdi + 0x70], r15d
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov rcx, r12
mov r8d, r14d
call fcn.140165740
test eax, eax
jne 0x1401cbc00
cmp dword [rsp + 0x28], r15d
jne 0x1401cba3a
mov edx, dword [rdi + 0x70]
xor r9d, r9d
mov r8d, r14d
mov rcx, r12
call fcn.140165740
test eax, eax
jne 0x1401cbc00
cmp byte [rdi + 0x63], r15b
jne 0x1401cbc00
movzx eax, byte [rdi + 0x66]
test al, al
js 0x1401cba51
movsx eax, al
jmp 0x1401cba59
mov rcx, rbx
call fcn.140165a30
mov edx, eax
mov rcx, r12
call fcn.1401659a0
mov eax, dword [rsp + 0x38]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r14, qword [rsp + 0x48]
mov rdx, rbp
mov r9, r14
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1401cb580
mov esi, eax
test eax, eax
jne 0x1401cbc05
mov r9, r14
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rbp
mov rcx, rdi
call fcn.1401cb580
mov esi, eax
test eax, eax
jne 0x1401cbc05
mov r9, r14
mov byte [rdi + 0xc4], r15b
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, rbp
mov rcx, rdi
call fcn.1401cb580
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1401cbc05
mov r9, r14
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rbp
mov rcx, rdi
call fcn.1401cb580
mov esi, eax
test eax, eax
jne 0x1401cbc05
xor r14d, r14d
lea rbp, [0x140000000]
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rbx + 0x11]
movzx esi, byte [r14 + rbp + 0x210d20]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x1401cbb3d
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1401cbb3d
mov rcx, rbx
call fcn.140162c20
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x1401cbb50
mov rax, qword [r15]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x1401cbb64
mov rax, qword [r15 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x1401cbb77
sub dword [rbx + 0x14], 1
jne 0x1401cbb77
mov rcx, rbx
call fcn.140162bf0
movzx r8d, byte [r14 + rbp + 0x210d21]
mov rcx, r12
movzx edx, byte [r14 + rbp + 0x210d20]
add r8d, esi
call fcn.14016f6e0
mov esi, eax
test eax, eax
jne 0x1401cbc05
add r14, 2
cmp r14, 0xa
jl 0x1401cbb10
test r13, r13
jne 0x1401cbbbe
mov rdx, r12
mov rcx, rbx
call fcn.1401715e0
mov esi, eax
test eax, eax
jne 0x1401cbc05
mov rcx, r12
call fcn.140167530
mov esi, eax
test eax, eax
jne 0x1401cbc05
test r13, r13
jne 0x1401cbc05
mov rcx, r12
call fcn.140165a30
mov edx, eax
mov rcx, rbx
call fcn.1401659a0
mov rax, qword [r12 + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov edx, dword [rax + 0x34]
call fcn.140165740
mov esi, eax
jmp 0x1401cbc05
mov esi, 7
mov r15, qword [rsp + 0x20]
mov eax, dword [rsp + 0x3c]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x58]
lea edx, [r9 - 2]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0xa8]
mov byte [rdi + 0x6a], al
mov byte [rdi + 0xc4], 0
call fcn.140165740
mov r12, qword [rsp + 0xb0]
mov byte [rdi + 0x61], 1
test r15, r15
je 0x1401cbc7a
mov rcx, qword [r15 + 8]
call fcn.1401652e0
xor eax, eax
mov qword [r15 + 8], rax
mov qword [r15 + 0x18], rax
mov rcx, rdi
call fcn.14019a320
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret