Function at 0x856f90
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
cmp byte [rdx + 0x5f], 0
mov r15, rcx
mov rbx, rdx
mov rdi, r9
je 0x857330
cmp dword [rdx + 0xc8], 1
jg 0x857311
test r9, r9
mov ebp, dword [rdx + 0x4c]
je 0x857350
movzx eax, word [r9 + 8]
lea rdx, [0x00c583a0]
and eax, 0x3f
cmp byte [rdx + rax], 3
je 0x857010
lea r8, str.non_text_filename
mov rdx, rbx
mov r14d, 1
call dbg.sqlite3SetString
mov eax, r14d
add rsp, 0xb8
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 + 0x110], r8d
call dbg.sqlite3ValueText
mov r8d, dword [rsp + 0x110]
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 ecx, dword [rbx + 0x74]
mov rsi, qword [rbx + 0x30]
mov r13d, dword [rbx + 0x28]
mov dword [rsp + 0x28], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, qword [rbx + 0x20]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rbx + 0x78]
and rdx, rsi
mov qword [rsp + 0x20], rsi
movsxd rsi, r8d
or rdx, 0x201
mov qword [rbx + 0x30], rdx
shl rsi, 5
mov rdx, r15
lea r8, str.ATTACH__Q_AS_vacuum_db
add rax, rsi
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x30], ecx
movzx ecx, byte [rbx + 0x68]
mov byte [rbx + 0x68], 0
mov r12, qword [rax + 8]
mov byte [rsp + 0x37], cl
mov rcx, qword [rax]
mov rax, qword [r12 + 8]
mov qword [rsp + 0x40], rcx
mov rcx, rbx
mov rax, qword [rax]
movzx eax, byte [rax + 0x10]
mov byte [rsp + 0x38], al
call dbg.execSqlF
mov dword [rbx + 0x4c], ebp
test eax, eax
mov r14d, eax
jne 0x857520
movsxd rbp, r13d
shl rbp, 5
add rbp, qword [rbx + 0x20]
test rdi, rdi
mov r13, qword [rbp + 8]
je 0x857590
mov rax, qword [r13 + 8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
test rax, rax
je 0x85712a
lea r9, [rsp + 0x60]
mov rdx, r9
call qword [rax + 0x30]
test eax, eax
jne 0x857570
cmp qword [rsp + 0x60], 0
jg 0x857570
or dword [rbx + 0x2c], 8
mov rcx, r12
call dbg.sqlite3BtreeGetRequestedReserve
mov rcx, r13
mov dword [rsp + 0x4c], eax
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + rsi + 0x18]
mov edx, dword [rax + 0x74]
call sym.sqlite3BtreeSetCacheSize
xor edx, edx
mov rcx, r12
call sym.sqlite3BtreeSetSpillSize
mov rcx, r13
mov edx, eax
call sym.sqlite3BtreeSetSpillSize
mov edx, 0x21
mov rcx, r13
call sym.sqlite3BtreeSetPagerFlags
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbx
call dbg.execSql
test eax, eax
mov r14d, eax
jne 0x8574b0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call dbg.sqlite3BtreeBeginTrans
test eax, eax
mov r14d, eax
jne 0x8574b0
mov rax, qword [r12 + 8]
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
je 0x857630
mov edx, dword [rax + 0x34]
xor r9d, r9d
mov rcx, r13
mov r8d, dword [rsp + 0x4c]
call dbg.sqlite3BtreeSetPageSize
test eax, eax
jne 0x857620
cmp byte [rsp + 0x38], 0
je 0x857600
cmp byte [rbx + 0x61], 0
jne 0x857620
movsx edx, byte [rbx + 0x64]
test dl, dl
js 0x85763c
mov rcx, r13
call sym.sqlite3BtreeSetAutoVacuum
movzx eax, byte [rsp + 0x48]
mov rdx, r15
mov rcx, rbx
mov rsi, qword [rsp + 0x40]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov byte [rbx + 0xb4], al
mov r9, rsi
call dbg.execSqlF
test eax, eax
mov r14d, eax
jne 0x8574b0
mov r9, rsi
mov rdx, r15
mov rcx, rbx
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
call dbg.execSqlF
test eax, eax
mov r14d, eax
jne 0x8574b0
mov byte [rbx + 0xb4], 0
mov r9, rsi
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 dbg.execSqlF
and dword [rbx + 0x2c], 0xfffffffb
test eax, eax
mov r14d, eax
jne 0x8574b0
mov r9, rsi
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 dbg.execSqlF
test eax, eax
mov r14d, eax
jne 0x8574b0
lea rdx, [rsp + 0x5c]
mov esi, 1
mov eax, 1
mov qword [rsp + 0x118], rdi
lea r15, [0x00c56dd8]
mov qword [rsp + 0x38], rdx
mov rdi, r15
mov r15, qword [rsp + 0x118]
mov r8, qword [rsp + 0x38]
movzx r14d, al
mov rcx, r12
mov edx, r14d
call sym.sqlite3BtreeGetMeta
movzx r8d, sil
mov edx, r14d
mov rcx, r13
add r8d, dword [rsp + 0x5c]
call sym.sqlite3BtreeUpdateMeta
test eax, eax
jne 0x857664
lea rax, [0x00c56de2]
add rdi, 2
cmp rax, rdi
je 0x85764b
movzx eax, byte [rdi]
movzx esi, byte [rdi + 1]
jmp 0x8572c4
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
mov r14d, 1
call dbg.sqlite3SetString
jmp 0x856ff9
lea r8, str.cannot_VACUUM_from_within_a_transaction
mov r14d, 1
call dbg.sqlite3SetString
jmp 0x856ff9
lea r9, [0x00c4da6c]
jmp 0x85703c
cmp byte [r12 + 0x11], 0
je 0x85736c
mov rcx, r12
call sym.sqlite3BtreeEnter.part.93
cmp byte [r13 + 0x11], 0
je 0x85737b
mov rcx, r13
call sym.sqlite3BtreeEnter.part.93
mov rax, qword [r12 + 8]
lea r9, [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov r10, qword [rcx]
test r10, r10
je 0x8573cf
mov rdx, qword [r13 + 8]
lea r9, [rsp + 0x60]
mov r8, r9
mov qword [rsp + 0x38], r9
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x60], rax
call qword [r10 + 0x50]
mov r9, qword [rsp + 0x38]
cmp eax, 0xc
mov r14d, eax
je 0x8573cf
test eax, eax
jne 0x857430
xor eax, eax
mov rdi, r9
mov ecx, 0x12
mov qword [rsp + 0x38], r9
rep stosd dword [rdi], eax
mov edx, 0x7fffffff
mov rcx, r9
mov rax, qword [r13]
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x80], rax
call dbg.sqlite3_backup_step
mov r9, qword [rsp + 0x38]
mov rcx, r9
call dbg.sqlite3_backup_finish
test eax, eax
mov r14d, eax
jne 0x85766c
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
cmp byte [r13 + 0x11], 0
je 0x857448
mov eax, dword [r13 + 0x14]
sub eax, 1
mov dword [r13 + 0x14], eax
je 0x857699
cmp byte [r12 + 0x11], 0
je 0x857463
mov eax, dword [r12 + 0x14]
sub eax, 1
mov dword [r12 + 0x14], eax
je 0x85768c
test r14d, r14d
jne 0x8574b0
mov rcx, r13
call sym.sqlite3BtreeCommit
test eax, eax
mov r14d, eax
jne 0x8574b0
mov rcx, r13
call sym.sqlite3BtreeGetAutoVacuum
mov rcx, r12
mov edx, eax
call sym.sqlite3BtreeSetAutoVacuum
mov rax, qword [r13 + 8]
mov r9d, 1
mov rcx, r12
mov r8d, dword [rsp + 0x4c]
mov edx, dword [rax + 0x34]
call dbg.sqlite3BtreeSetPageSize
mov r14d, eax
nop word cs:[rax + rax]
mov eax, dword [rsp + 0x28]
mov r9d, 1
xor r8d, r8d
mov rcx, r12
mov edx, 0xffffffff
mov byte [rbx + 0xb4], 0
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x30], rax
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0x74], eax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x78], eax
movzx eax, byte [rsp + 0x37]
mov byte [rbx + 0x68], al
call dbg.sqlite3BtreeSetPageSize
mov byte [rbx + 0x5f], 1
mov rcx, qword [rbp + 8]
call dbg.sqlite3BtreeClose
mov qword [rbp + 8], 0
mov qword [rbp + 0x18], 0
mov rcx, rbx
call dbg.sqlite3ResetAllSchemasOfConnection
jmp 0x856ff9
mov eax, dword [rsp + 0x28]
mov r9d, 1
xor r8d, r8d
mov rcx, r12
mov byte [rbx + 0xb4], 0
mov edx, 0xffffffff
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x30], rax
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0x74], eax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x78], eax
movzx eax, byte [rsp + 0x37]
mov byte [rbx + 0x68], al
call dbg.sqlite3BtreeSetPageSize
mov byte [rbx + 0x5f], 1
jmp 0x857510
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, r15
call dbg.sqlite3SetString
mov r14d, 1
jmp 0x8574b0
mov rcx, r12
call dbg.sqlite3BtreeGetRequestedReserve
mov rcx, r13
mov dword [rsp + 0x4c], eax
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + rsi + 0x18]
mov edx, dword [rax + 0x74]
call sym.sqlite3BtreeSetCacheSize
xor edx, edx
mov rcx, r12
call sym.sqlite3BtreeSetSpillSize
mov rcx, r13
mov edx, eax
call sym.sqlite3BtreeSetSpillSize
mov edx, 0x21
mov rcx, r13
call sym.sqlite3BtreeSetPagerFlags
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbx
call dbg.execSql
test eax, eax
mov r14d, eax
jne 0x8574b0
mov r14d, 2
jmp 0x85718c
mov edx, dword [rbx + 0x6c]
xor r9d, r9d
mov rcx, r13
mov r8d, dword [rsp + 0x4c]
call dbg.sqlite3BtreeSetPageSize
test eax, eax
je 0x8571dd
nop dword [rax + rax]
mov r14d, 7
jmp 0x8574b0
mov dword [rbx + 0x6c], 0
jmp 0x8571b7
mov rcx, r12
call sym.sqlite3BtreeGetAutoVacuum
mov edx, eax
jmp 0x8571f3
test r15, r15
je 0x85735c
mov rcx, r13
call sym.sqlite3BtreeCommit
mov r14d, eax
jmp 0x8574b0
mov r14d, eax
jmp 0x8574b0
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x857430
call dbg.pager_reset
jmp 0x857430
mov rcx, r12
call sym.sqlite3BtreeLeave.part.94
jmp 0x857463
mov rcx, r13
call sym.sqlite3BtreeLeave.part.94
jmp 0x857448