Function at 0x1401a41c0
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 0x1401a424a
lea edx, [r8 + 0x28]
mov rcx, rbx
call fcn.14010ec20
mov rdi, rax
test rax, rax
je 0x1401a4226
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402c0098]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402c00a8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a4236
mov rcx, rbx
call fcn.14010e7a0
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 0x1401a42c3
mov edx, 0x2b
mov rcx, rbx
call fcn.14010ec20
mov rdi, rax
test rax, rax
je 0x1401a429f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402ccec0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402cced0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1402cced8]
mov word [rdi + 0x28], ax
movzx eax, byte [0x1402cceda]
mov byte [rdi + 0x2a], al
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a4236
mov rcx, rbx
call fcn.14010e7a0
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 0x1401a4387
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x2dfa50], 3
je 0x1401a4335
mov edx, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.14010ec20
mov rdi, rax
test rax, rax
je 0x1401a431a
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1402c6ed8]
mov word [rax + 0x10], cx
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a432a
mov rcx, rbx
call fcn.14010e7a0
mov qword [rsi], rdi
mov eax, r14d
jmp 0x1401a49d9
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1401a4359
cmp byte [r9 + 0x16], r14b
jne 0x1401a4359
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x1401a438e
test r14b, cl
je 0x1401a436b
and dword [rbx + 0x4c], 0xfffffffe
mov r9, r8
or dword [rbx + 0x4c], 6
jmp 0x1401a438e
movzx edx, r14b
mov rcx, rbp
call fcn.140138690
and dword [rbx + 0x4c], 0xfffffffe
xor r8d, r8d
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x1401a438e
lea r9, [0x1402c669a]
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 0x1401a4421
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x30], r8d
je 0x1401a4426
mov dword [rsp + 0x30], r14d
mov eax, dword [rbx + 0x28]
lea r8, [0x1402bb510]
mov rdx, rsi
mov dword [rsp + 0x34], eax
mov rcx, rbx
call fcn.1401a4050
mov dword [rbx + 0x4c], r15d
mov edi, eax
test eax, eax
jne 0x1401a492c
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 0x1401a4526
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 0x1401a450d
lea rdx, [rsp + 0x40]
call qword [rax + 0x30]
test eax, eax
jne 0x1401a44ac
cmp qword [rsp + 0x40], 0
jle 0x1401a4508
mov edx, 0x1b
mov rcx, rbx
mov edi, r14d
call fcn.14010ec20
mov rbp, rax
test rax, rax
je 0x1401a44f0
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1402bc918]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1402bc920]
mov word [rax + 0x18], cx
movzx eax, byte [0x1402bc922]
mov byte [rbp + 0x1a], al
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401a4500
mov rcx, rbx
call fcn.14010e7a0
mov qword [rsi], rbp
jmp 0x1401a4931
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 0x1401a452b
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.14012b000
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
mov r9, qword [rcx + 0x120]
movsxd r8, dword [r9 + 0x20]
test r8d, r8d
jns 0x1401a4599
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.14012b060
mov rcx, qword [rdi]
or r14d, 0x20
mov edx, r14d
mov rcx, qword [rcx]
call fcn.1401200c0
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1401a3e20
mov edi, eax
test eax, eax
jne 0x1401a492c
xor r14d, r14d
mov eax, 2
test rbp, rbp
mov edx, r14d
cmove edx, eax
cmp byte [r12 + 0x11], r14b
jne 0x1401a460b
movzx eax, byte [r12 + 0x10]
test al, al
je 0x1401a460b
cmp al, 1
jne 0x1401a4706
test rbp, rbp
jne 0x1401a4620
xor r8d, r8d
mov rcx, r12
call fcn.14012b710
mov edi, eax
test edi, edi
jne 0x1401a492c
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401a4637
test rbp, rbp
jne 0x1401a4637
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.14012b120
test eax, eax
jne 0x1401a4927
mov r13, qword [rsp + 0x38]
cmp dword [rsp + 0x30], r14d
jne 0x1401a46f0
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 0x1401a4927
lea eax, [rcx - 0x200]
cmp eax, 0xfe00
ja 0x1401a46c4
lea eax, [rcx - 1]
test ecx, eax
jne 0x1401a46c4
cmp edi, 0x20
jle 0x1401a46b8
cmp ecx, 0x200
mov eax, 0x400
cmove ecx, eax
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.14012ae30
mov rcx, qword [r14]
lea rdx, [r14 + 0x34]
mov r8d, edi
call fcn.1401201f0
mov edx, dword [r14 + 0x34]
movzx ecx, di
sub edx, ecx
mov dword [r14 + 0x38], edx
test eax, eax
jne 0x1401a4927
mov rdi, qword [rsp + 0x28]
xor r14d, r14d
cmp byte [rbx + 0x67], 0
jne 0x1401a4927
movsx eax, byte [rbx + 0x6a]
test al, al
js 0x1401a4741
mov edx, eax
jmp 0x1401a4758
test rbp, rbp
jne 0x1401a4620
mov rax, qword [r12]
mov edx, dword [rax + 0x2d0]
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1401a4739
cmp byte [rcx + 0xa], r14b
je 0x1401a4739
call fcn.140123570
jmp 0x1401a4616
mov edi, r14d
jmp 0x1401a4618
mov rax, qword [r12 + 8]
mov edx, r14d
cmp byte [rax + 0x21], 0
je 0x1401a4758
cmp byte [rax + 0x22], 0
setne dl
inc edx
mov rcx, rdi
call fcn.14012b270
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.1401a4050
mov edi, eax
test eax, eax
jne 0x1401a492c
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.1401a4050
mov edi, eax
test eax, eax
jne 0x1401a492c
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.1401a4050
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401a492c
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.1401a4050
mov edi, eax
test eax, eax
jne 0x1401a492c
nop word [rax + rax]
mov rcx, qword [r12 + 8]
lea r8, [0x140000000]
movzx r15d, byte [r14 + r8 + 0x2da948]
cmp r15d, 0xf
jne 0x1401a482b
mov rax, qword [rcx]
mov ecx, dword [rax + 0x84]
add ecx, dword [r12 + 0x1c]
jmp 0x1401a4840
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 + 0x2da949]
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.140122db0
mov edi, eax
test eax, eax
jne 0x1401a488b
mov rax, qword [rsp + 0x50]
mov edx, esi
lea ecx, [r15*4 + 0x24]
bswap edx
mov dword [rcx + rax], edx
cmp r15d, 7
jne 0x1401a488b
mov byte [r13 + 0x22], sil
jmp 0x1401a4893
test edi, edi
jne 0x1401a492c
mov r13, qword [rsp + 0x38]
add r14, 2
cmp r14, 0xa
jl 0x1401a4800
mov rsi, qword [rsp + 0xc8]
mov r13, qword [rsp + 0x28]
test rsi, rsi
jne 0x1401a48c9
mov rdx, r13
mov rcx, r12
call fcn.140136d80
mov edi, eax
test eax, eax
jne 0x1401a492c
mov rcx, r13
call fcn.14012c7c0
mov edi, eax
test eax, eax
jne 0x1401a492c
test rsi, rsi
jne 0x1401a492c
mov r9, qword [rsp + 0x38]
xor edx, edx
mov rax, qword [r9]
cmp byte [rax + 0x21], dl
je 0x1401a48f3
cmp byte [rax + 0x22], dl
setne dl
inc edx
mov rcx, r12
call fcn.14012b270
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.14012b120
mov edi, eax
jmp 0x1401a492c
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 0x1401a49ad
mov rcx, qword [rsi]
lea rdx, [rsi + 0x34]
mov r8d, ebp
call fcn.1401201f0
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 0x1401a49c7
mov rcx, qword [r15 + 8]
call fcn.14012ae60
mov qword [r15 + 8], r12
mov qword [r15 + 0x18], r12
mov rcx, rbx
call fcn.140167e50
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