Function at 0x9129c0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
cmp byte [rdx + 0x65], 0
mov rdi, rcx
mov r12, rdx
movsxd rbx, r8d
mov rsi, r9
je 0x912d60
cmp dword [rdx + 0xd8], 1
jg 0x912d40
mov ebp, dword [rdx + 0x4c]
test r9, r9
je 0x912d80
movzx eax, word [r9 + 8]
lea rdx, [0x010e5ae0]
and eax, 0x3f
cmp byte [rdx + rax], 3
je 0x912a48
lea r8, str.non_text_filename
mov rdx, r12
mov r13d, 1
call fcn.0087e7c0
mov eax, r13d
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r9
mov edx, 1
call fcn.0087c0d0
mov r9, rax
mov eax, dword [r12 + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [r12 + 0x4c], eax
mov eax, dword [r12 + 0x2c]
mov rdx, qword [r12 + 0x78]
shl rbx, 5
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rcx, qword [r12 + 0x30]
mov r14d, dword [r12 + 0x28]
mov dword [rsp + 0x40], eax
or eax, 6
mov dword [r12 + 0x2c], eax
mov rax, qword [r12 + 0x20]
mov qword [rsp + 0x30], rdx
mov rdx, qword [r12 + 0x80]
add rax, rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rdx
movzx edx, byte [r12 + 0x6e]
mov byte [r12 + 0x6e], 0
mov r15, qword [rax + 8]
mov byte [rsp + 0x47], dl
movabs rdx, 0xfffffffeefffafff
and rdx, rcx
mov rcx, qword [rax]
mov rax, qword [r15 + 8]
mov dword [rsp + 0x58], r14d
or rdx, 0x201
mov rax, qword [rax]
mov qword [r12 + 0x30], rdx
mov rdx, rdi
mov qword [rsp + 0x50], rcx
mov rcx, r12
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
call fcn.00912940
mov dword [r12 + 0x4c], ebp
mov r13d, eax
test eax, eax
jne 0x912f50
movsxd rbp, r14d
shl rbp, 5
add rbp, qword [r12 + 0x20]
mov r14, qword [rbp + 8]
test rsi, rsi
je 0x912fd0
mov rax, qword [r14 + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov qword [rsp + 0x70], 0
mov rax, qword [rcx]
test rax, rax
je 0x912b6b
lea r8, [rsp + 0x70]
mov rdx, r8
call qword [rax + 0x30]
test eax, eax
jne 0x912fb0
cmp qword [rsp + 0x70], 0
jg 0x912fb0
or dword [r12 + 0x2c], 8
mov rcx, r15
call fcn.0086d650
mov rcx, r14
mov dword [rsp + 0x5c], eax
mov rax, qword [r12 + 0x20]
mov rax, qword [rax + rbx + 0x18]
mov edx, dword [rax + 0x74]
call fcn.0086d800
xor edx, edx
mov rcx, r15
call fcn.0086d890
mov rcx, r14
mov edx, eax
call fcn.0086d890
mov edx, 0x21
mov rcx, r14
call fcn.0086d960
lea r8, str.BEGIN
mov rdx, rdi
mov rcx, r12
call fcn.00912810
mov r13d, eax
test eax, eax
jne 0x912ec8
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.008b9cc0
mov r13d, eax
test eax, eax
jne 0x912ec8
test rsi, rsi
mov rax, qword [r15 + 8]
sete bl
mov edx, dword [rax + 0x34]
mov r8d, dword [rsp + 0x5c]
xor r9d, r9d
mov rcx, r14
call fcn.00878ed0
test eax, eax
jne 0x913090
movabs rax, 0xff000000ff
test qword [rsp + 0x48], rax
je 0x913070
cmp byte [r12 + 0x67], 0
jne 0x913090
movsx edx, byte [r12 + 0x6a]
test dl, dl
js 0x91309b
mov rcx, r14
call fcn.0086d9b0
movzx eax, byte [rsp + 0x58]
mov rdx, rdi
mov rcx, r12
mov rsi, qword [rsp + 0x50]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov byte [r12 + 0xc4], al
mov r9, rsi
call fcn.00912940
mov r13d, eax
test eax, eax
jne 0x912ec8
mov r9, rsi
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rdi
mov rcx, r12
call fcn.00912940
mov r13d, eax
test eax, eax
jne 0x912ec8
mov r9, rsi
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, rdi
mov rcx, r12
mov byte [r12 + 0xc4], 0
call fcn.00912940
and dword [r12 + 0x2c], 0xfffffffb
mov r13d, eax
test eax, eax
jne 0x912ec8
mov r9, rsi
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rdi
mov rcx, r12
call fcn.00912940
mov r13d, eax
test eax, eax
jne 0x912ec8
lea rdi, [0x010e4438]
mov r13d, 1
lea rsi, [rsp + 0x6c]
mov edx, r13d
mov r8, rsi
mov rcx, r15
call fcn.008775a0
movzx r8d, byte [rdi + 1]
mov edx, r13d
mov rcx, r14
add r8d, dword [rsp + 0x6c]
call fcn.008ba5b0
mov r13d, eax
test eax, eax
jne 0x912ec8
add rdi, 2
lea rax, [0x010e4442]
cmp rax, rdi
je 0x9130aa
movzx r13d, byte [rdi]
jmp 0x912cf7
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov r13d, 1
call fcn.0087e7c0
jmp 0x912a2c
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov r13d, 1
call fcn.0087e7c0
jmp 0x912a2c
lea r9, [0x010daa8e]
jmp 0x912a68
cmp byte [r15 + 0x11], 0
je 0x912d9b
mov rcx, r15
call fcn.0086d4a0
cmp byte [r14 + 0x11], 0
je 0x912daa
mov rcx, r14
call fcn.0086d4a0
mov rax, qword [r15 + 8]
lea r8, [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x912dfa
mov rdx, qword [r14 + 8]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x48], r8
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x70], rax
call qword [r9 + 0x50]
mov r8, qword [rsp + 0x48]
test eax, eax
mov r13d, eax
je 0x912dfa
cmp eax, 0xc
jne 0x912e5c
mov rdi, r8
xor eax, eax
mov ecx, 0x12
mov edx, 0x7fffffff
rep stosd dword [rdi], eax
mov rcx, r8
mov qword [rsp + 0x48], r8
mov rax, qword [r14]
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x88], 1
call fcn.008c30a0
mov r8, qword [rsp + 0x48]
mov rcx, r8
call fcn.008c6290
mov r13d, eax
test eax, eax
jne 0x9130c2
mov rax, qword [r15 + 8]
and word [rax + 0x28], 0xfffd
cmp byte [r14 + 0x11], 0
je 0x912e6e
sub dword [r14 + 0x14], 1
je 0x9130ef
cmp byte [r15 + 0x11], 0
je 0x912e80
sub dword [r15 + 0x14], 1
je 0x9130e2
test r13d, r13d
jne 0x912ec8
mov rcx, r14
call fcn.008c3030
mov r13d, eax
test eax, eax
jne 0x912ec8
mov rcx, r14
call fcn.0086da20
mov rcx, r15
mov edx, eax
call fcn.0086d9b0
mov rax, qword [r14 + 8]
mov r8d, dword [rsp + 0x5c]
mov rcx, r15
mov r9d, 1
mov edx, dword [rax + 0x34]
call fcn.00878ed0
mov r13d, eax
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, r15
mov byte [r12 + 0xc4], 0
mov edx, 0xffffffff
mov dword [r12 + 0x2c], eax
mov rax, qword [rsp + 0x28]
mov qword [r12 + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [r12 + 0x78], rax
mov rax, qword [rsp + 0x38]
mov qword [r12 + 0x80], rax
movzx eax, byte [rsp + 0x47]
mov byte [r12 + 0x6e], al
call fcn.00878ed0
mov byte [r12 + 0x65], 1
mov rcx, qword [rbp + 8]
call fcn.008c5d70
mov qword [rbp + 8], 0
mov qword [rbp + 0x18], 0
mov rcx, r12
call fcn.0087a4f0
jmp 0x912a2c
mov eax, dword [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, r15
mov byte [r12 + 0xc4], 0
mov edx, 0xffffffff
mov dword [r12 + 0x2c], eax
mov rax, qword [rsp + 0x28]
mov qword [r12 + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [r12 + 0x78], rax
mov rax, qword [rsp + 0x38]
mov qword [r12 + 0x80], rax
movzx eax, byte [rsp + 0x47]
mov byte [r12 + 0x6e], al
call fcn.00878ed0
mov byte [r12 + 0x65], 1
jmp 0x912f3a
lea r8, str.output_file_already_exists
mov rdx, r12
mov rcx, rdi
mov r13d, 1
call fcn.0087e7c0
jmp 0x912ec8
mov rcx, r15
call fcn.0086d650
mov rcx, r14
mov dword [rsp + 0x5c], eax
mov rax, qword [r12 + 0x20]
mov rax, qword [rax + rbx + 0x18]
mov edx, dword [rax + 0x74]
call fcn.0086d800
xor edx, edx
mov rcx, r15
call fcn.0086d890
mov rcx, r14
mov edx, eax
call fcn.0086d890
mov edx, 0x21
mov rcx, r14
call fcn.0086d960
lea r8, str.BEGIN
mov rdx, rdi
mov rcx, r12
call fcn.00912810
mov r13d, eax
test eax, eax
jne 0x912ec8
xor r8d, r8d
mov edx, 2
mov rcx, r15
call fcn.008b9cc0
mov r13d, eax
test eax, eax
jne 0x912ec8
mov rax, qword [r15 + 8]
mov ebx, 1
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x912bf2
mov dword [r12 + 0x74], 0
jmp 0x912bf2
mov edx, dword [r12 + 0x74]
mov r8d, dword [rsp + 0x5c]
xor r9d, r9d
mov rcx, r14
call fcn.00878ed0
test eax, eax
je 0x912c22
nop dword [rax]
mov r13d, 7
jmp 0x912ec8
mov rcx, r15
call fcn.0086da20
mov edx, eax
jmp 0x912c3c
test bl, bl
jne 0x912d8c
mov rcx, r14
call fcn.008c3030
mov r13d, eax
jmp 0x912ec8
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x912e5c
call fcn.00874f20
jmp 0x912e5c
mov rcx, r15
call fcn.0086d530
jmp 0x912e80
mov rcx, r14
call fcn.0086d530
jmp 0x912e6e