Function at 0x1402a6610
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
movsxd rbx, r8d
mov r15, r9
mov rdi, rdx
mov r14, rcx
cmp byte [rdx + 0x65], r12b
jne 0x1402a668e
lea edx, [r12 + 0x28]
mov rcx, rdi
call fcn.140284060
mov rbx, rax
test rax, rax
je 0x1402a6669
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140372b98]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140372ba8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x1402a6679
mov rcx, rdi
call fcn.140283ed0
mov qword [r14], rbx
mov eax, 1
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
cmp dword [rdx + 0xd8], 1
jle 0x1402a6708
mov edx, 0x2b
mov rcx, rdi
call fcn.140284060
mov rbx, rax
test rax, rax
je 0x1402a66e3
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140372bc0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140372bd0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x140372bd8]
mov word [rbx + 0x28], ax
movzx eax, byte [0x140372bda]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1402a6679
mov rcx, rdi
call fcn.140283ed0
mov eax, 1
mov qword [r14], rbx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0xa8], r13
mov r13d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r15, r15
je 0x1402a67cd
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x367cb0], 3
je 0x1402a677f
mov edx, 0x12
mov rcx, rdi
call fcn.140284060
mov rbx, rax
test rax, rax
je 0x1402a6762
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x140372bf0]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x1402a6772
mov rcx, rdi
call fcn.140283ed0
mov qword [r14], rbx
mov eax, 1
jmp 0x1402a6c63
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1402a67a4
cmp byte [r9 + 0x16], 1
jne 0x1402a67a4
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1402a67d4
test cl, 1
je 0x1402a67b6
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1402a67d4
mov dl, 1
mov rcx, r15
call fcn.1402d1ce0
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
jmp 0x1402a67d4
lea r9, [0x14036d949]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rdi + 0x80]
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov byte [rdi + 0x6e], r12b
mov byte [rsp + 0x98], dl
mov rdx, rbx
shl rdx, 5
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x38], rdx
mov rcx, qword [rax + rdx]
mov rbx, qword [rax + rdx + 8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x1402a686d
cmp byte [rcx + 0x14], r12b
jne 0x1402a686d
xor ebp, ebp
jmp 0x1402a6872
mov ebp, 1
mov eax, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.14024f6a0
mov dword [rdi + 0x4c], r13d
mov esi, eax
test eax, eax
jne 0x1402a6bde
movsxd r12, dword [rsp + 0x20]
shl r12, 5
add r12, qword [rdi + 0x20]
mov r13, qword [r12 + 8]
test r15, r15
je 0x1402a6944
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x1402a6940
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x1402a68e4
cmp qword [rsp + 0x28], 0
jle 0x1402a6940
mov esi, 1
mov rcx, rdi
lea edx, [rsi + 0x1a]
call fcn.140284060
mov rbp, rax
test rax, rax
je 0x1402a6928
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140372c20]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140372c28]
mov word [rax + 0x18], cx
movzx eax, byte [0x140372c2a]
mov byte [rbp + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1402a6938
mov rcx, rdi
call fcn.140283ed0
mov qword [r14], rbp
jmp 0x1402a6bde
or dword [rdi + 0x2c], 8
mov rcx, rbx
call fcn.14027b800
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rdx, qword [rdx + rcx + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.14027d8a0
xor edx, edx
mov rcx, rbx
call fcn.14027db40
mov edx, eax
mov rcx, r13
call fcn.14027db40
mov edx, 0x21
mov rcx, r13
call fcn.14027da40
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.14024f470
mov esi, eax
test eax, eax
jne 0x1402a6bde
xor edx, edx
mov eax, 2
test r15, r15
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.14027a180
mov esi, eax
test eax, eax
jne 0x1402a6bde
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1402a69de
test r15, r15
jne 0x1402a69de
mov dword [rdi + 0x74], r15d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x28]
mov rcx, r13
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.14027d940
test eax, eax
jne 0x1402a6bd9
test ebp, ebp
jne 0x1402a6a1c
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r13
call fcn.14027d940
test eax, eax
jne 0x1402a6bd9
cmp byte [rdi + 0x67], 0
jne 0x1402a6bd9
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x1402a6a36
mov rcx, rbx
call fcn.14027b710
mov edx, eax
mov rcx, r13
call fcn.14027d810
mov eax, dword [rsp + 0x20]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rbp, qword [rsp + 0x40]
mov rdx, r14
mov r9, rbp
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.14024f6a0
mov esi, eax
test eax, eax
jne 0x1402a6bde
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.14024f6a0
mov esi, eax
test eax, eax
jne 0x1402a6bde
mov r9, rbp
mov byte [rdi + 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, r14
mov rcx, rdi
call fcn.14024f6a0
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1402a6bde
mov r9, rbp
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r14
mov rcx, rdi
call fcn.14024f6a0
mov esi, eax
test eax, eax
jne 0x1402a6bde
xor ebp, ebp
nop word [rax + rax]
cmp byte [rbx + 0x11], 0
lea rax, [0x140000000]
movzx esi, byte [rax + rbp + 0x366278]
mov r14, qword [rbx + 8]
je 0x1402a6b0a
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1402a6b0a
mov rcx, rbx
call fcn.140245c50
cmp esi, 0xf
jne 0x1402a6b1d
mov rax, qword [r14]
mov esi, dword [rbx + 0x1c]
add esi, dword [rax + 0x84]
jmp 0x1402a6b31
mov rax, qword [r14 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
cmp byte [rbx + 0x11], 0
je 0x1402a6b45
sub dword [rbx + 0x14], 1
jne 0x1402a6b45
mov rcx, rbx
call fcn.1402cf9e0
lea rax, [0x140000000]
mov rcx, r13
movzx r8d, byte [rax + rbp + 0x366279]
movzx edx, byte [rax + rbp + 0x366278]
add r8d, esi
call fcn.14027e600
mov esi, eax
test eax, eax
jne 0x1402a6bde
add rbp, 2
cmp rbp, 0xa
jl 0x1402a6ae0
test r15, r15
jne 0x1402a6b92
mov rdx, r13
mov rcx, rbx
call fcn.14027ad50
mov esi, eax
test eax, eax
jne 0x1402a6bde
mov rcx, r13
call fcn.14027ab00
mov esi, eax
test eax, eax
jne 0x1402a6bde
test r15, r15
jne 0x1402a6bde
mov rcx, r13
call fcn.14027b710
mov edx, eax
mov rcx, rbx
call fcn.14027d810
mov rcx, r13
call fcn.14027b800
mov rcx, qword [r13 + 8]
lea r9d, [rsi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.14027d940
mov esi, eax
jmp 0x1402a6bde
mov esi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x50]
lea edx, [r9 - 2]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0x98]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.14027d940
mov rbp, qword [rsp + 0x90]
mov byte [rdi + 0x65], 1
test r12, r12
je 0x1402a6c51
mov rcx, qword [r12 + 8]
call fcn.14027a6a0
xor eax, eax
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], rax
mov rcx, rdi
call fcn.1402a5020
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret