Function at 0x140126f60
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x60
xor r15d, r15d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x53], r15b
jne 0x140126f91
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.14012b680
lea eax, [r15 + 1]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
cmp dword [rdx + 0xac], 1
jle 0x140126fb4
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.14012b680
mov eax, 1
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
mov eax, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x68]
mov dword [rsp + 0x28], eax
and eax, 0xfff5ff7f
mov qword [rsp + 0x80], rbp
or eax, 0x10202800
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rdx + 0x6c]
mov dword [rsp + 0x30], ecx
movzx ecx, byte [rdx + 0x5c]
mov byte [rdx + 0x5c], r15b
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
movsxd r13, r8d
lea r8, str.ATTACHAS_vacuum_db
mov byte [rsp + 0x88], cl
shl r13, 5
mov qword [rsp + 0x40], r14
movsxd r14, dword [rdx + 0x28]
mov rdx, rsi
mov dword [rsp + 0x24], r14d
mov rbp, qword [rax + r13 + 8]
mov r12, qword [rax + r13]
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x11]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400e4f00
mov edi, eax
test eax, eax
jne 0x1401272b0
mov r15, r14
shl r15, 5
add r15, qword [rbx + 0x20]
mov r14, qword [r15 + 8]
mov rcx, r14
call fcn.140104480
cmp byte [rbp + 0x11], dil
je 0x140127077
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], dil
jne 0x140127077
mov rcx, rbp
call fcn.1400db7a0
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x30]
sub ecx, dword [rax + 0x34]
cmp byte [rbp + 0x11], 0
mov dword [rsp + 0x98], ecx
je 0x14012709c
sub dword [rbp + 0x14], 1
jne 0x14012709c
mov rcx, rbp
call fcn.1401468f0
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + r13 + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r14
call fcn.140106cc0
xor edx, edx
mov rcx, rbp
call fcn.140106e90
mov edx, eax
mov rcx, r14
call fcn.140106e90
mov edx, 0x21
mov rcx, r14
call fcn.140106e30
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4f00
mov edi, eax
test eax, eax
jne 0x1401272b0
lea edx, [rax + 2]
mov rcx, rbp
call fcn.140103e50
mov edi, eax
test eax, eax
jne 0x1401272b0
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140127112
mov dword [rbx + 0x60], edi
mov rax, qword [rbp + 8]
xor r9d, r9d
mov r13d, dword [rsp + 0x98]
mov rcx, r14
mov r8d, r13d
mov edx, dword [rax + 0x30]
call fcn.140106d50
test eax, eax
jne 0x1401272ab
cmp dword [rsp + 0x20], eax
jne 0x140127156
mov edx, dword [rbx + 0x60]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call fcn.140106d50
test eax, eax
jne 0x1401272ab
cmp byte [rbx + 0x55], 0
jne 0x1401272ab
movzx eax, byte [rbx + 0x58]
test al, al
js 0x14012716d
movsx eax, al
jmp 0x140127175
mov rcx, rbp
call fcn.140104eb0
mov edx, eax
mov rcx, r14
call fcn.140106c30
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r9, r12
mov byte [rbx + 0xa8], al
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4fd0
mov edi, eax
test eax, eax
jne 0x1401272b0
mov r9, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4fd0
mov edi, eax
test eax, eax
jne 0x1401272b0
mov r9, r12
mov byte [rbx + 0xa8], al
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4fd0
and dword [rbx + 0x2c], 0xefffffff
mov edi, eax
test eax, eax
jne 0x1401272b0
mov r9, r12
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rsi
mov rcx, rbx
call fcn.1400e4fd0
mov edi, eax
test eax, eax
jne 0x1401272b0
xor esi, esi
lea r12, [0x140204270]
nop dword [rax + rax]
movzx edx, byte [rsi + r12]
lea r8, [rsp + 0x98]
mov rcx, rbp
call fcn.140104f10
movzx r8d, byte [rsi + r12 + 1]
mov rcx, r14
add r8d, dword [rsp + 0x98]
movzx edx, byte [rsi + r12]
call fcn.1401073f0
mov edi, eax
test eax, eax
jne 0x1401272b0
add rsi, 2
cmp rsi, 0xa
jl 0x140127220
mov rdx, r14
mov rcx, rbp
call fcn.140104650
mov edi, eax
test eax, eax
jne 0x1401272b0
mov rcx, r14
call fcn.140104480
mov edi, eax
test eax, eax
jne 0x1401272b0
mov rcx, r14
call fcn.140104eb0
mov edx, eax
mov rcx, rbp
call fcn.140106c30
mov rax, qword [r14 + 8]
lea r9d, [rdi + 1]
mov r8d, r13d
mov rcx, rbp
mov edx, dword [rax + 0x30]
call fcn.140106d50
mov edi, eax
jmp 0x1401272b0
mov edi, 7
mov eax, dword [rsp + 0x28]
or r8d, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r9d, 1
mov eax, dword [rsp + 0x2c]
or edx, r8d
mov dword [rbx + 0x68], eax
mov rcx, rbp
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x6c], eax
movzx eax, byte [rsp + 0x88]
mov byte [rbx + 0x5c], al
mov byte [rbx + 0xa8], 0
call fcn.140106d50
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
mov byte [rbx + 0x53], 1
test r15, r15
je 0x140127325
mov rcx, qword [r15 + 8]
call fcn.1401041f0
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.140125bf0
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret