Function at 0x1401a3bb0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
movsxd rdi, r8d
mov rbp, r9
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x20], r8
lea r14d, [r8 + 1]
cmp byte [rdx + 0x65], r8b
jne 0x1401a3c3a
lea edx, [r8 + 0x28]
mov rcx, rbx
call fcn.14010e610
mov rdi, rax
test rax, rax
je 0x1401a3c16
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140310008]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140310018]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a3c26
mov rcx, rbx
call fcn.14010e190
mov qword [rsi], rdi
mov eax, r14d
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rdx + 0xd8], r14d
jle 0x1401a3cb3
mov edx, 0x2b
mov rcx, rbx
call fcn.14010e610
mov rdi, rax
test rax, rax
je 0x1401a3c8f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140325b68]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140325b78]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x140325b80]
mov word [rdi + 0x28], ax
movzx eax, byte [0x140325b82]
mov byte [rdi + 0x2a], al
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a3c26
mov rcx, rbx
call fcn.14010e190
mov eax, r14d
mov qword [rsi], rdi
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x70], r15
mov r15d, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test rbp, rbp
je 0x1401a3d77
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x33b630], 3
je 0x1401a3d25
mov edx, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.14010e610
mov rdi, rax
test rax, rax
je 0x1401a3d0a
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x140315728]
mov word [rax + 0x10], cx
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a3d1a
mov rcx, rbx
call fcn.14010e190
mov qword [rsi], rdi
mov eax, r14d
jmp 0x1401a43c9
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1401a3d49
cmp byte [r9 + 0x16], r14b
jne 0x1401a3d49
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x1401a3d7e
test r14b, cl
je 0x1401a3d5b
and dword [rbx + 0x4c], 0xfffffffe
mov r9, r8
or dword [rbx + 0x4c], 6
jmp 0x1401a3d7e
movzx edx, r14b
mov rcx, rbp
call fcn.140138080
and dword [rbx + 0x4c], 0xfffffffe
xor r8d, r8d
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x1401a3d7e
lea r9, [0x140321745]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x78]
mov dword [rsp + 0x48], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x58], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0xb0], r12
or rax, 0x201
mov qword [rsp + 0x78], r13
mov qword [rbx + 0x30], rax
mov r13, rdi
mov rax, qword [rbx + 0x20]
shl r13, 5
mov qword [rsp + 0x60], rdx
mov rdx, qword [rbx + 0x80]
mov qword [rsp + 0x68], rdx
movzx edx, byte [rbx + 0x6e]
mov byte [rbx + 0x6e], 0
mov rcx, qword [rax + r13]
mov r12, qword [rax + r13 + 8]
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0xb8], dl
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1401a3e11
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x30], r8d
je 0x1401a3e16
mov dword [rsp + 0x30], r14d
mov eax, dword [rbx + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, rsi
mov dword [rsp + 0x34], eax
mov rcx, rbx
call fcn.1401a3a40
mov dword [rbx + 0x4c], r15d
mov edi, eax
test eax, eax
jne 0x1401a431c
movsxd r15, dword [rsp + 0x34]
mov rdx, qword [rbx + 0x20]
shl r15, 5
add r15, rdx
mov qword [rsp + 0x20], r15
mov r8, qword [r15 + 8]
mov qword [rsp + 0x28], r8
lea rdi, [r8 + 8]
mov qword [rsp + 0x38], rdi
test rbp, rbp
je 0x1401a3f16
mov rax, qword [rdi]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x40], 0
mov rax, qword [rcx]
test rax, rax
je 0x1401a3efd
lea rdx, [rsp + 0x40]
call qword [rax + 0x30]
test eax, eax
jne 0x1401a3e9c
cmp qword [rsp + 0x40], 0
jle 0x1401a3ef8
mov edx, 0x1b
mov rcx, rbx
mov edi, r14d
call fcn.14010e610
mov rbp, rax
test rax, rax
je 0x1401a3ee0
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140315d08]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140315d10]
mov word [rax + 0x18], cx
movzx eax, byte [0x140315d12]
mov byte [rbp + 0x1a], al
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a3ef0
mov rcx, rbx
call fcn.14010e190
mov qword [rsi], rbp
jmp 0x1401a4321
mov r8, qword [rsp + 0x28]
or dword [rbx + 0x2c], 8
mov rdx, qword [rbx + 0x20]
mov eax, dword [rbx + 0x30]
and eax, 0x38
movzx r14d, byte [rdx + r13 + 0x10]
or r14d, eax
jmp 0x1401a3f1b
mov qword [rsp + 0x38], rdi
mov rax, qword [r12 + 8]
mov rdx, qword [rdx + r13 + 0x18]
movzx ecx, byte [rax + 0x26]
mov r15d, dword [rax + 0x34]
sub r15d, dword [rax + 0x38]
mov edx, dword [rdx + 0x74]
cmp ecx, r15d
cmovg r15d, ecx
mov rcx, r8
mov dword [rsp + 0x40], r15d
call fcn.14012a9f0
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
mov r9, qword [rcx + 0x120]
movsxd r8, dword [r9 + 0x20]
test r8d, r8d
jns 0x1401a3f89
mov eax, dword [r9 + 0x2c]
add eax, dword [r9 + 0x28]
movsxd rcx, eax
mov rax, r8
neg rax
shl rax, 0xa
cqo
idiv rcx
mov r8, rax
mov eax, 0x3b9aca00
cmp r8, rax
cmovg r8, rax
mov edx, dword [r9 + 0x24]
cmp r8d, edx
mov rcx, qword [rsp + 0x28]
cmovge edx, r8d
call fcn.14012aa50
mov rcx, qword [rdi]
or r14d, 0x20
mov edx, r14d
mov rcx, qword [rcx]
call fcn.14011fab0
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1401a3810
mov edi, eax
test eax, eax
jne 0x1401a431c
xor r14d, r14d
mov eax, 2
test rbp, rbp
mov edx, r14d
cmove edx, eax
cmp byte [r12 + 0x11], r14b
jne 0x1401a3ffb
movzx eax, byte [r12 + 0x10]
test al, al
je 0x1401a3ffb
cmp al, 1
jne 0x1401a40f6
test rbp, rbp
jne 0x1401a4010
xor r8d, r8d
mov rcx, r12
call fcn.14012b100
mov edi, eax
test edi, edi
jne 0x1401a431c
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401a4027
test rbp, rbp
jne 0x1401a4027
mov dword [rbx + 0x74], r14d
mov rax, qword [r12 + 8]
xor r9d, r9d
mov rdi, qword [rsp + 0x28]
mov r8d, r15d
mov rcx, rdi
mov edx, dword [rax + 0x34]
call fcn.14012ab10
test eax, eax
jne 0x1401a4317
mov r13, qword [rsp + 0x38]
cmp dword [rsp + 0x30], r14d
jne 0x1401a40e0
mov r14, qword [r13]
mov ecx, dword [rbx + 0x74]
mov edi, dword [r14 + 0x34]
sub edi, dword [r14 + 0x38]
cmp dword [rsp + 0x40], edi
mov byte [r14 + 0x26], r15b
cmovge edi, dword [rsp + 0x40]
test byte [r14 + 0x28], 2
jne 0x1401a4317
lea eax, [rcx - 0x200]
cmp eax, 0xfe00
ja 0x1401a40b4
lea eax, [rcx - 1]
test ecx, eax
jne 0x1401a40b4
cmp edi, 0x20
jle 0x1401a40a8
cmp ecx, 0x200
mov eax, 0x400
cmove ecx, eax
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.14012a820
mov rcx, qword [r14]
lea rdx, [r14 + 0x34]
mov r8d, edi
call fcn.14011fbe0
mov edx, dword [r14 + 0x34]
movzx ecx, di
sub edx, ecx
mov dword [r14 + 0x38], edx
test eax, eax
jne 0x1401a4317
mov rdi, qword [rsp + 0x28]
xor r14d, r14d
cmp byte [rbx + 0x67], 0
jne 0x1401a4317
movsx eax, byte [rbx + 0x6a]
test al, al
js 0x1401a4131
mov edx, eax
jmp 0x1401a4148
test rbp, rbp
jne 0x1401a4010
mov rax, qword [r12]
mov edx, dword [rax + 0x2d0]
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1401a4129
cmp byte [rcx + 0xa], r14b
je 0x1401a4129
call fcn.140122f60
jmp 0x1401a4006
mov edi, r14d
jmp 0x1401a4008
mov rax, qword [r12 + 8]
mov edx, r14d
cmp byte [rax + 0x21], 0
je 0x1401a4148
cmp byte [rax + 0x22], 0
setne dl
inc edx
mov rcx, rdi
call fcn.14012ac60
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 + 0x50]
mov rdx, rsi
mov r9, rbp
mov byte [rbx + 0xc4], al
mov rcx, rbx
call fcn.1401a3a40
mov edi, eax
test eax, eax
jne 0x1401a431c
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.1401a3a40
mov edi, eax
test eax, eax
jne 0x1401a431c
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, rsi
mov rcx, rbx
call fcn.1401a3a40
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401a431c
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, rsi
mov rcx, rbx
call fcn.1401a3a40
mov edi, eax
test eax, eax
jne 0x1401a431c
nop word [rax + rax]
mov rcx, qword [r12 + 8]
lea r8, [0x140000000]
movzx r15d, byte [r14 + r8 + 0x336528]
cmp r15d, 0xf
jne 0x1401a421b
mov rax, qword [rcx]
mov ecx, dword [rax + 0x84]
add ecx, dword [r12 + 0x1c]
jmp 0x1401a4230
mov rax, qword [rcx + 0x18]
lea edx, [r15*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ecx, dword [rdx + rcx]
bswap ecx
mov r13, qword [r13]
movzx esi, byte [r14 + r8 + 0x336529]
add esi, ecx
mov rcx, qword [r13 + 0x18]
mov rax, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x70]
mov qword [rsp + 0x50], rax
call fcn.1401227a0
mov edi, eax
test eax, eax
jne 0x1401a427b
mov rax, qword [rsp + 0x50]
mov edx, esi
lea ecx, [r15*4 + 0x24]
bswap edx
mov dword [rcx + rax], edx
cmp r15d, 7
jne 0x1401a427b
mov byte [r13 + 0x22], sil
jmp 0x1401a4283
test edi, edi
jne 0x1401a431c
mov r13, qword [rsp + 0x38]
add r14, 2
cmp r14, 0xa
jl 0x1401a41f0
mov rsi, qword [rsp + 0xc8]
mov r13, qword [rsp + 0x28]
test rsi, rsi
jne 0x1401a42b9
mov rdx, r13
mov rcx, r12
call fcn.140136770
mov edi, eax
test eax, eax
jne 0x1401a431c
mov rcx, r13
call fcn.14012c1b0
mov edi, eax
test eax, eax
jne 0x1401a431c
test rsi, rsi
jne 0x1401a431c
mov r9, qword [rsp + 0x38]
xor edx, edx
mov rax, qword [r9]
cmp byte [rax + 0x21], dl
je 0x1401a42e3
cmp byte [rax + 0x22], dl
setne dl
inc edx
mov rcx, r12
call fcn.14012ac60
mov r9, qword [r9]
mov rcx, r12
movzx eax, byte [r9 + 0x26]
mov edx, dword [r9 + 0x34]
mov r8d, edx
sub r8d, dword [r9 + 0x38]
mov r9d, 1
cmp eax, r8d
cmovg r8d, eax
call fcn.14012ab10
mov edi, eax
jmp 0x1401a431c
mov edi, 7
mov r15, qword [rsp + 0x20]
mov eax, dword [rsp + 0x48]
mov r13, qword [rsp + 0x78]
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0xb8]
mov byte [rbx + 0x6e], al
mov byte [rbx + 0xc4], 0
mov rsi, qword [r12 + 8]
mov r12d, 0
mov ebp, dword [rsi + 0x34]
sub ebp, dword [rsi + 0x38]
test ebp, ebp
mov byte [rsi + 0x26], 0
cmovle ebp, r12d
test byte [rsi + 0x28], 2
jne 0x1401a439d
mov rcx, qword [rsi]
lea rdx, [rsi + 0x34]
mov r8d, ebp
call fcn.14011fbe0
mov ecx, dword [rsi + 0x34]
movzx eax, bp
sub ecx, eax
or word [rsi + 0x28], 2
mov dword [rsi + 0x38], ecx
mov byte [rbx + 0x65], 1
test r15, r15
je 0x1401a43b7
mov rcx, qword [r15 + 8]
call fcn.14012a850
mov qword [r15 + 8], r12
mov qword [r15 + 0x18], r12
mov rcx, rbx
call fcn.140167840
mov r12, qword [rsp + 0xb0]
mov eax, edi
mov r15, qword [rsp + 0x70]
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret