Function at 0x180129fa0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x48
xor r13d, r13d
mov rbx, rdx
mov r14, rcx
cmp byte [rdx + 0x53], r13b
jne 0x18012a0b0
mov rdi, qword [rcx]
test rdi, rdi
je 0x18012a069
cmp qword [rdx + 0x290], r13
je 0x180129fe3
mov rdx, rdi
mov rcx, rbx
call fcn.1800d60e0
jmp 0x18012a069
cmp rdi, qword [rdx + 0x178]
jb 0x18012a00e
cmp rdi, qword [rdx + 0x180]
jae 0x18012a00e
mov rax, qword [rdx + 0x170]
mov qword [rdi], rax
dec dword [rdx + 0x158]
mov qword [rdx + 0x170], rdi
jmp 0x18012a069
cmp dword [0x1801e5920], r13d
je 0x18012a060
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x18012a029
call qword [0x1801e59a8]
mov rcx, rdi
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rdi
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x18012a069
call qword [0x1801e59b8]
jmp 0x18012a069
mov rcx, rdi
call qword [0x1801e5950]
mov edx, 0x28
mov rcx, rbx
call fcn.1800f8480
test rax, rax
je 0x18012a09d
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1801af3c0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1801af3d0]
movsd qword [rax + 0x20], xmm0
mov qword [r14], rax
mov eax, 1
add rsp, 0x48
pop r14
pop r13
pop rdi
pop rbx
ret
cmp dword [rdx + 0xa8], 1
jle 0x18012a1c4
mov rdi, qword [rcx]
test rdi, rdi
je 0x18012a168
cmp qword [rdx + 0x290], r13
je 0x18012a0e2
mov rdx, rdi
mov rcx, rbx
call fcn.1800d60e0
jmp 0x18012a168
cmp rdi, qword [rdx + 0x178]
jb 0x18012a10d
cmp rdi, qword [rdx + 0x180]
jae 0x18012a10d
mov rax, qword [rdx + 0x170]
mov qword [rdi], rax
dec dword [rdx + 0x158]
mov qword [rdx + 0x170], rdi
jmp 0x18012a168
cmp dword [0x1801e5920], r13d
je 0x18012a15f
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x18012a128
call qword [0x1801e59a8]
mov rcx, rdi
call qword [0x1801e5960]
dec qword [0x1801ee598]
movsxd rcx, eax
sub qword [0x1801ee550], rcx
mov rcx, rdi
call qword [0x1801e5950]
mov rcx, qword [0x1801ee840]
test rcx, rcx
je 0x18012a168
call qword [0x1801e59b8]
jmp 0x18012a168
mov rcx, rdi
call qword [0x1801e5950]
mov edx, 0x2b
mov rcx, rbx
call fcn.1800f8480
test rax, rax
je 0x18012a1b1
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1801af3e8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1801af3f8]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1801af400]
mov word [rax + 0x28], cx
movzx ecx, byte [0x1801af402]
mov byte [rax + 0x2a], cl
mov qword [r14], rax
mov eax, 1
add rsp, 0x48
pop r14
pop r13
pop rdi
pop rbx
ret
mov eax, dword [rdx + 0x2c]
lea r8, str.ATTACH_:memory:_AS_vacuum_db_
mov ecx, dword [rdx + 0x64]
mov edi, dword [rdx + 0x28]
mov dword [rsp + 0x80], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [rsp + 0x88], ecx
mov ecx, dword [rdx + 0x68]
cmp byte [rdx + 0x54], 2
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdx + 0xc8]
mov qword [rdx + 0xc8], r13
mov rdx, r14
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x40], rsi
mov rsi, qword [rax + 8]
mov qword [rsp + 0x30], r15
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
lea rax, str.ATTACH__AS_vacuum_db_
cmovne r8, rax
movzx r15d, byte [rcx + 0x14]
mov rcx, rbx
call fcn.180083fe0
mov ebp, eax
movsxd rax, dword [rbx + 0x28]
cmp eax, edi
jle 0x18012a25e
lea ecx, [rax - 1]
movsxd r13, ecx
shl r13, 5
add r13, qword [rbx + 0x20]
test ebp, ebp
jne 0x18012a53c
mov rcx, rax
mov qword [rsp + 0x38], r12
mov rax, qword [rbx + 0x20]
shl rcx, 5
mov r12, qword [rcx + rax - 0x18]
mov rcx, r12
call fcn.1800f03a0
mov rcx, rsi
call fcn.1800f1070
mov edi, eax
mov dword [rsp + 0x78], eax
cmp dword [rbx + 0x5c], ebp
je 0x18012a2b8
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rcx + 8]
mov rcx, qword [rdx + 8]
mov rdx, qword [rcx]
mov rcx, qword [rdx + 0x120]
test rcx, rcx
je 0x18012a2b8
cmp dword [rcx], ebp
je 0x18012a2b8
mov dword [rbx + 0x5c], ebp
lea r8, str.PRAGMA_vacuum_db.synchronousOFF
mov rdx, r14
mov rcx, rbx
call fcn.180083fe0
mov ebp, eax
test eax, eax
jne 0x18012a537
lea r8, str.BEGIN_
mov rdx, r14
mov rcx, rbx
call fcn.180083fe0
mov ebp, eax
test eax, eax
jne 0x18012a537
lea edx, [rax + 2]
mov rcx, rsi
call fcn.1800efb00
mov ebp, eax
test eax, eax
jne 0x18012a537
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x18012a319
mov dword [rbx + 0x5c], ebp
mov rcx, qword [rsi + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov rcx, r12
mov r8d, edi
call fcn.1800f2da0
test eax, eax
jne 0x18012a532
test r15b, r15b
jne 0x18012a350
mov edx, dword [rbx + 0x5c]
xor r9d, r9d
mov r8d, edi
mov rcx, r12
call fcn.1800f2da0
test eax, eax
jne 0x18012a532
cmp byte [rbx + 0x55], 0
jne 0x18012a532
movsx eax, byte [rbx + 0x58]
test al, al
jns 0x18012a36a
mov rcx, rsi
call fcn.1800f0f80
mov edx, eax
mov rcx, r12
call fcn.1800f2c80
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, rbx
call fcn.180083d10
mov ebp, eax
test eax, eax
jne 0x18012a537
lea r8, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov rdx, r14
mov rcx, rbx
call fcn.180083d10
mov ebp, eax
test eax, eax
jne 0x18012a537
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, rbx
call fcn.180083d10
mov ebp, eax
test eax, eax
jne 0x18012a537
or dword [rbx + 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, rbx
call fcn.180083d10
and dword [rbx + 0x2c], 0xf7ffffff
mov ebp, eax
test eax, eax
jne 0x18012a537
lea r8, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov rdx, r14
mov rcx, rbx
call fcn.180083d10
mov ebp, eax
test eax, eax
jne 0x18012a537
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, rbx
call fcn.180083d10
mov ebp, eax
test eax, eax
jne 0x18012a537
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, rbx
call fcn.180083fe0
mov ebp, eax
test eax, eax
jne 0x18012a537
xor r14d, r14d
lea rbp, [0x1801a64d0]
movzx r8d, byte [rsi + 0x11]
movzx edi, byte [r14 + rbp]
mov r15, qword [rsi + 8]
test r8b, r8b
je 0x18012a479
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x18012a479
mov rcx, rsi
call fcn.18007b390
movzx r8d, byte [rsi + 0x11]
cmp edi, 0xf
jne 0x18012a48c
mov rax, qword [r15]
mov edi, dword [rax + 0x84]
add edi, dword [rsi + 0x1c]
jmp 0x18012a4a0
mov rax, qword [r15 + 0x18]
lea edx, [rdi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov edi, dword [rdx + rcx]
bswap edi
test r8b, r8b
je 0x18012a4b3
sub dword [rsi + 0x14], 1
jne 0x18012a4b3
mov rcx, rsi
call fcn.18014cdf0
movzx r8d, byte [r14 + rbp + 1]
mov rcx, r12
movzx edx, byte [r14 + rbp]
add r8d, edi
call fcn.1800f3320
mov ebp, eax
test eax, eax
jne 0x18012a537
add r14, 2
lea rbp, [0x1801a64d0]
cmp r14, 0xa
jl 0x18012a450
mov rdx, r12
mov rcx, rsi
call fcn.1800f05d0
mov ebp, eax
test eax, eax
jne 0x18012a537
mov rcx, r12
call fcn.1800f03a0
mov ebp, eax
test eax, eax
jne 0x18012a537
mov rcx, r12
call fcn.1800f0f80
mov edx, eax
mov rcx, rsi
call fcn.1800f2c80
mov rax, qword [r12 + 8]
lea r9d, [rbp + 1]
mov r8d, dword [rsp + 0x78]
mov rcx, rsi
mov edx, dword [rax + 0x34]
call fcn.1800f2da0
mov ebp, eax
jmp 0x18012a537
mov ebp, 7
mov r12, qword [rsp + 0x38]
mov eax, dword [rsp + 0x80]
mov edx, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r8d, edx
mov eax, dword [rsp + 0x88]
mov rcx, rsi
mov dword [rbx + 0x64], eax
mov eax, dword [rsp + 0x20]
lea r9d, [rdx + 2]
mov dword [rbx + 0x68], eax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0xc8], rax
call fcn.1800f2da0
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov byte [rbx + 0x53], 1
test r13, r13
je 0x18012a5a3
mov rcx, qword [r13 + 8]
call fcn.1800eff70
mov qword [r13 + 8], 0
mov qword [r13 + 0x18], 0
mov rcx, rbx
call fcn.180128050
mov eax, ebp
mov rbp, qword [rsp + 0x70]
add rsp, 0x48
pop r14
pop r13
pop rdi
pop rbx
ret