Function at 0x140155560
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movsxd rdi, r8d
mov rbp, r9
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x50], r8
lea r14d, [r8 + 1]
cmp byte [rdx + 0x65], r8b
jne 0x1401555ea
lea edx, [r8 + 0x28]
mov rcx, rbx
call fcn.1400b9520
mov rdi, rax
test rax, rax
je 0x1401555c6
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14063d1b8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14063d1c8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401555d6
mov rcx, rbx
call fcn.1400b9000
mov qword [rsi], rdi
mov eax, r14d
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], r14d
jle 0x140155663
mov edx, 0x2b
mov rcx, rbx
call fcn.1400b9520
mov rdi, rax
test rax, rax
je 0x14015563f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14063d1e0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14063d1f0]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x14063d1f8]
mov word [rax + 0x28], cx
movzx ecx, byte [0x14063d1fa]
mov byte [rax + 0x2a], cl
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401555d6
mov rcx, rbx
call fcn.1400b9000
mov eax, r14d
mov qword [rsi], rdi
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x80], r15
mov r15d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test rbp, rbp
je 0x14015572a
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x635de0], 3
je 0x1401556d8
mov edx, 0x12
mov rcx, rbx
call fcn.1400b9520
mov rdi, rax
test rax, rax
je 0x1401556bd
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14063d210]
mov word [rax + 0x10], cx
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401556cd
mov rcx, rbx
call fcn.1400b9000
mov qword [rsi], rdi
mov eax, r14d
jmp 0x140155d1b
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1401556fc
cmp byte [r9 + 0x16], r14b
jne 0x1401556fc
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x140155731
test r14b, cl
je 0x14015570e
and dword [rbx + 0x4c], 0xfffffffe
mov r9, r8
or dword [rbx + 0x4c], 6
jmp 0x140155731
movzx edx, r14b
mov rcx, rbp
call fcn.1400e66a0
and dword [rbx + 0x4c], 0xfffffffe
xor r8d, r8d
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x140155731
lea r9, [0x14062f8db]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x78]
mov dword [rsp + 0x38], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x68], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0xc0], r12
or rax, 0x201
mov qword [rsp + 0x70], rdx
mov rdx, qword [rbx + 0x80]
mov r12, rdi
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
shl r12, 5
mov qword [rsp + 0x78], rdx
movzx edx, byte [rbx + 0x6e]
mov byte [rbx + 0x6e], 0
mov rcx, qword [r12 + rax]
mov qword [rsp + 0x88], r13
mov r13, qword [r12 + rax + 8]
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0xc8], dl
mov qword [rsp + 0x58], r12
mov rax, qword [r13 + 8]
mov qword [rsp + 0x30], r13
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1401557d0
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x20], r8d
je 0x1401557d5
mov dword [rsp + 0x20], r14d
mov eax, dword [rbx + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, rsi
mov dword [rsp + 0x24], eax
mov rcx, rbx
call fcn.1401553f0
mov dword [rbx + 0x4c], r15d
mov edi, eax
test eax, eax
jne 0x140155c6c
movsxd rax, dword [rsp + 0x24]
mov rdx, qword [rbx + 0x20]
shl rax, 5
add rax, rdx
mov qword [rsp + 0x50], rax
mov rdi, qword [rax + 8]
mov qword [rsp + 0x28], rdi
lea r15, [rdi + 8]
mov qword [rsp + 0x40], r15
test rbp, rbp
je 0x1401558d0
mov rax, qword [r15]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x48], 0
mov rax, qword [rcx]
test rax, rax
je 0x1401558b7
lea rdx, [rsp + 0x48]
call qword [rax + 0x30]
test eax, eax
jne 0x14015585b
cmp qword [rsp + 0x48], 0
jle 0x1401558b7
mov edx, 0x1b
mov rcx, rbx
mov edi, r14d
call fcn.1400b9520
mov rbp, rax
test rax, rax
je 0x14015589f
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14063d240]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x14063d248]
mov word [rax + 0x18], cx
movzx ecx, byte [0x14063d24a]
mov byte [rax + 0x1a], cl
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401558af
mov rcx, rbx
call fcn.1400b9000
mov qword [rsi], rbp
jmp 0x140155c6c
or dword [rbx + 0x2c], 8
mov rdx, qword [rbx + 0x20]
mov eax, dword [rbx + 0x30]
and eax, 0x38
movzx r14d, byte [r12 + rdx + 0x10]
or r14d, eax
jmp 0x1401558d5
mov qword [rsp + 0x40], r15
mov rax, qword [r13 + 8]
movzx ecx, byte [rax + 0x26]
mov r12d, dword [rax + 0x34]
sub r12d, dword [rax + 0x38]
mov rax, qword [rsp + 0x58]
cmp ecx, r12d
cmovg r12d, ecx
mov rcx, rdi
mov rax, qword [rax + rdx + 0x18]
mov edx, dword [rax + 0x74]
call fcn.1400d8810
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov r9, qword [rcx + 0x120]
movsxd r8, dword [r9 + 0x1c]
test r8d, r8d
jns 0x140155941
mov eax, dword [r9 + 0x28]
add eax, dword [r9 + 0x24]
movsxd rcx, eax
mov rax, r8
neg rax
shl rax, 0xa
cqo
idiv rcx
mov r8, rax
mov eax, 0x3b9aca00
cmp r8, rax
cmovg r8, rax
mov edx, dword [r9 + 0x20]
mov rcx, rdi
cmp r8d, edx
cmovge edx, r8d
call fcn.1400d8870
mov rcx, qword [r15]
or r14d, 0x20
mov edx, r14d
mov rcx, qword [rcx]
call fcn.1400cd8b0
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1401551c0
mov edi, eax
test eax, eax
jne 0x140155c6c
xor r14d, r14d
mov eax, 2
mov edx, r14d
test rbp, rbp
mov rcx, r13
cmove edx, eax
xor r8d, r8d
call fcn.1400d8f20
mov edi, eax
test eax, eax
jne 0x140155c6c
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401559be
test rbp, rbp
jne 0x1401559be
mov dword [rbx + 0x74], r14d
mov rax, qword [r13 + 8]
xor r9d, r9d
mov rdi, qword [rsp + 0x28]
mov r8d, r12d
mov rcx, rdi
mov edx, dword [rax + 0x34]
call fcn.1400d8930
test eax, eax
jne 0x140155c60
cmp dword [rsp + 0x20], r14d
jne 0x140155a6e
mov r14, qword [r15]
mov ecx, dword [rbx + 0x74]
mov edi, dword [r14 + 0x34]
sub edi, dword [r14 + 0x38]
cmp r12d, edi
mov byte [r14 + 0x26], r12b
cmovge edi, r12d
test byte [r14 + 0x28], 2
jne 0x140155c60
lea eax, [rcx - 0x200]
cmp eax, 0xfe00
ja 0x140155a42
lea eax, [rcx - 1]
test ecx, eax
jne 0x140155a42
cmp edi, 0x20
jle 0x140155a36
cmp ecx, 0x200
mov eax, 0x400
cmove ecx, eax
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.1400d8640
mov rcx, qword [r14]
lea rdx, [r14 + 0x34]
mov r8d, edi
call fcn.1400cd9e0
mov edx, dword [r14 + 0x34]
movzx ecx, di
sub edx, ecx
mov dword [r14 + 0x38], edx
test eax, eax
jne 0x140155c60
mov rdi, qword [rsp + 0x28]
xor r14d, r14d
cmp byte [rbx + 0x67], 0
jne 0x140155c60
movsx eax, byte [rbx + 0x6a]
test al, al
js 0x140155a84
mov edx, eax
jmp 0x140155a9a
mov rax, qword [r13 + 8]
mov edx, r14d
cmp byte [rax + 0x21], 0
je 0x140155a9a
cmp byte [rax + 0x22], 0
setne dl
inc edx
mov rcx, rdi
call fcn.1400d8a80
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rbp, qword [rsp + 0x60]
mov rdx, rsi
mov r9, rbp
mov byte [rbx + 0xc4], al
mov rcx, rbx
call fcn.1401553f0
mov edi, eax
test eax, eax
jne 0x140155c6c
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.1401553f0
mov edi, eax
test eax, eax
jne 0x140155c6c
mov r9, rbp
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.1401553f0
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140155c6c
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, rsi
mov rcx, rbx
call fcn.1401553f0
mov edi, eax
test eax, eax
jne 0x140155c6c
nop word [rax + rax]
mov rcx, qword [r13 + 8]
lea r8, [0x140000000]
movzx r15d, byte [r14 + r8 + 0x630de8]
cmp r15d, 0xf
jne 0x140155b69
mov rax, qword [rcx]
mov ecx, dword [rax + 0x84]
add ecx, dword [r13 + 0x1c]
jmp 0x140155b7e
mov rax, qword [rcx + 0x18]
lea edx, [r15*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ecx, dword [rdx + rcx]
bswap ecx
mov rax, qword [rsp + 0x40]
movzx esi, byte [r14 + r8 + 0x630de9]
add esi, ecx
mov r13, qword [rax]
mov rcx, qword [r13 + 0x18]
mov r12, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x70]
call fcn.1400d0580
mov edi, eax
test eax, eax
jne 0x140155bc4
lea eax, [r15*4 + 0x24]
mov edx, esi
bswap edx
mov dword [rax + r12], edx
cmp r15d, 7
jne 0x140155bc4
mov byte [r13 + 0x22], sil
jmp 0x140155bcc
test edi, edi
jne 0x140155c67
mov r13, qword [rsp + 0x30]
add r14, 2
cmp r14, 0xa
jl 0x140155b40
mov rsi, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0x28]
test rsi, rsi
jne 0x140155c02
mov rdx, rbp
mov rcx, r13
call fcn.1400e4d70
mov edi, eax
test eax, eax
jne 0x140155c6c
mov rcx, rbp
call fcn.1400d9f70
mov edi, eax
test eax, eax
jne 0x140155c6c
test rsi, rsi
jne 0x140155c6c
mov r9, qword [rsp + 0x40]
xor edx, edx
mov rax, qword [r9]
cmp byte [rax + 0x21], dl
je 0x140155c2c
cmp byte [rax + 0x22], dl
setne dl
inc edx
mov rcx, r13
call fcn.1400d8a80
mov r9, qword [r9]
mov rcx, r13
movzx eax, byte [r9 + 0x26]
mov edx, dword [r9 + 0x34]
mov r8d, edx
sub r8d, dword [r9 + 0x38]
mov r9d, 1
cmp eax, r8d
cmovg r8d, eax
call fcn.1400d8930
mov edi, eax
jmp 0x140155c6c
mov edi, 7
jmp 0x140155c6c
mov r13, qword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
mov r15d, 0
mov r12, qword [rsp + 0xc0]
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0xc8]
mov byte [rbx + 0x6e], al
mov byte [rbx + 0xc4], 0
mov rsi, qword [r13 + 8]
mov r13, qword [rsp + 0x88]
mov ebp, dword [rsi + 0x34]
sub ebp, dword [rsi + 0x38]
test ebp, ebp
mov byte [rsi + 0x26], 0
cmovle ebp, r15d
test byte [rsi + 0x28], 2
jne 0x140155cf2
mov rcx, qword [rsi]
lea rdx, [rsi + 0x34]
mov r8d, ebp
call fcn.1400cd9e0
mov ecx, dword [rsi + 0x34]
movzx eax, bp
sub ecx, eax
or word [rsi + 0x28], 2
mov dword [rsi + 0x38], ecx
mov rsi, qword [rsp + 0x50]
mov byte [rbx + 0x65], 1
test rsi, rsi
je 0x140155d11
mov rcx, qword [rsi + 8]
call fcn.1400d8670
mov qword [rsi + 8], r15
mov qword [rsi + 0x18], r15
mov rcx, rbx
call fcn.140118010
mov eax, edi
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret