Function at 0x963090
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 r15, rcx
mov rbx, rdx
mov r14, r9
je 0x963430
cmp dword [rdx + 0xd8], 1
jg 0x963410
test r9, r9
mov ebp, dword [rdx + 0x4c]
je 0x963450
movzx eax, word [r9 + 8]
lea rdx, [0x00e9e680]
and eax, 0x3f
cmp byte [rdx + rax], 3
je 0x963110
lea r8, str.non_text_filename
mov rdx, rbx
mov esi, 1
call fcn.008d2090
mov eax, esi
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
mov dword [rsp + 0x120], r8d
call fcn.008cfa50
mov r8d, dword [rsp + 0x120]
mov r9, rax
mov eax, dword [rbx + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rbx + 0x4c], eax
movabs rdx, 0xfffffffeefffafff
mov eax, dword [rbx + 0x2c]
mov rcx, rbx
mov rsi, qword [rbx + 0x78]
mov rdi, qword [rbx + 0x30]
mov r13d, dword [rbx + 0x28]
mov dword [rsp + 0x40], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x30], rsi
mov rsi, qword [rbx + 0x80]
and rdx, rdi
mov qword [rsp + 0x28], rdi
movsxd rdi, r8d
or rdx, 0x201
mov qword [rbx + 0x30], rdx
shl rdi, 5
mov rdx, r15
lea r8, str.ATTACH__Q_AS_vacuum_db
add rax, rdi
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x38], rsi
movzx esi, byte [rbx + 0x6e]
mov byte [rbx + 0x6e], 0
mov r12, qword [rax + 8]
mov byte [rsp + 0x47], sil
mov rsi, qword [rax]
mov rax, qword [r12 + 8]
mov qword [rsp + 0x50], rsi
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
call fcn.00963030
mov dword [rbx + 0x4c], ebp
test eax, eax
mov esi, eax
jne 0x963620
movsxd rbp, r13d
shl rbp, 5
add rbp, qword [rbx + 0x20]
test r14, r14
mov r13, qword [rbp + 8]
je 0x963690
mov rax, qword [r13 + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov qword [rsp + 0x70], 0
mov rax, qword [rcx]
test rax, rax
je 0x963232
lea r9, [rsp + 0x70]
mov rdx, r9
call qword [rax + 0x30]
test eax, eax
jne 0x963670
cmp qword [rsp + 0x70], 0
jg 0x963670
or dword [rbx + 0x2c], 8
mov rcx, r12
call fcn.008c1c30
mov rcx, r13
mov dword [rsp + 0x5c], eax
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + rdi + 0x18]
mov edx, dword [rax + 0x74]
call fcn.008c1dc0
xor edx, edx
mov rcx, r12
call fcn.008c1e40
mov rcx, r13
mov edx, eax
call fcn.008c1e40
mov edx, 0x21
mov rcx, r13
call fcn.008c1ef0
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbx
call fcn.00962f10
test eax, eax
mov esi, eax
jne 0x9635a4
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.0090b1b0
test eax, eax
mov esi, eax
jne 0x9635a4
mov rax, qword [r12 + 8]
test r14, r14
sete dil
mov edx, dword [rax + 0x34]
xor r9d, r9d
mov rcx, r13
mov r8d, dword [rsp + 0x5c]
call fcn.008cd020
test eax, eax
jne 0x963750
movabs rax, 0xff000000ff
test qword [rsp + 0x48], rax
je 0x963730
cmp byte [rbx + 0x67], 0
jne 0x963750
movsx edx, byte [rbx + 0x6a]
test dl, dl
js 0x96375a
mov rcx, r13
call fcn.008c1f30
movzx eax, byte [rsp + 0x58]
mov rdx, r15
mov rcx, rbx
mov r14, qword [rsp + 0x50]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov byte [rbx + 0xc4], al
mov r9, r14
call fcn.00963030
test eax, eax
mov esi, eax
jne 0x9635a4
mov r9, r14
mov rdx, r15
mov rcx, rbx
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
call fcn.00963030
test eax, eax
mov esi, eax
jne 0x9635a4
mov byte [rbx + 0xc4], 0
mov r9, r14
mov rdx, r15
mov rcx, rbx
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
call fcn.00963030
and dword [rbx + 0x2c], 0xfffffffb
test eax, eax
mov esi, eax
jne 0x9635a4
mov r9, r14
mov rdx, r15
mov rcx, rbx
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
call fcn.00963030
test eax, eax
mov esi, eax
jne 0x9635a4
lea rcx, [rsp + 0x6c]
mov esi, 1
mov eax, 1
lea r14, [0x00e9cfb8]
mov qword [rsp + 0x48], rcx
mov rcx, r14
mov r14d, edi
mov rdi, rcx
mov r8, qword [rsp + 0x48]
movzx r15d, al
mov rcx, r12
mov edx, r15d
call fcn.008cb850
movzx r8d, sil
mov edx, r15d
mov rcx, r13
add r8d, dword [rsp + 0x6c]
call fcn.0090ba40
test eax, eax
jne 0x963781
lea rax, [0x00e9cfc2]
add rdi, 2
cmp rax, rdi
je 0x963769
movzx eax, byte [rdi]
movzx esi, byte [rdi + 1]
jmp 0x9633bf
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov esi, 1
call fcn.008d2090
jmp 0x9630f8
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov esi, 1
call fcn.008d2090
jmp 0x9630f8
lea r9, [0x00e933ac]
jmp 0x96313c
cmp byte [r12 + 0x11], 0
je 0x96346c
mov rcx, r12
call fcn.008c1a80
cmp byte [r13 + 0x11], 0
je 0x96347b
mov rcx, r13
call fcn.008c1a80
mov rax, qword [r12 + 8]
lea r9, [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov r10, qword [rcx]
test r10, r10
je 0x9634ce
mov rdx, qword [r13 + 8]
lea r9, [rsp + 0x70]
mov r8, r9
mov qword [rsp + 0x48], r9
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x70], rax
call qword [r10 + 0x50]
mov r9, qword [rsp + 0x48]
test eax, eax
mov esi, eax
je 0x9634ce
cmp eax, 0xc
jne 0x963531
xor eax, eax
mov rdi, r9
mov ecx, 0x12
mov qword [rsp + 0x48], r9
rep stosd dword [rdi], eax
mov edx, 0x7fffffff
mov rcx, r9
mov rax, qword [r13]
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x88], 1
mov qword [rsp + 0x90], rax
call fcn.00914080
mov r9, qword [rsp + 0x48]
mov rcx, r9
call fcn.00917180
test eax, eax
mov esi, eax
jne 0x963788
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
cmp byte [r13 + 0x11], 0
je 0x963549
mov eax, dword [r13 + 0x14]
sub eax, 1
mov dword [r13 + 0x14], eax
je 0x9637b5
cmp byte [r12 + 0x11], 0
je 0x963564
mov eax, dword [r12 + 0x14]
sub eax, 1
mov dword [r12 + 0x14], eax
je 0x9637a8
test esi, esi
jne 0x9635a4
mov rcx, r13
call fcn.00914010
test eax, eax
mov esi, eax
jne 0x9635a4
mov rcx, r13
call fcn.008c1fa0
mov rcx, r12
mov edx, eax
call fcn.008c1f30
mov rax, qword [r13 + 8]
mov r9d, 1
mov rcx, r12
mov r8d, dword [rsp + 0x5c]
mov edx, dword [rax + 0x34]
call fcn.008cd020
mov esi, eax
mov eax, dword [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, r12
mov edx, 0xffffffff
mov byte [rbx + 0xc4], 0
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0x47]
mov byte [rbx + 0x6e], al
call fcn.008cd020
mov byte [rbx + 0x65], 1
mov rcx, qword [rbp + 8]
call fcn.00916ca0
mov qword [rbp + 8], 0
mov qword [rbp + 0x18], 0
mov rcx, rbx
call fcn.008ceae0
jmp 0x9630f8
mov eax, dword [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, r12
mov byte [rbx + 0xc4], 0
mov edx, 0xffffffff
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0x47]
mov byte [rbx + 0x6e], al
call fcn.008cd020
mov byte [rbx + 0x65], 1
jmp 0x96360b
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, r15
call fcn.008d2090
mov esi, 1
jmp 0x9635a4
mov rcx, r12
call fcn.008c1c30
mov rcx, r13
mov dword [rsp + 0x5c], eax
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + rdi + 0x18]
mov edx, dword [rax + 0x74]
call fcn.008c1dc0
xor edx, edx
mov rcx, r12
call fcn.008c1e40
mov rcx, r13
mov edx, eax
call fcn.008c1e40
mov edx, 0x21
mov rcx, r13
call fcn.008c1ef0
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbx
call fcn.00962f10
test eax, eax
mov esi, eax
jne 0x9635a4
xor r8d, r8d
mov edx, 2
mov rcx, r12
call fcn.0090b1b0
test eax, eax
mov esi, eax
jne 0x9635a4
mov rax, qword [r12 + 8]
mov edi, 1
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x9632b6
mov dword [rbx + 0x74], 0
jmp 0x9632b6
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov rcx, r13
mov r8d, dword [rsp + 0x5c]
call fcn.008cd020
test eax, eax
je 0x9632e6
nop dword [rax + rax]
mov esi, 7
jmp 0x9635a4
mov rcx, r12
call fcn.008c1fa0
mov edx, eax
jmp 0x9632fc
test r14b, r14b
jne 0x96345c
mov rcx, r13
call fcn.00914010
mov esi, eax
jmp 0x9635a4
mov esi, eax
jmp 0x9635a4
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x963531
call fcn.008c9200
jmp 0x963531
mov rcx, r12
call fcn.008c1b10
jmp 0x963564
mov rcx, r13
call fcn.008c1b10
jmp 0x963549