Function at 0x1401f3d40
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 r13d, r13d
mov r15, r9
mov rdi, rdx
mov r14, rcx
lea ebp, [r13 + 1]
cmp byte [rdx + 0x65], r13b
jne 0x1401f3dc0
lea edx, [rbp + 0x27]
mov rcx, rdi
call fcn.1401d0100
mov rbx, rax
test rax, rax
je 0x1401f3d9d
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402dbd78]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402dbd88]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x1401f3dad
mov rcx, rdi
call fcn.1401cff70
mov qword [r14], rbx
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 0x1401f3e37
mov edx, 0x2b
mov rcx, rdi
call fcn.1401d0100
mov rbx, rax
test rax, rax
je 0x1401f3e14
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402dbda0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402dbdb0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1402dbdb8]
mov word [rbx + 0x28], ax
movzx eax, byte [0x1402dbdba]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1401f3dad
mov rcx, rdi
call fcn.1401cff70
mov eax, ebp
mov qword [r14], rbx
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0x4c]
lea rdx, [0x140000000]
mov dword [rsp + 0x28], eax
test r15, r15
je 0x1401f3f0a
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x2d38a0], 3
je 0x1401f3eb3
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.1401d0100
mov rbx, rax
test rax, rax
je 0x1401f3e8c
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1402dbdd0]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x1401f3dad
mov rcx, rdi
call fcn.1401cff70
mov eax, ebp
mov qword [r14], rbx
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1401f3ed7
cmp byte [r9 + 0x16], bpl
jne 0x1401f3ed7
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1401f3f11
test bpl, cl
je 0x1401f3ee9
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1401f3f11
movzx edx, bpl
mov rcx, r15
call fcn.14021f490
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
mov r8d, dword [rsp + 0xc0]
jmp 0x1401f3f11
lea r9, [0x1402f2e2e]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x38], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x50], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x58], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x60], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], r13b
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x70], r12
movsxd r12, r8d
mov rcx, r12
mov byte [rsp + 0xb8], dl
shl rcx, 5
mov qword [rsp + 0x40], rcx
mov rdx, qword [rax + rcx]
mov rbx, qword [rax + rcx + 8]
mov qword [rsp + 0x48], rdx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r13b
jne 0x1401f3fab
mov dword [rsp + 0x30], r13d
cmp byte [rcx + 0x14], r13b
je 0x1401f3faf
mov dword [rsp + 0x30], ebp
mov eax, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x34], eax
mov rcx, rdi
call fcn.140195440
mov esi, eax
mov eax, dword [rsp + 0x28]
mov dword [rdi + 0x4c], eax
test esi, esi
jne 0x1401f43a1
movsxd rax, dword [rsp + 0x34]
shl rax, 5
add rax, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
mov r13, qword [rax + 8]
test r15, r15
je 0x1401f404e
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x1401f4034
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x1401f424e
cmp qword [rsp + 0x28], 0
jg 0x1401f424e
movsxd r12, dword [rsp + 0xc0]
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
mov rcx, qword [rsp + 0x40]
movzx ebp, byte [rcx + rax + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or ebp, eax
mov rcx, rbx
call fcn.1401c7950
mov rcx, qword [rdi + 0x20]
shl r12, 5
mov dword [rsp + 0x28], eax
mov rdx, qword [r12 + rcx + 0x18]
mov rcx, r13
mov edx, dword [rdx + 0x74]
call fcn.1401c9940
xor edx, edx
mov rcx, rbx
call fcn.1401c9b40
mov edx, eax
mov rcx, r13
call fcn.1401c9b40
or ebp, 0x20
mov rcx, r13
mov edx, ebp
call fcn.1401c9ae0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.140195210
mov esi, eax
test eax, eax
jne 0x1401f439c
xor edx, edx
mov eax, 2
test r15, r15
cmove edx, eax
cmp byte [rbx + 0x11], sil
jne 0x1401f40d7
movzx eax, byte [rbx + 0x10]
test al, al
je 0x1401f40d7
cmp al, 1
jne 0x1401f42a9
test r15, r15
jne 0x1401f40ec
xor r8d, r8d
mov rcx, rbx
call fcn.1401897d0
mov esi, eax
test esi, esi
jne 0x1401f439c
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401f4102
test r15, r15
jne 0x1401f4102
mov dword [rdi + 0x74], r15d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x28]
mov rcx, r13
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.1401c99e0
test eax, eax
jne 0x1401f4397
cmp dword [rsp + 0x30], eax
jne 0x1401f4142
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r13
call fcn.1401c99e0
test eax, eax
jne 0x1401f4397
cmp byte [rdi + 0x67], 0
jne 0x1401f4397
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x1401f415c
mov rcx, rbx
call fcn.1401c7860
mov edx, eax
mov rcx, r13
call fcn.1401c98b0
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 [rdi + 0xc4], al
mov rcx, rdi
call fcn.140195440
mov esi, eax
test eax, eax
jne 0x1401f439c
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.140195440
mov esi, eax
test eax, eax
jne 0x1401f439c
mov r9, rbp
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.140195440
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1401f439c
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, rdi
call fcn.140195440
mov esi, eax
test eax, eax
jne 0x1401f439c
xor ebp, ebp
lea r12, [0x140000000]
nop dword [rax]
nop dword [rax + rax]
cmp byte [rbx + 0x11], 0
movzx esi, byte [r12 + rbp + 0x2d2e58]
mov r14, qword [rbx + 8]
je 0x1401f4234
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1401f4234
mov rcx, rbx
call fcn.14018ab10
cmp esi, 0xf
jne 0x1401f42e1
mov rax, qword [r14]
mov esi, dword [rbx + 0x1c]
add esi, dword [rax + 0x84]
jmp 0x1401f42f5
mov edx, 0x1b
mov rcx, rdi
mov esi, ebp
call fcn.1401d0100
mov rbp, rax
test rax, rax
je 0x1401f4291
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1402dbe00]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1402dbe08]
mov word [rax + 0x18], cx
movzx eax, byte [0x1402dbe0a]
mov byte [rbp + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1401f42a1
mov rcx, rdi
call fcn.1401cff70
mov qword [r14], rbp
jmp 0x1401f439c
test r15, r15
jne 0x1401f40ec
mov rax, qword [rbx]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1401f42da
cmp byte [rcx + 0xa], r15b
je 0x1401f42da
call fcn.1401b25a0
jmp 0x1401f40e2
xor esi, esi
jmp 0x1401f40e4
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 0x1401f4309
sub dword [rbx + 0x14], 1
jne 0x1401f4309
mov rcx, rbx
call fcn.14021d040
movzx r8d, byte [r12 + rbp + 0x2d2e59]
mov rcx, r13
movzx edx, byte [r12 + rbp + 0x2d2e58]
add r8d, esi
call fcn.1401ca650
mov esi, eax
test eax, eax
jne 0x1401f439c
add rbp, 2
cmp rbp, 0xa
jl 0x1401f4210
test r15, r15
jne 0x1401f4350
mov rdx, r13
mov rcx, rbx
call fcn.1401c6e70
mov esi, eax
test eax, eax
jne 0x1401f439c
mov rcx, r13
call fcn.1401c6c20
mov esi, eax
test eax, eax
jne 0x1401f439c
test r15, r15
jne 0x1401f439c
mov rcx, r13
call fcn.1401c7860
mov edx, eax
mov rcx, rbx
call fcn.1401c98b0
mov rcx, r13
call fcn.1401c7950
mov rcx, qword [r13 + 8]
lea r9d, [rsi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.1401c99e0
mov esi, eax
jmp 0x1401f439c
mov esi, 7
mov r13, qword [rsp + 0x20]
mov eax, dword [rsp + 0x38]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x58]
lea edx, [r9 - 2]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0xb8]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.1401c99e0
mov r12, qword [rsp + 0x70]
mov byte [rdi + 0x65], 1
test r13, r13
je 0x1401f4414
mov rcx, qword [r13 + 8]
call fcn.1401c67b0
mov qword [r13 + 8], 0
mov qword [r13 + 0x18], 0
mov rcx, rdi
call fcn.1401f28f0
mov eax, esi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret