Function at 0x1400fd360
Capabilities:
Reference sql statements

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov rbp, rdx
mov r14, rcx
cmp byte [rdx + 0x4f], r15b
jne 0x1400fd393
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140101b40
lea eax, [r15 + 1]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
cmp dword [rdx + 0xa4], 1
jle 0x1400fd3b7
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140101b40
mov eax, 1
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
mov eax, dword [rdx + 0x2c]
lea r8, str.ATTACH_:memory:_AS_vacuum_db_
mov ecx, dword [rdx + 0x60]
mov dword [rsp + 0x80], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [rsp + 0x88], ecx
mov ecx, dword [rdx + 0x64]
cmp byte [rdx + 0x50], 1
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x70], rbx
mov ebx, dword [rdx + 0x28]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdx + 0xc8]
mov qword [rdx + 0xc8], r15
mov rdx, r14
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov rdi, qword [rax + 8]
mov qword [rsp + 0x38], r12
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
lea rax, str.ATTACH__AS_vacuum_db_
cmove r8, rax
movzx r12d, byte [rcx + 0x13]
mov rcx, rbp
call fcn.14007f250
mov esi, eax
movsxd rax, dword [rbp + 0x28]
cmp eax, ebx
jle 0x1400fd456
lea ecx, [rax - 1]
movsxd r15, ecx
shl r15, 5
add r15, qword [rbp + 0x20]
test esi, esi
jne 0x1400fd769
mov rcx, rax
mov qword [rsp + 0x30], r13
mov rax, qword [rbp + 0x20]
shl rcx, 5
mov r13, qword [rcx + rax - 0x18]
mov rcx, r13
call fcn.1400ced90
mov rcx, rdi
call fcn.1400cf9e0
mov ebx, eax
mov dword [rsp + 0x78], eax
cmp dword [rbp + 0x58], esi
je 0x1400fd4d0
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400fd4c1
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x120]
test rax, rax
je 0x1400fd4d0
mov rax, qword [rax + 0x28]
cmp dword [rax], 1
jne 0x1400fd4bc
mov eax, dword [rax + 0x1c]
jmp 0x1400fd4c5
mov eax, dword [rax + 0x28]
jmp 0x1400fd4c5
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x1400fd4d0
mov dword [rbp + 0x58], 0
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, r14
mov rcx, rbp
call fcn.14007f250
mov esi, eax
test eax, eax
jne 0x1400fd764
lea r8, str.BEGIN_
mov rdx, r14
mov rcx, rbp
call fcn.14007f250
mov esi, eax
test eax, eax
jne 0x1400fd764
lea edx, [rax + 2]
mov rcx, rdi
call fcn.1400ce4e0
mov esi, eax
test eax, eax
jne 0x1400fd764
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x1400fd531
mov dword [rbp + 0x58], esi
mov rcx, qword [rdi + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov rcx, r13
mov r8d, ebx
call fcn.1400d1930
test eax, eax
jne 0x1400fd75f
test r12b, r12b
jne 0x1400fd568
mov edx, dword [rbp + 0x58]
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
call fcn.1400d1930
test eax, eax
jne 0x1400fd75f
cmp byte [rbp + 0x51], 0
jne 0x1400fd75f
movsx eax, byte [rbp + 0x53]
test al, al
jns 0x1400fd582
mov rcx, rdi
call fcn.1400cf8d0
mov edx, eax
mov rcx, r13
call fcn.1400d1810
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, rbp
call fcn.14007ef50
mov esi, eax
test eax, eax
jne 0x1400fd764
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, r14
mov rcx, rbp
call fcn.14007ef50
mov esi, eax
test eax, eax
jne 0x1400fd764
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, rbp
call fcn.14007ef50
mov esi, eax
test eax, eax
jne 0x1400fd764
or dword [rbp + 0x2c], 0x8000000
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, rbp
call fcn.14007ef50
and dword [rbp + 0x2c], 0xf7ffffff
mov esi, eax
test eax, eax
jne 0x1400fd764
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, r14
mov rcx, rbp
call fcn.14007ef50
mov esi, eax
test eax, eax
jne 0x1400fd764
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, rbp
call fcn.14007ef50
mov esi, eax
test eax, eax
jne 0x1400fd764
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, rbp
call fcn.14007f250
mov esi, eax
test eax, eax
jne 0x1400fd764
xor r14d, r14d
lea r12, [0x14024d280]
nop dword [rax + rax]
movzx edx, byte [rdi + 0x11]
movzx ebx, byte [r14 + r12]
mov rsi, qword [rdi + 8]
test dl, dl
je 0x1400fd696
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400fd696
mov rcx, rdi
call fcn.140074840
movzx edx, byte [rdi + 0x11]
cmp ebx, 0xf
jne 0x1400fd6a9
mov rax, qword [rsi]
mov ebx, dword [rax + 0x84]
add ebx, dword [rdi + 0x1c]
jmp 0x1400fd6d6
mov rax, qword [rsi + 0x18]
lea ecx, [rbx*4 + 0x24]
add rcx, qword [rax + 0x50]
movzx eax, byte [rcx + 2]
movzx ebx, byte [rcx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx]
shl eax, 0x18
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 3]
or ebx, eax
test dl, dl
je 0x1400fd6e8
sub dword [rdi + 0x14], 1
jne 0x1400fd6e8
mov rcx, rdi
call fcn.14011bdb0
movzx r8d, byte [r14 + r12 + 1]
mov rcx, r13
movzx edx, byte [r14 + r12]
add r8d, ebx
call fcn.1400d1d70
mov esi, eax
test eax, eax
jne 0x1400fd764
add r14, 2
cmp r14, 0xa
jl 0x1400fd670
mov rdx, r13
mov rcx, rdi
call fcn.1400cefc0
mov esi, eax
test eax, eax
jne 0x1400fd764
mov rcx, r13
call fcn.1400ced90
mov esi, eax
test eax, eax
jne 0x1400fd764
mov rcx, r13
call fcn.1400cf8d0
mov edx, eax
mov rcx, rdi
call fcn.1400d1810
mov rax, qword [r13 + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x78]
mov rcx, rdi
mov edx, dword [rax + 0x34]
call fcn.1400d1930
mov esi, eax
jmp 0x1400fd764
mov esi, 7
mov r13, qword [rsp + 0x30]
mov eax, dword [rsp + 0x80]
mov edx, 0xffffffff
mov dword [rbp + 0x2c], eax
mov r8d, edx
mov eax, dword [rsp + 0x88]
mov rcx, rdi
mov dword [rbp + 0x60], eax
mov eax, dword [rsp + 0x20]
lea r9d, [rdx + 2]
mov dword [rbp + 0x64], eax
mov rax, qword [rsp + 0x28]
mov qword [rbp + 0xc8], rax
call fcn.1400d1930
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
mov byte [rbp + 0x4f], 1
test r15, r15
je 0x1400fd7d5
mov rcx, qword [r15 + 8]
call fcn.1400ce970
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbp
call fcn.1400fbba0
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret