Function at 0x140157c70
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 0x140157cfa
lea edx, [r8 + 0x28]
mov rcx, rbx
call fcn.1400ba0d0
mov rdi, rax
test rax, rax
je 0x140157cd6
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140651198]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1406511a8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [rsi]
test rdx, rdx
je 0x140157ce6
mov rcx, rbx
call fcn.1400b9bb0
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 0x140157d73
mov edx, 0x2b
mov rcx, rbx
call fcn.1400ba0d0
mov rdi, rax
test rax, rax
je 0x140157d4f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1406511c0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1406511d0]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1406511d8]
mov word [rax + 0x28], cx
movzx ecx, byte [0x1406511da]
mov byte [rax + 0x2a], cl
mov rdx, qword [rsi]
test rdx, rdx
je 0x140157ce6
mov rcx, rbx
call fcn.1400b9bb0
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 0x140157e37
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x649c00], 3
je 0x140157de5
mov edx, 0x12
mov rcx, rbx
call fcn.1400ba0d0
mov rdi, rax
test rax, rax
je 0x140157dca
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1406511f0]
mov word [rax + 0x10], cx
mov rdx, qword [rsi]
test rdx, rdx
je 0x140157dda
mov rcx, rbx
call fcn.1400b9bb0
mov qword [rsi], rdi
mov eax, r14d
jmp 0x140158489
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x140157e09
cmp byte [r9 + 0x16], r14b
jne 0x140157e09
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x140157e3e
test r14b, cl
je 0x140157e1b
and dword [rbx + 0x4c], 0xfffffffe
mov r9, r8
or dword [rbx + 0x4c], 6
jmp 0x140157e3e
movzx edx, r14b
mov rcx, rbp
call fcn.1400e8150
and dword [rbx + 0x4c], 0xfffffffe
xor r8d, r8d
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x140157e3e
lea r9, [0x1406436ab]
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 0x140157ed1
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x30], r8d
je 0x140157ed6
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.140157b00
mov dword [rbx + 0x4c], r15d
mov edi, eax
test eax, eax
jne 0x1401583dc
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 0x140157fd6
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 0x140157fbd
lea rdx, [rsp + 0x40]
call qword [rax + 0x30]
test eax, eax
jne 0x140157f5c
cmp qword [rsp + 0x40], 0
jle 0x140157fb8
mov edx, 0x1b
mov rcx, rbx
mov edi, r14d
call fcn.1400ba0d0
mov rbp, rax
test rax, rax
je 0x140157fa0
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140651220]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x140651228]
mov word [rax + 0x18], cx
movzx ecx, byte [0x14065122a]
mov byte [rax + 0x1a], cl
mov rdx, qword [rsi]
test rdx, rdx
je 0x140157fb0
mov rcx, rbx
call fcn.1400b9bb0
mov qword [rsi], rbp
jmp 0x1401583e1
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 0x140157fdb
mov qword [rsp + 0x38], rdi
mov rax, qword [r12 + 8]
movzx ecx, byte [rax + 0x26]
mov r15d, dword [rax + 0x34]
sub r15d, dword [rax + 0x38]
mov rax, qword [rdx + r13 + 0x18]
cmp ecx, r15d
cmovg r15d, ecx
mov rcx, r8
mov dword [rsp + 0x40], r15d
mov edx, dword [rax + 0x74]
call fcn.1400d9ef0
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
mov r9, qword [rcx + 0x120]
movsxd r8, dword [r9 + 0x20]
test r8d, r8d
jns 0x140158049
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.1400d9f50
mov rcx, qword [rdi]
or r14d, 0x20
mov edx, r14d
mov rcx, qword [rcx]
call fcn.1400ceee0
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1401578d0
mov edi, eax
test eax, eax
jne 0x1401583dc
xor r14d, r14d
mov eax, 2
test rbp, rbp
mov edx, r14d
cmove edx, eax
cmp byte [r12 + 0x11], r14b
jne 0x1401580bb
movzx eax, byte [r12 + 0x10]
test al, al
je 0x1401580bb
cmp al, 1
jne 0x1401581b6
test rbp, rbp
jne 0x1401580d0
xor r8d, r8d
mov rcx, r12
call fcn.1400da600
mov edi, eax
test edi, edi
jne 0x1401583dc
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1401580e7
test rbp, rbp
jne 0x1401580e7
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.1400da010
test eax, eax
jne 0x1401583d7
mov r13, qword [rsp + 0x38]
cmp dword [rsp + 0x30], r14d
jne 0x1401581a0
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 0x1401583d7
lea eax, [rcx - 0x200]
cmp eax, 0xfe00
ja 0x140158174
lea eax, [rcx - 1]
test ecx, eax
jne 0x140158174
cmp edi, 0x20
jle 0x140158168
cmp ecx, 0x200
mov eax, 0x400
cmove ecx, eax
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.1400d9d20
mov rcx, qword [r14]
lea rdx, [r14 + 0x34]
mov r8d, edi
call fcn.1400cf010
mov edx, dword [r14 + 0x34]
movzx ecx, di
sub edx, ecx
mov dword [r14 + 0x38], edx
test eax, eax
jne 0x1401583d7
mov rdi, qword [rsp + 0x28]
xor r14d, r14d
cmp byte [rbx + 0x67], 0
jne 0x1401583d7
movsx eax, byte [rbx + 0x6a]
test al, al
js 0x1401581f1
mov edx, eax
jmp 0x140158208
test rbp, rbp
jne 0x1401580d0
mov rax, qword [r12]
mov edx, dword [rax + 0x2d0]
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1401581e9
cmp byte [rcx + 0xa], r14b
je 0x1401581e9
call fcn.1400d2410
jmp 0x1401580c6
mov edi, r14d
jmp 0x1401580c8
mov rax, qword [r12 + 8]
mov edx, r14d
cmp byte [rax + 0x21], 0
je 0x140158208
cmp byte [rax + 0x22], 0
setne dl
inc edx
mov rcx, rdi
call fcn.1400da160
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.140157b00
mov edi, eax
test eax, eax
jne 0x1401583dc
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.140157b00
mov edi, eax
test eax, eax
jne 0x1401583dc
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.140157b00
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1401583dc
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.140157b00
mov edi, eax
test eax, eax
jne 0x1401583dc
nop word [rax + rax]
mov rcx, qword [r12 + 8]
lea r8, [0x140000000]
movzx r15d, byte [r14 + r8 + 0x644bb8]
cmp r15d, 0xf
jne 0x1401582db
mov rax, qword [rcx]
mov ecx, dword [rax + 0x84]
add ecx, dword [r12 + 0x1c]
jmp 0x1401582f0
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 + 0x644bb9]
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.1400d1bf0
mov edi, eax
test eax, eax
jne 0x14015833b
mov rax, qword [rsp + 0x50]
mov edx, esi
lea ecx, [r15*4 + 0x24]
bswap edx
mov dword [rcx + rax], edx
cmp r15d, 7
jne 0x14015833b
mov byte [r13 + 0x22], sil
jmp 0x140158343
test edi, edi
jne 0x1401583dc
mov r13, qword [rsp + 0x38]
add r14, 2
cmp r14, 0xa
jl 0x1401582b0
mov rsi, qword [rsp + 0xc8]
mov r13, qword [rsp + 0x28]
test rsi, rsi
jne 0x140158379
mov rdx, r13
mov rcx, r12
call fcn.1400e6780
mov edi, eax
test eax, eax
jne 0x1401583dc
mov rcx, r13
call fcn.1400db6b0
mov edi, eax
test eax, eax
jne 0x1401583dc
test rsi, rsi
jne 0x1401583dc
mov r9, qword [rsp + 0x38]
xor edx, edx
mov rax, qword [r9]
cmp byte [rax + 0x21], dl
je 0x1401583a3
cmp byte [rax + 0x22], dl
setne dl
inc edx
mov rcx, r12
call fcn.1400da160
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.1400da010
mov edi, eax
jmp 0x1401583dc
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 0x14015845d
mov rcx, qword [rsi]
lea rdx, [rsi + 0x34]
mov r8d, ebp
call fcn.1400cf010
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 0x140158477
mov rcx, qword [r15 + 8]
call fcn.1400d9d50
mov qword [r15 + 8], r12
mov qword [r15 + 0x18], r12
mov rcx, rbx
call fcn.14011a3f0
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