Function at 0x14010dfa0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0xc8
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor r12d, r12d
mov dword [rsp + 0x40], r8d
mov r15, r9
mov rdi, rdx
mov r14, rcx
mov ebp, 1
cmp byte [rdx + 0x65], r12b
jne 0x14010e030
mov edx, 0x28
mov rcx, rdi
call fcn.1400ea610
mov rbx, rax
test rax, rax
je 0x14010e016
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14017a5d8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14017a5e8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x14010e026
mov rcx, rdi
call fcn.1400ea480
mov qword [r14], rbx
mov eax, ebp
jmp 0x14010e6b1
cmp dword [rdx + 0xd8], ebp
jle 0x14010e09e
mov edx, 0x2b
mov rcx, rdi
call fcn.1400ea610
mov rbx, rax
test rax, rax
je 0x14010e084
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14017a600]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14017a610]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x14017a618]
mov word [rbx + 0x28], ax
movzx eax, byte [0x14017a61a]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x14010e026
mov rcx, rdi
call fcn.1400ea480
mov eax, ebp
mov qword [r14], rbx
jmp 0x14010e6b1
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb8], r13
mov r13d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r15, r15
je 0x14010e16d
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x1723b0], 3
je 0x14010e11a
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.1400ea610
mov rbx, rax
test rax, rax
je 0x14010e100
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14017a630]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x14010e110
mov rcx, rdi
call fcn.1400ea480
mov qword [r14], rbx
mov eax, ebp
jmp 0x14010e6a1
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x14010e13e
cmp byte [r9 + 0x16], bpl
jne 0x14010e13e
mov rsi, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x14010e174
test bpl, cl
je 0x14010e14f
and dword [rdi + 0x4c], 0xfffffffe
xor esi, esi
or dword [rdi + 0x4c], 6
jmp 0x14010e174
movzx edx, bpl
mov rcx, r15
call fcn.14013a460
and dword [rdi + 0x4c], 0xfffffffe
mov rsi, rax
or dword [rdi + 0x4c], 6
mov r8d, dword [rsp + 0x40]
jmp 0x14010e174
lea rsi, [0x14017ef61]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x4c], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x60], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x68], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x70], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], r12b
movsxd rcx, r8d
shl rcx, 5
mov byte [rsp + 0x30], dl
mov qword [rsp + 0x50], rcx
mov rdx, qword [rcx + rax]
mov rbx, qword [rcx + rax + 8]
mov qword [rsp + 0x58], rdx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x14010e1fb
mov dword [rsp + 0x44], r12d
cmp byte [rcx + 0x14], r12b
je 0x14010e1ff
mov dword [rsp + 0x44], ebp
lea rdx, [rsp + 0x38]
mov ecx, 8
call fcn.140098970
mov r9, qword [rsp + 0x38]
lea r8, str.vacuum__016llx
lea rdx, [rsp + 0x78]
mov ecx, 0x2a
call fcn.140098610
mov eax, dword [rdi + 0x28]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
lea r8, str.ATTACH__Q_AS__s
mov rcx, rdi
mov dword [rsp + 0x48], eax
mov r9, rsi
mov rdx, r14
call fcn.1400ad9e0
mov dword [rdi + 0x4c], r13d
mov esi, eax
test eax, eax
jne 0x14010e628
movsxd r12, dword [rsp + 0x48]
shl r12, 5
add r12, qword [rdi + 0x20]
mov r13, qword [r12 + 8]
test r15, r15
je 0x14010e31d
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x38], 0
mov rax, qword [rcx]
test rax, rax
je 0x14010e303
lea rdx, [rsp + 0x38]
call qword [rax + 0x30]
test eax, eax
jne 0x14010e2a8
cmp qword [rsp + 0x38], 0
jle 0x14010e303
mov edx, 0x1b
mov rcx, rdi
mov esi, ebp
call fcn.1400ea610
mov rbp, rax
test rax, rax
je 0x14010e2eb
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14017a668]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14017a670]
mov word [rax + 0x18], cx
movzx eax, byte [0x14017a672]
mov byte [rbp + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x14010e2fb
mov rcx, rdi
call fcn.1400ea480
mov qword [r14], rbp
jmp 0x14010e628
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
mov rcx, qword [rsp + 0x50]
movzx ebp, byte [rcx + rax + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or ebp, eax
mov rcx, rbx
call fcn.1400e1bd0
mov rcx, qword [rdi + 0x20]
movsxd rdx, dword [rsp + 0x40]
shl rdx, 5
mov dword [rsp + 0x38], eax
mov rdx, qword [rdx + rcx + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.1400e3bf0
xor edx, edx
mov rcx, rbx
call fcn.1400e3df0
mov edx, eax
mov rcx, r13
call fcn.1400e3df0
or ebp, 0x20
mov rcx, r13
mov edx, ebp
call fcn.1400e3d90
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.1400ad7a0
mov esi, eax
test eax, eax
jne 0x14010e628
xor edx, edx
mov eax, 2
test r15, r15
cmove edx, eax
cmp byte [rbx + 0x11], sil
jne 0x14010e3ab
movzx eax, byte [rbx + 0x10]
test al, al
je 0x14010e3ab
cmp al, 1
jne 0x14010e52d
test r15, r15
jne 0x14010e3c0
xor r8d, r8d
mov rcx, rbx
call fcn.1400a1bd0
mov esi, eax
test esi, esi
jne 0x14010e628
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x14010e3d6
test r15, r15
jne 0x14010e3d6
mov dword [rdi + 0x74], r15d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x38]
mov rcx, r13
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.1400e3c90
test eax, eax
jne 0x14010e623
cmp dword [rsp + 0x44], eax
jne 0x14010e416
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r13
call fcn.1400e3c90
test eax, eax
jne 0x14010e623
cmp byte [rdi + 0x67], 0
jne 0x14010e623
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x14010e430
mov rcx, rbx
call fcn.1400e1ae0
mov edx, eax
mov rcx, r13
call fcn.1400e3b60
mov eax, dword [rsp + 0x48]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rbp, qword [rsp + 0x58]
mov rdx, r14
mov r9, rbp
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1400ad9e0
mov esi, eax
test eax, eax
jne 0x14010e628
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.1400ad9e0
mov esi, eax
test eax, eax
jne 0x14010e628
mov byte [rdi + 0xc4], al
lea r9, [rsp + 0x78]
lea rax, [rsp + 0x78]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea r8, str.SELECTINSERT_INTO__s.quote_name__SELECTFROM__w_.quote_name_FROM__s.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call fcn.1400ad9e0
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x14010e628
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbp
lea r8, str.INSERT_INTO__s.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r14
mov rcx, rdi
call fcn.1400ad9e0
mov esi, eax
test eax, eax
jne 0x14010e628
xor ebp, ebp
nop dword [rax]
cmp byte [rbx + 0x11], 0
lea rax, [0x140000000]
movzx esi, byte [rax + rbp + 0x1719a8]
mov r14, qword [rbx + 8]
je 0x14010e51a
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14010e51a
mov rcx, rbx
call fcn.1400a2f20
cmp esi, 0xf
jne 0x14010e565
mov rax, qword [r14]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x14010e579
test r15, r15
jne 0x14010e3c0
mov rax, qword [rbx]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x14010e55e
cmp byte [rcx + 0xa], r15b
je 0x14010e55e
call fcn.1400cba10
jmp 0x14010e3b6
xor esi, esi
jmp 0x14010e3b8
mov rax, qword [r14 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
cmp byte [rbx + 0x11], 0
je 0x14010e58d
sub dword [rbx + 0x14], 1
jne 0x14010e58d
mov rcx, rbx
call fcn.140137ee0
lea rax, [0x140000000]
mov rcx, r13
movzx r8d, byte [rax + rbp + 0x1719a9]
movzx edx, byte [rax + rbp + 0x1719a8]
add r8d, esi
call fcn.1400e4900
mov esi, eax
test eax, eax
jne 0x14010e628
add rbp, 2
cmp rbp, 0xa
jl 0x14010e4f0
test r15, r15
jne 0x14010e5da
mov rdx, r13
mov rcx, rbx
call fcn.1400e10f0
mov esi, eax
test eax, eax
jne 0x14010e628
mov rcx, r13
call fcn.1400e0ea0
mov esi, eax
test eax, eax
jne 0x14010e628
test r15, r15
jne 0x14010e628
mov rcx, r13
call fcn.1400e1ae0
mov edx, eax
mov rcx, rbx
call fcn.1400e3b60
mov rcx, r13
call fcn.1400e1bd0
mov rcx, qword [r13 + 8]
mov r9d, 1
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.1400e3c90
mov esi, eax
jmp 0x14010e628
mov esi, 7
mov eax, dword [rsp + 0x4c]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x60]
mov edx, 0xffffffff
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0x30]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.1400e3c90
mov byte [rdi + 0x65], 1
test r12, r12
je 0x14010e697
mov rcx, qword [r12 + 8]
call fcn.1400e0a30
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rdi
call fcn.14010cb50
mov eax, esi
mov rsi, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140157800
add rsp, 0xc8
pop r15
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret