Function at 0x14011cde0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x60
cmp byte [rdx + 0x65], 0
mov rbp, r9
movsxd rbx, r8d
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x20], 0
mov r15d, 1
jne 0x14011ce65
lea edx, [r15 + 0x27]
mov rcx, rdi
call fcn.1400f9430
mov rbx, rax
test rax, rax
je 0x14011ce43
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401b6c98]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401b6ca8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x14011ce53
mov rcx, rdi
call fcn.1400f92a0
mov qword [r14], rbx
mov eax, r15d
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], r15d
jle 0x14011cedc
mov edx, 0x2b
mov rcx, rdi
call fcn.1400f9430
mov rbx, rax
test rax, rax
je 0x14011ceba
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401b6cc0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401b6cd0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1401b6cd8]
mov word [rbx + 0x28], ax
movzx eax, byte [0x1401b6cda]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x14011ce53
mov rcx, rdi
call fcn.1400f92a0
mov eax, r15d
mov qword [r14], rbx
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0xa0], r12
mov r12d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test rbp, rbp
je 0x14011cfa0
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x1ae780], 3
je 0x14011cf51
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.1400f9430
mov rbx, rax
test rax, rax
je 0x14011cf36
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1401b6cf0]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x14011cf46
mov rcx, rdi
call fcn.1400f92a0
mov qword [r14], rbx
mov eax, r15d
jmp 0x14011d4c2
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x14011cf75
cmp byte [r9 + 0x16], r15b
jne 0x14011cf75
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x14011cfa7
test r15b, cl
je 0x14011cf87
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x14011cfa7
movzx edx, r15b
mov rcx, rbp
call fcn.140147e30
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
jmp 0x14011cfa7
lea r9, [0x14019afc9]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rdi + 0x20]
shl rcx, 5
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], 0
mov rbx, qword [rax + rcx + 8]
mov byte [rsp + 0x98], dl
mov rdx, qword [rax + rcx]
mov qword [rsp + 0x38], rcx
mov rax, qword [rbx + 8]
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0x40], rdx
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x14011d044
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x28], 0
je 0x14011d049
mov dword [rsp + 0x28], r15d
movsxd r13, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x2c], r13d
mov rcx, rdi
call fcn.1400c15a0
mov dword [rdi + 0x4c], r12d
mov esi, eax
test eax, eax
jne 0x14011d432
mov r12, r13
shl r12, 5
add r12, qword [rdi + 0x20]
mov r13, qword [r12 + 8]
test rbp, rbp
je 0x14011d135
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x20], 0
mov rax, qword [rcx]
test rax, rax
je 0x14011d117
lea rdx, [rsp + 0x20]
call qword [rax + 0x30]
test eax, eax
jne 0x14011d0bb
cmp qword [rsp + 0x20], 0
jle 0x14011d117
mov edx, 0x1b
mov rcx, rdi
mov esi, r15d
call fcn.1400f9430
mov rbp, rax
test rax, rax
je 0x14011d0ff
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1401b6d20]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1401b6d28]
mov word [rax + 0x18], cx
movzx eax, byte [0x1401b6d2a]
mov byte [rbp + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x14011d10f
mov rcx, rdi
call fcn.1400f92a0
mov qword [r14], rbp
jmp 0x14011d437
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
mov rsi, qword [rsp + 0x38]
movzx r15d, byte [rsi + rax + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or r15d, eax
jmp 0x14011d13a
mov rsi, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400f0d50
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x20], eax
mov rdx, qword [rsi + rcx + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.1400f2d50
xor edx, edx
mov rcx, rbx
call fcn.1400f2f50
mov edx, eax
mov rcx, r13
call fcn.1400f2f50
or r15d, 0x20
mov rcx, r13
mov edx, r15d
call fcn.1400f2ef0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.1400c1370
mov esi, eax
test eax, eax
jne 0x14011d437
xor edx, edx
mov eax, 2
test rbp, rbp
cmove edx, eax
cmp byte [rbx + 0x11], sil
jne 0x14011d1c1
movzx eax, byte [rbx + 0x10]
test al, al
je 0x14011d1c1
cmp al, 1
jne 0x14011d337
test rbp, rbp
jne 0x14011d1d6
xor r8d, r8d
mov rcx, rbx
call fcn.1400b5ae0
mov esi, eax
test esi, esi
jne 0x14011d437
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x14011d1eb
test rbp, rbp
jne 0x14011d1eb
mov dword [rdi + 0x74], ebp
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x20]
mov rcx, r13
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.1400f2df0
test eax, eax
jne 0x14011d42b
cmp dword [rsp + 0x28], eax
jne 0x14011d22b
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r13
call fcn.1400f2df0
test eax, eax
jne 0x14011d42b
cmp byte [rdi + 0x67], 0
jne 0x14011d42b
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x14011d245
mov rcx, rbx
call fcn.1400f0c60
mov edx, eax
mov rcx, r13
call fcn.1400f2cc0
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 r15, qword [rsp + 0x40]
mov rdx, r14
mov r9, r15
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1400c15a0
mov esi, eax
test eax, eax
jne 0x14011d437
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.1400c15a0
mov esi, eax
test eax, eax
jne 0x14011d437
mov r9, r15
mov byte [rdi + 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, rdi
call fcn.1400c15a0
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x14011d437
mov r9, r15
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, rdi
call fcn.1400c15a0
mov esi, eax
test eax, eax
jne 0x14011d437
xor r14d, r14d
nop word [rax + rax]
movzx r8d, byte [rbx + 0x11]
lea rax, [0x140000000]
movzx esi, byte [r14 + rax + 0x1adce8]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x14011d324
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14011d324
mov rcx, rbx
call fcn.1400b6e10
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x14011d36f
mov rax, qword [r15]
mov esi, dword [rbx + 0x1c]
add esi, dword [rax + 0x84]
jmp 0x14011d383
test rbp, rbp
jne 0x14011d1d6
mov rax, qword [rbx]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x14011d368
cmp byte [rcx + 0xa], bpl
je 0x14011d368
call fcn.1400dbae0
jmp 0x14011d1cc
xor esi, esi
jmp 0x14011d1ce
mov rax, qword [r15 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x14011d396
sub dword [rbx + 0x14], 1
jne 0x14011d396
mov rcx, rbx
call fcn.140145cc0
lea rax, [0x140000000]
mov rcx, r13
movzx r8d, byte [r14 + rax + 0x1adce9]
movzx edx, byte [r14 + rax + 0x1adce8]
add r8d, esi
call fcn.1400f3a20
mov esi, eax
test eax, eax
jne 0x14011d437
add r14, 2
cmp r14, 0xa
jl 0x14011d2f0
test rbp, rbp
jne 0x14011d3e4
mov rdx, r13
mov rcx, rbx
call fcn.1400f0270
mov esi, eax
test eax, eax
jne 0x14011d437
mov rcx, r13
call fcn.1400f0020
mov esi, eax
test eax, eax
jne 0x14011d437
test rbp, rbp
jne 0x14011d437
mov rcx, r13
call fcn.1400f0c60
mov edx, eax
mov rcx, rbx
call fcn.1400f2cc0
mov rcx, r13
call fcn.1400f0d50
mov rcx, qword [r13 + 8]
lea r9d, [rsi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.1400f2df0
mov esi, eax
jmp 0x14011d437
mov esi, 7
jmp 0x14011d437
mov r12, qword [rsp + 0x20]
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x50]
lea edx, [r9 - 2]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0x98]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.1400f2df0
mov r13, qword [rsp + 0xa8]
mov byte [rdi + 0x65], 1
test r12, r12
je 0x14011d4b0
mov rcx, qword [r12 + 8]
call fcn.1400efbb0
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rdi
call fcn.14011bae0
mov eax, esi
mov rsi, qword [rsp + 0x90]
mov r12, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret