Function at 0x1800ab360
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x78
xor r15d, r15d
mov r13, r9
mov rbx, rdx
mov r14, rcx
mov ebp, 1
cmp byte [rdx + 0x65], r15b
jne 0x1800ab472
mov edx, 0x28
mov rcx, rbx
call fcn.180008a30
mov rdi, rax
test rax, rax
je 0x1800ab3c4
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1800edce0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1800edcf0]
movsd qword [rax + 0x20], xmm0
mov rcx, qword [r14]
test rcx, rcx
je 0x1800ab45f
cmp rcx, qword [rbx + 0x1e0]
jae 0x1800ab433
cmp rcx, qword [rbx + 0x1d0]
jb 0x1800ab406
mov rax, qword [rbx + 0x1c8]
mov qword [rcx], rax
mov eax, ebp
mov qword [rbx + 0x1c8], rcx
mov qword [r14], rdi
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
cmp rcx, qword [rbx + 0x1d8]
jb 0x1800ab433
mov rax, qword [rbx + 0x1b8]
mov qword [rcx], rax
mov eax, ebp
mov qword [rbx + 0x1b8], rcx
mov qword [r14], rdi
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
cmp qword [rbx + 0x2f8], r15
je 0x1800ab45a
mov rdx, rcx
mov rcx, rbx
call fcn.180008610
mov eax, ebp
mov qword [r14], rdi
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
call fcn.180008570
mov qword [r14], rdi
mov eax, ebp
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], ebp
jle 0x1800ab4ed
mov edx, 0x2b
mov rcx, rbx
call fcn.180008a30
mov rdi, rax
test rax, rax
je 0x1800ab4c6
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1800edd08]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1800edd18]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1800edd20]
mov word [rdi + 0x28], ax
movzx eax, byte [0x1800edd22]
mov byte [rdi + 0x2a], al
mov rcx, qword [r14]
test rcx, rcx
je 0x1800ab45f
cmp rcx, qword [rbx + 0x1e0]
jae 0x1800ab433
cmp rcx, qword [rbx + 0x1d0]
jae 0x1800ab3e2
jmp 0x1800ab406
mov eax, dword [rdx + 0x4c]
lea rdx, [0x180000000]
mov dword [rsp + 0x28], eax
test r13, r13
je 0x1800ab59b
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0xe2d70], 3
je 0x1800ab544
mov edx, 0x12
mov rcx, rbx
call fcn.180008a30
mov rdi, rax
test rax, rax
je 0x1800ab4c6
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1800edd38]
mov word [rax + 0x10], cx
jmp 0x1800ab4c6
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1800ab568
cmp byte [r9 + 0x16], bpl
jne 0x1800ab568
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x1800ab5a2
test bpl, cl
je 0x1800ab57a
and dword [rbx + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rbx + 0x4c], 6
jmp 0x1800ab5a2
movzx edx, bpl
mov rcx, r13
call fcn.180057a80
and dword [rbx + 0x4c], 0xfffffffe
mov r9, rax
or dword [rbx + 0x4c], 6
mov r8d, dword [rsp + 0xc0]
jmp 0x1800ab5a2
lea r9, [0x1800e23ff]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x78]
mov dword [rsp + 0x38], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x58], rdx
mov rdx, qword [rbx + 0x80]
mov qword [rsp + 0x50], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x60], rdx
movzx edx, byte [rbx + 0x6e]
or rax, 0x201
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
mov byte [rbx + 0x6e], r15b
mov byte [rsp + 0xb8], dl
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x70], r12
movsxd r12, r8d
mov rdx, r12
shl rdx, 5
mov qword [rsp + 0x40], rdx
mov rcx, qword [rdx + rax]
mov rdi, qword [rdx + rax + 8]
mov qword [rsp + 0x48], rcx
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r15b
jne 0x1800ab63c
mov dword [rsp + 0x30], r15d
cmp byte [rcx + 0x14], r15b
je 0x1800ab640
mov dword [rsp + 0x30], ebp
mov eax, dword [rbx + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x34], eax
mov rcx, rbx
call fcn.1800ab170
mov esi, eax
mov eax, dword [rsp + 0x28]
mov dword [rbx + 0x4c], eax
test esi, esi
jne 0x1800aba43
movsxd rax, dword [rsp + 0x34]
shl rax, 5
add rax, qword [rbx + 0x20]
mov qword [rsp + 0x20], rax
mov r15, qword [rax + 8]
test r13, r13
je 0x1800ab6e6
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x1800ab6cc
mov rax, qword [rax + 0x30]
lea rdx, [rsp + 0x28]
call qword [case.0x180005c07.0]
test eax, eax
jne 0x1800ab8bf
cmp qword [rsp + 0x28], 0
jg 0x1800ab8bf
movsxd r12, dword [rsp + 0xc0]
mov rax, qword [rbx + 0x20]
or dword [rbx + 0x2c], 8
mov rcx, qword [rsp + 0x40]
movzx ebp, byte [rcx + rax + 0x10]
mov eax, dword [rbx + 0x30]
and eax, 0x38
or ebp, eax
mov rcx, rdi
call fcn.180011c10
mov rcx, qword [rbx + 0x20]
shl r12, 5
mov dword [rsp + 0x28], eax
mov rdx, qword [r12 + rcx + 0x18]
mov rcx, r15
mov edx, dword [rdx + 0x74]
call fcn.180011940
xor edx, edx
mov rcx, rdi
call fcn.1800119e0
mov edx, eax
mov rcx, r15
call fcn.1800119e0
or ebp, 0x20
mov rcx, r15
mov edx, ebp
call fcn.180011ab0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rbx
call fcn.1800aaf80
mov esi, eax
test eax, eax
jne 0x1800aba3e
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rdi
cmove edx, eax
xor r8d, r8d
call fcn.180012280
mov esi, eax
test eax, eax
jne 0x1800aba3e
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1800ab77f
test r13, r13
jne 0x1800ab77f
mov dword [rbx + 0x74], r13d
mov rax, qword [rdi + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x28]
mov rcx, r15
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.180011b10
test eax, eax
jne 0x1800aba39
cmp dword [rsp + 0x30], eax
jne 0x1800ab7bf
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r15
call fcn.180011b10
test eax, eax
jne 0x1800aba39
cmp byte [rbx + 0x67], 0
jne 0x1800aba39
movsx eax, byte [rbx + 0x6a]
test al, al
jns 0x1800ab7d9
mov rcx, rdi
call fcn.180011e00
mov edx, eax
mov rcx, r15
call fcn.180011d70
mov eax, dword [rsp + 0x34]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rbp, qword [rsp + 0x48]
mov rdx, r14
mov r9, rbp
mov byte [rbx + 0xc4], al
mov rcx, rbx
call fcn.1800ab170
mov esi, eax
test eax, eax
jne 0x1800aba3e
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rbx
call fcn.1800ab170
mov esi, eax
test eax, eax
jne 0x1800aba3e
mov r9, rbp
mov byte [rbx + 0xc4], al
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, r14
mov rcx, rbx
call fcn.1800ab170
and dword [rbx + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1800aba3e
mov r9, rbp
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r14
mov rcx, rbx
call fcn.1800ab170
mov esi, eax
test eax, eax
jne 0x1800aba3e
xor ebp, ebp
lea r12, [0x180000000]
cmp byte [rdi + 0x11], 0
movzx esi, byte [r12 + rbp + 0xedf58]
mov r14, qword [rdi + 8]
je 0x1800ab8a5
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1800ab8a5
mov rcx, rdi
call fcn.180055bf0
cmp esi, 0xf
jne 0x1800ab981
mov rax, qword [r14]
mov esi, dword [rax + 0x84]
add esi, dword [rdi + 0x1c]
jmp 0x1800ab995
mov edx, 0x1b
mov rcx, rbx
mov esi, ebp
call fcn.180008a30
mov rbp, rax
test rax, rax
je 0x1800ab902
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1800edd68]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1800edd70]
mov word [rax + 0x18], cx
movzx eax, byte [0x1800edd72]
mov byte [rbp + 0x1a], al
mov rcx, qword [r14]
test rcx, rcx
je 0x1800ab979
cmp rcx, qword [rbx + 0x1e0]
jae 0x1800ab957
cmp rcx, qword [rbx + 0x1d0]
jb 0x1800ab935
mov rax, qword [rbx + 0x1c8]
mov qword [rcx], rax
mov qword [rbx + 0x1c8], rcx
mov qword [r14], rbp
jmp 0x1800aba3e
cmp rcx, qword [rbx + 0x1d8]
jb 0x1800ab957
mov rax, qword [rbx + 0x1b8]
mov qword [rcx], rax
mov qword [rbx + 0x1b8], rcx
mov qword [r14], rbp
jmp 0x1800aba3e
cmp qword [rbx + 0x2f8], 0
je 0x1800ab974
mov rdx, rcx
mov rcx, rbx
call fcn.180008610
mov qword [r14], rbp
jmp 0x1800aba3e
call fcn.180008570
mov qword [r14], rbp
jmp 0x1800aba3e
mov rax, qword [r14 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
cmp byte [rdi + 0x11], 0
je 0x1800ab9a9
sub dword [rdi + 0x14], 1
jne 0x1800ab9a9
mov rcx, rdi
call fcn.180055bc0
movzx r8d, byte [r12 + rbp + 0xedf59]
mov rcx, r15
movzx edx, byte [r12 + rbp + 0xedf58]
add r8d, esi
call fcn.18001c370
mov esi, eax
test eax, eax
jne 0x1800aba3e
add rbp, 2
cmp rbp, 0xa
jl 0x1800ab881
test r13, r13
jne 0x1800ab9f0
mov rdx, r15
mov rcx, rdi
call fcn.18000d2b0
mov esi, eax
test eax, eax
jne 0x1800aba3e
mov rcx, r15
call fcn.1800137b0
mov esi, eax
test eax, eax
jne 0x1800aba3e
test r13, r13
jne 0x1800aba3e
mov rcx, r15
call fcn.180011e00
mov edx, eax
mov rcx, rdi
call fcn.180011d70
mov rcx, r15
call fcn.180011c10
mov rcx, qword [r15 + 8]
mov r9d, 1
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rdi
call fcn.180011b10
mov esi, eax
jmp 0x1800aba3e
mov esi, 7
mov r15, qword [rsp + 0x20]
mov eax, dword [rsp + 0x38]
mov r9d, 1
mov dword [rbx + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov edx, 0xffffffff
mov qword [rbx + 0x30], rax
mov rcx, rdi
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0xb8]
mov byte [rbx + 0x6e], al
mov byte [rbx + 0xc4], 0
call fcn.180011b10
mov r12, qword [rsp + 0x70]
mov byte [rbx + 0x65], 1
test r15, r15
je 0x1800abab7
mov rcx, qword [r15 + 8]
call fcn.180011790
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.180034640
mov eax, esi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret