Function at 0x7e8040
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 0x7e83e0
cmp dword [rdx + 0xd8], 1
jg 0x7e83c0
test r9, r9
mov ebp, dword [rdx + 0x4c]
je 0x7e8400
movzx eax, word [r9 + 0x14]
lea rdx, [0x00b54f60]
and eax, 0x3f
cmp byte [rdx + rax], 3
je 0x7e80c0
lea r8, str.non_text_filename
mov rdx, rbx
mov esi, 1
call fcn.00754ff0
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.007529d0
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.007e7fe0
mov dword [rbx + 0x4c], ebp
test eax, eax
mov esi, eax
jne 0x7e85d4
movsxd rbp, r13d
shl rbp, 5
add rbp, qword [rbx + 0x20]
test r14, r14
mov r13, qword [rbp + 8]
je 0x7e8640
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 0x7e81e2
lea r9, [rsp + 0x70]
mov rdx, r9
call qword [rax + 0x30]
test eax, eax
jne 0x7e8624
cmp qword [rsp + 0x70], 0
jg 0x7e8624
or dword [rbx + 0x2c], 8
mov rcx, r12
call fcn.00744a20
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.00744bb0
xor edx, edx
mov rcx, r12
call fcn.00744c30
mov rcx, r13
mov edx, eax
call fcn.00744c30
mov edx, 0x21
mov rcx, r13
call fcn.00744ce0
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbx
call fcn.007e7ec0
test eax, eax
mov esi, eax
jne 0x7e8560
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.0078df00
test eax, eax
mov esi, eax
jne 0x7e8560
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.00751690
test eax, eax
jne 0x7e8700
movabs rax, 0xff000000ff
test qword [rsp + 0x48], rax
je 0x7e86e0
cmp byte [rbx + 0x67], 0
jne 0x7e8700
movsx edx, byte [rbx + 0x6a]
test dl, dl
js 0x7e870a
mov rcx, r13
call fcn.00744d20
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.007e7fe0
test eax, eax
mov esi, eax
jne 0x7e8560
mov r9, r14
mov rdx, r15
mov rcx, rbx
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
call fcn.007e7fe0
test eax, eax
mov esi, eax
jne 0x7e8560
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.007e7fe0
and dword [rbx + 0x2c], 0xfffffffb
test eax, eax
mov esi, eax
jne 0x7e8560
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.007e7fe0
test eax, eax
mov esi, eax
jne 0x7e8560
lea rcx, [rsp + 0x6c]
mov esi, 1
mov eax, 1
lea r14, [0x00b53858]
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.0074feb0
movzx r8d, sil
mov edx, r15d
mov rcx, r13
add r8d, dword [rsp + 0x6c]
call fcn.0078e790
test eax, eax
jne 0x7e8731
lea rax, [0x00b53862]
add rdi, 2
cmp rax, rdi
je 0x7e8719
movzx eax, byte [rdi]
movzx esi, byte [rdi + 1]
jmp 0x7e836f
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov esi, 1
call fcn.00754ff0
jmp 0x7e80a8
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov esi, 1
call fcn.00754ff0
jmp 0x7e80a8
lea r9, [0x00b49c60]
jmp 0x7e80ec
cmp byte [r12 + 0x11], 0
je 0x7e841c
mov rcx, r12
call fcn.00744870
cmp byte [r13 + 0x11], 0
je 0x7e842b
mov rcx, r13
call fcn.00744870
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 0x7e847e
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 0x7e847e
cmp eax, 0xc
jne 0x7e84e1
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.00796f00
mov r9, qword [rsp + 0x48]
mov rcx, r9
call fcn.0079a000
test eax, eax
mov esi, eax
jne 0x7e8738
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
cmp byte [r13 + 0x11], 0
je 0x7e84f9
mov eax, dword [r13 + 0x14]
sub eax, 1
mov dword [r13 + 0x14], eax
je 0x7e8765
cmp byte [r12 + 0x11], 0
je 0x7e8514
mov eax, dword [r12 + 0x14]
sub eax, 1
mov dword [r12 + 0x14], eax
je 0x7e8758
test esi, esi
jne 0x7e8560
mov rcx, r13
call fcn.00796e90
test eax, eax
mov esi, eax
jne 0x7e8560
mov rcx, r13
call fcn.00744d90
mov rcx, r12
mov edx, eax
call fcn.00744d20
mov rcx, r13
call fcn.00744a20
mov r9d, 1
mov rcx, r12
mov r8d, eax
mov rax, qword [r13 + 8]
mov edx, dword [rax + 0x34]
call fcn.00751690
mov esi, eax
nop word [rax + rax]
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.00751690
mov byte [rbx + 0x65], 1
mov rcx, qword [rbp + 8]
call fcn.00799b20
mov qword [rbp + 8], 0
mov qword [rbp + 0x18], 0
mov rcx, rbx
call fcn.0074e990
jmp 0x7e80a8
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.00751690
mov byte [rbx + 0x65], 1
jmp 0x7e85c7
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, r15
call fcn.00754ff0
mov esi, 1
jmp 0x7e8560
mov rcx, r12
call fcn.00744a20
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.00744bb0
xor edx, edx
mov rcx, r12
call fcn.00744c30
mov rcx, r13
mov edx, eax
call fcn.00744c30
mov edx, 0x21
mov rcx, r13
call fcn.00744ce0
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbx
call fcn.007e7ec0
test eax, eax
mov esi, eax
jne 0x7e8560
xor r8d, r8d
mov edx, 2
mov rcx, r12
call fcn.0078df00
test eax, eax
mov esi, eax
jne 0x7e8560
mov rax, qword [r12 + 8]
mov edi, 1
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x7e8266
mov dword [rbx + 0x74], 0
jmp 0x7e8266
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov rcx, r13
mov r8d, dword [rsp + 0x5c]
call fcn.00751690
test eax, eax
je 0x7e8296
nop dword [rax + rax]
mov esi, 7
jmp 0x7e8560
mov rcx, r12
call fcn.00744d90
mov edx, eax
jmp 0x7e82ac
test r14b, r14b
jne 0x7e840c
mov rcx, r13
call fcn.00796e90
mov esi, eax
jmp 0x7e8560
mov esi, eax
jmp 0x7e8560
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x7e84e1
call fcn.0074d250
jmp 0x7e84e1
mov rcx, r12
call fcn.00744900
jmp 0x7e8514
mov rcx, r13
call fcn.00744900
jmp 0x7e84f9