Function at 0x140095c00
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x60
cmp byte [rdx + 0x65], 0
mov r12, r9
movsxd rbx, r8d
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], 0
mov r14d, 1
jne 0x140095c48
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1400075a0
mov eax, r14d
add rsp, 0x60
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], r14d
jle 0x140095c6c
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1400075a0
mov eax, r14d
add rsp, 0x60
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0xa0], r13
lea rcx, [0x140000000]
mov r13d, dword [rdx + 0x4c]
test r12, r12
je 0x140095cc2
movzx eax, word [r9 + 0x14]
and eax, 0x3f
cmp byte [rax + rcx + 0x22eb20], 3
je 0x140095cad
lea r8, str.non_text_filename
mov rcx, rbp
call fcn.1400075a0
mov eax, r14d
jmp 0x14009618e
mov rcx, r12
call fcn.140036240
and dword [rsi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rsi + 0x4c], 6
jmp 0x140095cc9
lea r9, [0x140222125]
mov eax, dword [rsi + 0x2c]
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rsi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsi + 0x80]
or rax, 0x201
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0xa8], r15
mov r15, rbx
shl r15, 5
mov qword [rsp + 0x58], rdx
movzx edx, byte [rsi + 0x6e]
mov byte [rsi + 0x6e], 0
mov rcx, qword [rax + r15]
mov rbx, qword [rax + r15 + 8]
mov qword [rsp + 0x40], rcx
mov byte [rsp + 0x98], dl
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x140095d61
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x20], 0
je 0x140095d66
mov dword [rsp + 0x20], r14d
mov eax, dword [rsi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, rbp
mov dword [rsp + 0x24], eax
mov rcx, rsi
call fcn.1400959f0
mov dword [rsi + 0x4c], r13d
mov edi, eax
test eax, eax
jne 0x140096102
movsxd rax, dword [rsp + 0x24]
shl rax, 5
add rax, qword [rsi + 0x20]
mov qword [rsp + 0x38], rax
mov r13, qword [rax + 8]
test r12, r12
je 0x140095e1a
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov r14, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rdi, qword [r14]
test rdi, rdi
je 0x140095e03
mov rdi, qword [rdi + 0x30]
mov rcx, rdi
call qword [fcn.140005fb0]
lea rdx, [rsp + 0x28]
mov rcx, r14
call rdi
test eax, eax
jne 0x140095de7
cmp qword [rsp + 0x28], 0
jle 0x140095e03
lea r8, str.output_file_already_exists
mov rdx, rsi
mov rcx, rbp
mov edi, 1
call fcn.1400075a0
jmp 0x140096102
mov rax, qword [rsi + 0x20]
or dword [rsi + 0x2c], 8
movzx r14d, byte [rax + r15 + 0x10]
mov eax, dword [rsi + 0x30]
and eax, 0x38
or r14d, eax
mov rcx, rbx
call fcn.140022240
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x28], eax
mov rdx, qword [rcx + r15 + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.140021f70
xor edx, edx
mov rcx, rbx
call fcn.140022020
mov edx, eax
mov rcx, r13
call fcn.140022020
or r14d, 0x20
mov rcx, r13
mov edx, r14d
call fcn.1400220e0
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rsi
call fcn.1400958e0
mov edi, eax
test eax, eax
jne 0x140096102
xor edx, edx
mov eax, 2
test r12, r12
cmove edx, eax
cmp byte [rbx + 0x11], dil
jne 0x140095ea1
movzx eax, byte [rbx + 0x10]
test al, al
je 0x140095ea1
cmp al, 1
jne 0x140095f23
test r12, r12
jne 0x140095eb6
xor r8d, r8d
mov rcx, rbx
call fcn.140022810
mov edi, eax
test edi, edi
jne 0x140096102
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140095ecc
test r12, r12
jne 0x140095ecc
mov dword [rsi + 0x74], r12d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov edi, dword [rsp + 0x28]
mov rcx, r13
mov r8d, edi
mov edx, dword [rax + 0x34]
call fcn.140022140
test eax, eax
jne 0x1400960fd
cmp dword [rsp + 0x20], eax
jne 0x140095f0c
mov edx, dword [rsi + 0x74]
xor r9d, r9d
mov r8d, edi
mov rcx, r13
call fcn.140022140
test eax, eax
jne 0x1400960fd
cmp byte [rsi + 0x67], 0
jne 0x1400960fd
movzx eax, byte [rsi + 0x6a]
test al, al
js 0x140095f57
movsx eax, al
jmp 0x140095f5f
test r12, r12
jne 0x140095eb6
mov rax, qword [rbx]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x140095f50
cmp byte [rcx + 0xa], r12b
je 0x140095f50
call fcn.14001ab80
jmp 0x140095eac
xor edi, edi
jmp 0x140095eae
mov rcx, rbx
call fcn.1400223c0
mov edx, eax
mov rcx, r13
call fcn.140022330
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 r14, qword [rsp + 0x40]
mov rdx, rbp
mov r9, r14
mov byte [rsi + 0xc4], al
mov rcx, rsi
call fcn.1400959f0
mov edi, eax
test eax, eax
jne 0x140096102
mov r9, r14
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rbp
mov rcx, rsi
call fcn.1400959f0
mov edi, eax
test eax, eax
jne 0x140096102
mov r9, r14
mov byte [rsi + 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, rbp
mov rcx, rsi
call fcn.1400959f0
and dword [rsi + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140096102
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, rsi
call fcn.1400959f0
mov edi, eax
test eax, eax
jne 0x140096102
xor r14d, r14d
lea rbp, [0x140000000]
nop dword [rax + rax]
cmp byte [rbx + 0x11], 0
movzx edi, byte [r14 + rbp + 0x229278]
mov r15, qword [rbx + 8]
je 0x140096034
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x140096034
mov rcx, rbx
call fcn.14001f320
cmp edi, 0xf
jne 0x140096047
mov rax, qword [r15]
mov edi, dword [rbx + 0x1c]
add edi, dword [rax + 0x84]
jmp 0x14009605b
mov rax, qword [r15 + 0x18]
lea edx, [rdi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov edi, dword [rdx + rcx]
bswap edi
cmp byte [rbx + 0x11], 0
je 0x14009606f
sub dword [rbx + 0x14], 1
jne 0x14009606f
mov rcx, rbx
call fcn.14001f2c0
movzx r8d, byte [r14 + rbp + 0x229279]
mov rcx, r13
movzx edx, byte [r14 + rbp + 0x229278]
add r8d, edi
call fcn.14002b560
mov edi, eax
test eax, eax
jne 0x140096102
add r14, 2
cmp r14, 0xa
jl 0x140096010
test r12, r12
jne 0x1400960b6
mov rdx, r13
mov rcx, rbx
call fcn.14002dce0
mov edi, eax
test eax, eax
jne 0x140096102
mov rcx, r13
call fcn.140023ac0
mov edi, eax
test eax, eax
jne 0x140096102
test r12, r12
jne 0x140096102
mov rcx, r13
call fcn.1400223c0
mov edx, eax
mov rcx, rbx
call fcn.140022330
mov rcx, r13
call fcn.140022240
mov rcx, qword [r13 + 8]
lea r9d, [rdi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.140022140
mov edi, eax
jmp 0x140096102
mov edi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rsi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
or edx, 0xffffffff
mov qword [rsi + 0x30], rax
mov rcx, rbx
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x80], rax
movzx eax, byte [rsp + 0x98]
mov byte [rsi + 0x6e], al
mov byte [rsi + 0xc4], 0
call fcn.140022140
mov rbx, qword [rsp + 0x38]
mov r15, qword [rsp + 0xa8]
mov byte [rsi + 0x65], 1
test rbx, rbx
je 0x14009617c
mov rcx, qword [rbx + 8]
call fcn.140021e60
mov qword [rbx + 8], 0
mov qword [rbx + 0x18], 0
mov rcx, rsi
call fcn.14005e210
mov eax, edi
mov rdi, qword [rsp + 0x90]
mov r13, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret