Function at 0x1800610b0
Capabilities:
Reference sql statements

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov rdi, rdx
mov r14, rcx
cmp byte [rdx + 0x53], r15b
jne 0x1800610e3
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.180065550
lea eax, [r15 + 1]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
cmp dword [rdx + 0xac], 1
jle 0x180061107
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.180065550
mov eax, 1
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
mov eax, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x68]
mov qword [rsp + 0x70], rbx
mov ebx, dword [rdx + 0x28]
mov dword [rsp + 0x88], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [rdx + 0x54], 2
mov dword [rsp + 0x20], ecx
mov ecx, dword [rdx + 0x6c]
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x24], ecx
movzx ecx, byte [rdx + 0x5c]
mov byte [rdx + 0x5c], r15b
mov byte [rsp + 0x78], cl
mov qword [rsp + 0x48], rbp
mov rbp, qword [rax + 8]
mov rax, qword [rbp + 8]
lea r8, str.ATTACH_:memory:_AS_vacuum_db_
mov rdx, r14
mov rcx, qword [rax]
mov qword [rsp + 0x40], rsi
movzx eax, byte [rcx + 0x11]
mov rcx, rdi
mov dword [rsp + 0x80], eax
lea rax, str.ATTACH__AS_vacuum_db_
cmovne r8, rax
call fcn.18001ff70
mov esi, eax
movsxd rax, dword [rdi + 0x28]
cmp eax, ebx
jle 0x18006119d
lea ecx, [rax - 1]
movsxd r15, ecx
shl r15, 5
add r15, qword [rdi + 0x20]
test esi, esi
jne 0x18006146a
mov rcx, rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x38], r12
shl rcx, 5
mov qword [rsp + 0x30], r13
mov r13, qword [rcx + rax - 0x18]
mov rcx, r13
call fcn.18003ef00
cmp byte [rbp + 0x11], sil
je 0x1800611de
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], sil
jne 0x1800611de
mov rcx, rbp
call fcn.1800176c0
mov rax, qword [rbp + 8]
mov r12d, dword [rax + 0x30]
sub r12d, dword [rax + 0x34]
cmp byte [rbp + 0x11], 0
je 0x1800611fd
dec dword [rbp + 0x14]
jne 0x1800611fd
mov rcx, rbp
call fcn.180080340
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r13
call fcn.180041910
xor edx, edx
mov rcx, rbp
call fcn.180041b70
mov rcx, r13
mov edx, eax
call fcn.180041b70
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, r14
mov rcx, rdi
call fcn.18001ff70
mov esi, eax
test eax, eax
jne 0x180061460
lea r8, str.BEGIN_
mov rdx, r14
mov rcx, rdi
call fcn.18001ff70
mov esi, eax
test eax, eax
jne 0x180061460
lea edx, [rax + 2]
mov rcx, rbp
call fcn.18003e8e0
mov esi, eax
test eax, eax
jne 0x180061460
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x180061281
mov dword [rdi + 0x60], esi
mov rax, qword [rbp + 8]
xor r9d, r9d
mov r8d, r12d
mov edx, dword [rax + 0x30]
mov rcx, r13
call fcn.180041a30
test eax, eax
jne 0x18006145b
cmp dword [rsp + 0x80], eax
jne 0x1800612c0
mov edx, dword [rdi + 0x60]
xor r9d, r9d
mov r8d, r12d
mov rcx, r13
call fcn.180041a30
test eax, eax
jne 0x18006145b
cmp byte [rdi + 0x55], 0
jne 0x18006145b
movzx eax, byte [rdi + 0x58]
test al, al
js 0x1800612d7
movsx eax, al
jmp 0x1800612df
mov rcx, rbp
call fcn.18003f9d0
mov edx, eax
mov rcx, r13
call fcn.180041880
lea r8, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, r14
mov rcx, rdi
call fcn.18001fea0
mov esi, eax
test eax, eax
jne 0x180061460
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, r14
mov rcx, rdi
call fcn.18001fea0
mov esi, eax
test eax, eax
jne 0x180061460
lea r8, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov rdx, r14
mov rcx, rdi
call fcn.18001fea0
mov esi, eax
test eax, eax
jne 0x180061460
or dword [rdi + 0x2c], 0x10000000
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
mov rdx, r14
mov rcx, rdi
call fcn.18001fea0
and dword [rdi + 0x2c], 0xefffffff
mov esi, eax
test eax, eax
jne 0x180061460
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, r14
mov rcx, rdi
call fcn.18001fea0
mov esi, eax
test eax, eax
jne 0x180061460
lea r8, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov rdx, r14
mov rcx, rdi
call fcn.18001fea0
mov esi, eax
test eax, eax
jne 0x180061460
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov rdx, r14
mov rcx, rdi
call fcn.18001ff70
mov esi, eax
test eax, eax
jne 0x180061460
xor ebx, ebx
lea r14, [0x1800a09e0]
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rbx + r14]
lea r8, [rsp + 0x80]
mov rcx, rbp
call fcn.18003fa30
movzx r8d, byte [rbx + r14 + 1]
movzx edx, byte [rbx + r14]
add r8d, dword [rsp + 0x80]
mov rcx, r13
call fcn.180042080
mov esi, eax
test eax, eax
jne 0x180061460
add rbx, 2
cmp rbx, 0xa
jl 0x1800613d0
mov rdx, r13
mov rcx, rbp
call fcn.18003f130
mov esi, eax
test eax, eax
jne 0x180061460
mov rcx, r13
call fcn.18003ef00
mov esi, eax
test eax, eax
jne 0x180061460
mov rcx, r13
call fcn.18003f9d0
mov rcx, rbp
mov edx, eax
call fcn.180041880
mov rax, qword [r13 + 8]
lea r9d, [rsi + 1]
mov edx, dword [rax + 0x30]
mov r8d, r12d
mov rcx, rbp
call fcn.180041a30
mov esi, eax
jmp 0x180061460
mov esi, 7
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
mov eax, dword [rsp + 0x88]
or r8d, 0xffffffff
mov r9d, 1
mov dword [rdi + 0x2c], eax
mov eax, dword [rsp + 0x20]
or edx, r8d
mov dword [rdi + 0x68], eax
mov eax, dword [rsp + 0x24]
mov rcx, rbp
mov dword [rdi + 0x6c], eax
movzx eax, byte [rsp + 0x78]
mov byte [rdi + 0x5c], al
call fcn.180041a30
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
mov byte [rdi + 0x53], 1
test r15, r15
je 0x1800614cb
mov rcx, qword [r15 + 8]
call fcn.18003ec80
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rdi
call fcn.18005fbe0
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret