Function at 0x1400a33d0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor r12d, r12d
mov r13, r9
mov rsi, rdx
mov r15, rcx
mov r14d, 1
cmp byte [rdx + 0x65], r12b
jne 0x1400a3459
lea rbp, str.cannot_VACUUM_from_within_a_transaction
mov rbx, 0xffffffffffffffff
nop
cmp byte [rbx + rbp + 1], r12b
lea rbx, [rbx + 1]
jne 0x1400a3410
lea rdx, [rbx + 1]
mov rcx, rsi
call fcn.1400080f0
mov rdi, rax
test rax, rax
je 0x1400a343e
lea r8, [rbx + 1]
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [r15]
test rdx, rdx
je 0x1400a344e
mov rcx, rsi
call fcn.140007c00
mov qword [r15], rdi
mov eax, r14d
jmp 0x1400a3a34
cmp dword [rdx + 0xd8], r14d
jle 0x1400a347d
lea rbp, str.cannot_VACUUM___SQL_statements_in_progress
mov rbx, 0xffffffffffffffff
cmp byte [rbx + rbp + 1], r12b
lea rbx, [rbx + 1]
jne 0x1400a3470
jmp 0x1400a341b
mov ebx, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1400a3515
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0xe1370], 3
je 0x1400a34c2
lea rbp, str.non_text_filename
mov rbx, 0xffffffffffffffff
cmp byte [rbx + rbp + 1], r12b
lea rbx, [rbx + 1]
jne 0x1400a34b2
jmp 0x1400a341b
mov edx, 0x202
andn eax, ecx, edx
jne 0x1400a34e2
cmp byte [r9 + 0x16], r14b
jne 0x1400a34e2
mov r9, qword [r9 + 8]
and dword [rsi + 0x4c], 0xfffffffe
or dword [rsi + 0x4c], 6
jmp 0x1400a351c
test r14b, cl
je 0x1400a34f4
and dword [rsi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rsi + 0x4c], 6
jmp 0x1400a351c
movzx edx, r14b
mov rcx, r13
call fcn.140033dc0
and dword [rsi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rsi + 0x4c], 6
mov r8d, dword [rsp + 0xc0]
jmp 0x1400a351c
lea r9, [0x1400fd21d]
mov eax, dword [rsi + 0x2c]
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x78]
mov dword [rsp + 0x40], eax
or eax, 6
mov dword [rsi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x58], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x60], rdx
mov rdx, qword [rsi + 0x80]
or rax, 0x201
mov qword [rsi + 0x30], rax
movsxd rax, r8d
mov rcx, rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov qword [rsp + 0x68], rdx
movzx edx, byte [rsi + 0x6e]
mov byte [rsi + 0x6e], r12b
mov rdi, qword [rax + rcx + 8]
mov byte [rsp + 0xb8], dl
mov rdx, qword [rax + rcx]
mov qword [rsp + 0x48], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x50], rdx
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x1400a35ae
mov dword [rsp + 0x28], r12d
cmp byte [rcx + 0x14], r12b
je 0x1400a35b3
mov dword [rsp + 0x28], r14d
mov eax, dword [rsi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r15
mov dword [rsp + 0x2c], eax
mov rcx, rsi
call fcn.1400a3250
mov dword [rsi + 0x4c], ebx
mov ebp, eax
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x1400a39bb
movsxd rax, dword [rsp + 0x2c]
shl rax, 5
add rax, qword [rsi + 0x20]
mov qword [rsp + 0x20], rax
mov r12, qword [rax + 8]
test r13, r13
je 0x1400a3668
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x30], 0
mov r8, qword [rcx]
test r8, r8
je 0x1400a364c
lea rdx, [rsp + 0x30]
call qword [r8 + 0x30]
test eax, eax
jne 0x1400a3865
cmp qword [rsp + 0x30], 0
jg 0x1400a3865
movsxd rax, dword [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x20]
or dword [rsi + 0x2c], 8
mov rcx, qword [rsp + 0x48]
movzx r14d, byte [rcx + rax + 0x10]
mov eax, dword [rsi + 0x30]
and eax, 0x38
or r14d, eax
mov rcx, rdi
call fcn.1400255e0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
shl rax, 5
mov rdx, qword [rax + rcx + 0x18]
mov rcx, r12
mov edx, dword [rdx + 0x74]
call fcn.140025310
xor edx, edx
mov rcx, rdi
call fcn.1400253b0
mov edx, eax
mov rcx, r12
call fcn.1400253b0
or r14d, 0x20
mov rcx, r12
mov edx, r14d
call fcn.140025480
lea r8, [0x1400f7b9c]
mov rdx, r15
mov rcx, rsi
call fcn.1400a3010
mov ebp, eax
test eax, eax
jne 0x1400a39b6
xor edx, edx
mov eax, 2
test r13, r13
cmove edx, eax
cmp byte [rdi + 0x11], bpl
jne 0x1400a36f8
movzx eax, byte [rdi + 0x10]
test al, al
je 0x1400a36f8
cmp al, 1
jne 0x1400a38b9
test r13, r13
jne 0x1400a370d
xor r8d, r8d
mov rcx, rdi
call fcn.140025c00
mov ebp, eax
test ebp, ebp
jne 0x1400a39b6
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400a3723
test r13, r13
jne 0x1400a3723
mov dword [rsi + 0x74], r13d
mov rax, qword [rdi + 8]
xor r9d, r9d
mov ebp, dword [rsp + 0x30]
mov rcx, r12
mov r8d, ebp
mov edx, dword [rax + 0x34]
call fcn.1400254e0
test eax, eax
jne 0x1400a39b1
cmp dword [rsp + 0x28], eax
jne 0x1400a3763
mov edx, dword [rsi + 0x74]
xor r9d, r9d
mov r8d, ebp
mov rcx, r12
call fcn.1400254e0
test eax, eax
jne 0x1400a39b1
cmp byte [rsi + 0x67], 0
jne 0x1400a39b1
movsx eax, byte [rsi + 0x6a]
test al, al
jns 0x1400a377d
mov rcx, rdi
call fcn.1400257d0
mov edx, eax
mov rcx, r12
call fcn.140025740
mov eax, dword [rsp + 0x2c]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r14, qword [rsp + 0x50]
mov rdx, r15
mov r9, r14
mov byte [rsi + 0xc4], al
mov rcx, rsi
call fcn.1400a3250
mov ebp, eax
test eax, eax
jne 0x1400a39b6
mov r9, r14
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r15
mov rcx, rsi
call fcn.1400a3250
mov ebp, eax
test eax, eax
jne 0x1400a39b6
mov r9, r14
mov byte [rsi + 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, r15
mov rcx, rsi
call fcn.1400a3250
and dword [rsi + 0x2c], 0xfffffffb
mov ebp, eax
test eax, eax
jne 0x1400a39b6
mov r9, r14
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r15
mov rcx, rsi
call fcn.1400a3250
mov ebp, eax
test eax, eax
jne 0x1400a39b6
xor r14d, r14d
nop
cmp byte [rdi + 0x11], 0
lea rax, [0x140000000]
movzx ebp, byte [r14 + rax + 0xdb858]
mov r15, qword [rdi + 8]
je 0x1400a384b
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400a384b
mov rcx, rdi
call fcn.140022250
cmp ebp, 0xf
jne 0x1400a38f1
mov rax, qword [r15]
mov ebp, dword [rax + 0x84]
add ebp, dword [rdi + 0x1c]
jmp 0x1400a3905
mov ebp, r14d
lea r13, str.output_file_already_exists
mov r14, rbx
cmp byte [r14 + r13 + 1], 0
lea r14, [r14 + 1]
jne 0x1400a3872
lea rdx, [r14 + 1]
mov rcx, rsi
call fcn.1400080f0
mov r12, rax
test rax, rax
je 0x1400a38a1
lea r8, [r14 + 1]
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [r15]
test rdx, rdx
je 0x1400a38b1
mov rcx, rsi
call fcn.140007c00
mov qword [r15], r12
jmp 0x1400a39b6
test r13, r13
jne 0x1400a370d
mov rax, qword [rdi]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1400a38ea
cmp byte [rcx + 0xa], r13b
je 0x1400a38ea
call fcn.14001d500
jmp 0x1400a3703
xor ebp, ebp
jmp 0x1400a3705
mov rax, qword [r15 + 0x18]
lea edx, [rbp*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ebp, dword [rdx + rcx]
bswap ebp
cmp byte [rdi + 0x11], 0
je 0x1400a3919
sub dword [rdi + 0x14], 1
jne 0x1400a3919
mov rcx, rdi
call fcn.140022220
lea rax, [0x140000000]
mov rcx, r12
movzx r8d, byte [r14 + rax + 0xdb859]
movzx edx, byte [r14 + rax + 0xdb858]
add r8d, ebp
call fcn.14002fe90
mov ebp, eax
test eax, eax
jne 0x1400a39b6
add r14, 2
cmp r14, 0xa
jl 0x1400a3820
test r13, r13
jne 0x1400a3967
mov rdx, r12
mov rcx, rdi
call fcn.1400325e0
mov ebp, eax
test eax, eax
jne 0x1400a39b6
mov rcx, r12
call fcn.140026ff0
mov ebp, eax
test eax, eax
jne 0x1400a39b6
test r13, r13
jne 0x1400a39b6
mov rcx, r12
call fcn.1400257d0
mov edx, eax
mov rcx, rdi
call fcn.140025740
mov rcx, r12
call fcn.1400255e0
mov rcx, qword [r12 + 8]
mov r9d, 1
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rdi
call fcn.1400254e0
mov ebp, eax
jmp 0x1400a39b6
mov ebp, 7
mov r12, qword [rsp + 0x20]
mov eax, dword [rsp + 0x40]
mov r9d, 1
mov dword [rsi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x58]
mov edx, ebx
mov qword [rsi + 0x30], rax
mov rcx, rdi
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x78], rax
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x80], rax
movzx eax, byte [rsp + 0xb8]
mov byte [rsi + 0x6e], al
mov byte [rsi + 0xc4], 0
call fcn.1400254e0
mov byte [rsi + 0x65], 1
test r12, r12
je 0x1400a3a2a
mov rcx, qword [r12 + 8]
call fcn.140025070
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rsi
call fcn.140064400
mov eax, ebp
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret