Function at 0x140114050
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0xa0
xor r12d, r12d
movsxd rbx, r8d
mov r13, r9
mov rdi, rdx
mov rbp, rcx
cmp byte [rdx + 0x5f], r12b
jne 0x140114094
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.14009aa30
lea eax, [r12 + 1]
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xc8], 1
jle 0x1401140bd
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.14009aa30
mov eax, 1
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0xe0], r14
mov r14d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x140114163
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x1d32c0], 3
je 0x140114109
lea r8, str.non_text_filename
mov rdx, rdi
mov rcx, rbp
call fcn.14009aa30
mov eax, 1
jmp 0x1401146e3
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x140114132
cmp byte [r9 + 0xa], 1
jne 0x140114132
mov r9, qword [r9 + 0x10]
mov eax, r14d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x14011416a
test cl, 1
je 0x140114148
mov eax, r14d
xor r9d, r9d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x14011416a
mov dl, 1
mov rcx, r13
call fcn.1400bdc50
mov r9, rax
mov eax, dword [rdi + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x14011416a
lea r9, [0x1401d62ea]
mov eax, dword [rdi + 0x2c]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rcx, qword [rdi + 0x30]
mov edx, dword [rdi + 0x74]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov dword [rsp + 0x34], edx
mov edx, dword [rdi + 0x78]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rdi + 0x20]
shl rcx, 5
mov dword [rsp + 0x38], edx
movzx edx, byte [rdi + 0x68]
mov byte [rdi + 0x68], r12b
mov rbx, qword [rcx + rax + 8]
mov qword [rsp + 0x40], rcx
mov byte [rsp + 0x20], dl
mov rdx, rbp
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xe8], r15
mov r15, qword [rcx + rax]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rdi
mov byte [rsp + 0xd8], al
mov eax, dword [rdi + 0x28]
mov dword [rsp + 0x24], eax
call fcn.140113eb0
mov dword [rdi + 0x4c], r14d
mov esi, eax
test eax, eax
jne 0x140114669
movsxd r12, dword [rsp + 0x24]
shl r12, 5
add r12, qword [rdi + 0x20]
mov r14, qword [r12 + 8]
test r13, r13
je 0x14011427d
mov rax, qword [r14 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x140114279
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x14011425d
cmp qword [rsp + 0x28], 0
jle 0x140114279
lea r8, str.output_file_already_exists
mov rdx, rdi
mov rcx, rbp
mov esi, 1
call fcn.14009aa30
jmp 0x140114669
or dword [rdi + 0x2c], 8
movzx ecx, byte [rbx + 0x11]
test cl, cl
je 0x14011429a
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14011429a
mov rcx, rbx
call fcn.1400ae1e0
movzx ecx, byte [rbx + 0x11]
mov rax, qword [rbx + 8]
mov edx, dword [rax + 0x30]
sub edx, dword [rax + 0x34]
mov dword [rsp + 0x28], edx
test cl, cl
je 0x1401142ba
sub dword [rbx + 0x14], 1
jne 0x1401142ba
mov rcx, rbx
call fcn.1400ae1b0
mov rax, qword [rdi + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r14
call fcn.1400b0a20
xor edx, edx
mov rcx, rbx
call fcn.1400b0ab0
mov edx, eax
mov rcx, r14
call fcn.1400b0ab0
mov edx, 0x21
mov rcx, r14
call fcn.1400b0be0
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rdi
call fcn.140113da0
mov esi, eax
test eax, eax
jne 0x140114669
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.1400b14e0
mov esi, eax
test eax, eax
jne 0x140114669
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x140114346
mov dword [rdi + 0x6c], esi
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 0x30]
xor r9d, r9d
mov esi, dword [rsp + 0x28]
mov rcx, r14
mov r8d, esi
call fcn.1400b0cd0
test eax, eax
jne 0x140114664
cmp byte [rsp + 0xd8], al
jne 0x140114385
mov edx, dword [rdi + 0x6c]
xor r9d, r9d
mov r8d, esi
mov rcx, r14
call fcn.1400b0cd0
test eax, eax
jne 0x140114664
cmp byte [rdi + 0x61], 0
jne 0x140114664
movzx eax, byte [rdi + 0x64]
test al, al
js 0x14011439c
movsx eax, al
jmp 0x1401143a4
mov rcx, rbx
call fcn.1400b0f30
mov edx, eax
mov rcx, r14
call fcn.1400b0ea0
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r9, r15
mov byte [rdi + 0xb4], al
mov rdx, rbp
mov rcx, rdi
call fcn.140113eb0
mov esi, eax
test eax, eax
jne 0x140114669
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov rdx, rbp
mov rcx, rdi
call fcn.140113eb0
mov esi, eax
test eax, eax
jne 0x140114669
mov r9, r15
mov byte [rdi + 0xb4], al
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, rbp
mov rcx, rdi
call fcn.140113eb0
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x140114669
mov r9, r15
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rbp
mov rcx, rdi
call fcn.140113eb0
mov esi, eax
test eax, eax
jne 0x140114669
xor r15d, r15d
movzx r8d, byte [rbx + 0x11]
lea rax, [0x140000000]
movzx esi, byte [r15 + rax + 0x1cd678]
mov rbp, qword [rbx + 8]
test r8b, r8b
je 0x140114475
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x140114475
mov rcx, rbx
call fcn.1400ae1e0
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x140114489
mov rax, qword [rbp]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x14011449d
mov rax, qword [rbp + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x1401144b0
sub dword [rbx + 0x14], 1
jne 0x1401144b0
mov rcx, rbx
call fcn.1400ae1b0
lea rax, [0x140000000]
mov rcx, r14
movzx r8d, byte [r15 + rax + 0x1cd679]
movzx edx, byte [r15 + rax + 0x1cd678]
add r8d, esi
call fcn.1400ba4f0
mov esi, eax
test eax, eax
jne 0x140114669
add r15, 2
cmp r15, 0xa
jl 0x140114441
test r13, r13
jne 0x140114623
cmp byte [rbx + 0x11], r13b
je 0x14011450c
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r13b
jne 0x14011450c
mov rcx, rbx
call fcn.1400ae1e0
cmp byte [r14 + 0x11], 0
je 0x140114526
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x140114526
mov rcx, r14
call fcn.1400ae1e0
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x140114575
mov rax, qword [r14 + 8]
lea r8, [rsp + 0xd8]
mov edx, dword [rax + 0x3c]
movsxd rax, dword [rax + 0x30]
btr edx, 0x1f
imul rdx, rax
mov qword [rsp + 0xd8], rdx
mov edx, 0xb
call qword [r9 + 0x50]
xor esi, esi
cmp eax, 0xc
cmovne esi, eax
test esi, esi
jne 0x1401145f5
xor eax, eax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
mov qword [rsp + 0x90], rax
mov edx, 0x7fffffff
mov rax, qword [r14]
mov qword [rsp + 0x70], rax
movdqa xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x58], rbx
call fcn.1400bbf40
lea rcx, [rsp + 0x50]
call fcn.1400bc710
mov esi, eax
test eax, eax
jne 0x1401145de
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x26], cx
jmp 0x1401145f5
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x10], 0
jne 0x1401145f5
call fcn.1400a6500
cmp byte [r14 + 0x11], 0
je 0x14011460b
sub dword [r14 + 0x14], 1
jne 0x14011460b
mov rcx, r14
call fcn.1400ae1b0
cmp byte [rbx + 0x11], 0
je 0x14011461f
sub dword [rbx + 0x14], 1
jne 0x14011461f
mov rcx, rbx
call fcn.1400ae1b0
test esi, esi
jne 0x140114669
mov rcx, r14
call fcn.1400b2900
mov esi, eax
test eax, eax
jne 0x140114669
test r13, r13
jne 0x140114669
mov rcx, r14
call fcn.1400b0f30
mov edx, eax
mov rcx, rbx
call fcn.1400b0ea0
mov rax, qword [r14 + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x28]
mov rcx, rbx
mov edx, dword [rax + 0x30]
call fcn.1400b0cd0
mov esi, eax
jmp 0x140114669
mov esi, 7
mov eax, dword [rsp + 0x30]
mov edx, 0xffffffff
mov dword [rdi + 0x2c], eax
mov r8d, edx
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov eax, dword [rsp + 0x34]
lea r9d, [rdx + 2]
mov dword [rdi + 0x74], eax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x78], eax
movzx eax, byte [rsp + 0x20]
mov byte [rdi + 0x68], al
mov byte [rdi + 0xb4], 0
call fcn.1400b0cd0
mov r15, qword [rsp + 0xe8]
mov byte [rdi + 0x5f], 1
test r12, r12
je 0x1401146d1
mov rcx, qword [r12 + 8]
call fcn.1400b0860
xor eax, eax
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], rax
mov rcx, rdi
call fcn.1400e5240
mov eax, esi
mov rsi, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xe0]
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret