Function at 0x140093030
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push r13
push r14
sub rsp, 0x88
mov rax, qword [0x14031a320]
xor rax, rsp
mov qword [rsp + 0x58], rax
movsxd rbx, r8d
mov r13, r9
xor r8d, r8d
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], r8
cmp byte [rdx + 0x61], r8b
jne 0x14009307d
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140004d60
mov eax, 1
jmp 0x1400932d7
cmp dword [rdx + 0xd0], 1
jle 0x14009309c
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140004d60
mov eax, 1
jmp 0x1400932d7
mov qword [rsp + 0x78], rdi
mov edi, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x14009313c
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x2eb110], 3
je 0x1400930e4
lea r8, str.non_text_filename
mov rdx, rsi
mov rcx, r14
call fcn.140004d60
mov eax, 1
jmp 0x1400932d2
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x14009310c
cmp byte [r9 + 0xa], 1
jne 0x14009310c
mov r9, qword [r9 + 0x10]
mov eax, edi
and eax, 0xfffffffe
or eax, 6
mov dword [rsi + 0x4c], eax
jmp 0x140093143
test cl, 1
je 0x140093121
mov eax, edi
mov r9, r8
and eax, 0xfffffffe
or eax, 6
mov dword [rsi + 0x4c], eax
jmp 0x140093143
mov dl, 1
mov rcx, r13
call fcn.140029bc0
mov r9, rax
mov eax, dword [rsi + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rsi + 0x4c], eax
jmp 0x140093143
lea r9, [0x1402df794]
mov eax, dword [rsi + 0x2c]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rcx, qword [rsi + 0x30]
mov edx, dword [rsi + 0x78]
mov dword [rsp + 0x28], eax
or eax, 6
mov dword [rsi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov dword [rsp + 0x2c], edx
mov edx, dword [rsi + 0x7c]
or rax, 0x201
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 0x20]
mov dword [rsp + 0x30], edx
movzx edx, byte [rsi + 0x6a]
mov byte [rsi + 0x6a], 0
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r15
mov r15, rbx
shl r15, 5
mov byte [rsp + 0x20], dl
mov rdx, r14
mov rcx, qword [r15 + rax]
mov rbx, qword [r15 + rax + 8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x24], eax
movzx r12d, byte [rcx + 0x10]
mov rcx, rsi
call fcn.140092cf0
mov dword [rsi + 0x4c], edi
mov ebp, eax
test eax, eax
jne 0x140093252
movsxd rax, dword [rsp + 0x24]
shl rax, 5
add rax, qword [rsi + 0x20]
mov qword [rsp + 0x38], rax
mov rdi, qword [rax + 8]
test r13, r13
je 0x1400932f6
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
xor eax, eax
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
test rax, rax
je 0x1400932f2
lea rdx, [rsp + 0x50]
call qword [rax + 0x30]
test eax, eax
jne 0x14009323b
cmp qword [rsp + 0x50], 0
jle 0x1400932f2
lea r8, str.output_file_already_exists
mov rdx, rsi
mov rcx, r14
mov ebp, 1
call fcn.140004d60
xor r15d, r15d
mov eax, dword [rsp + 0x28]
mov r9d, 1
mov dword [rsi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rsi + 0x30], rax
mov eax, dword [rsp + 0x2c]
lea edx, [r9 - 2]
mov dword [rsi + 0x78], eax
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x7c], eax
movzx eax, byte [rsp + 0x20]
mov byte [rsi + 0x6a], al
mov byte [rsi + 0xbc], 0
call fcn.14001bb50
mov rbx, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov byte [rsi + 0x61], 1
test rbx, rbx
je 0x1400932bb
mov rcx, qword [rbx + 8]
call fcn.14001b760
mov qword [rbx + 8], r15
mov qword [rbx + 0x18], r15
mov rcx, rsi
call fcn.140056d80
mov r15, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140252d20
add rsp, 0x88
pop r14
pop r13
pop rsi
pop rbx
ret
or dword [rsi + 0x2c], 8
mov rcx, rbx
call fcn.14001bc70
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x50], eax
mov rdx, qword [r15 + rcx + 0x18]
mov rcx, rdi
mov edx, dword [rdx + 0x74]
call fcn.14001b900
movzx r8d, byte [rbx + 0x11]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x14009333a
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14009333a
mov rcx, rbx
call fcn.140019050
movzx r8d, byte [rbx + 0x11]
mov rax, qword [r15]
mov r9, qword [rax + 0x118]
movsxd rdx, dword [r9 + 0x1c]
test edx, edx
jns 0x140093369
mov eax, dword [r9 + 0x28]
add eax, dword [r9 + 0x24]
movsxd rcx, eax
mov rax, rdx
neg rax
shl rax, 0xa
cqo
idiv rcx
mov rdx, rax
mov ebp, dword [r9 + 0x20]
cmp edx, ebp
cmovge ebp, edx
test r8b, r8b
je 0x140093385
sub dword [rbx + 0x14], 1
jne 0x140093385
mov rcx, rbx
call fcn.140019020
mov edx, ebp
mov rcx, rdi
call fcn.14001b990
cmp byte [rdi + 0x11], 0
mov r15, qword [rdi + 8]
je 0x1400933aa
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400933aa
mov rcx, rdi
call fcn.140019050
mov rcx, qword [r15]
mov r15d, 0
mov word [rcx + 0xb], 1
mov byte [rcx + 0xd], 0
mov word [rcx + 0xe], 0
cmp byte [rcx + 0xc], 0
movzx eax, byte [rcx + 0xf]
cmovne eax, r15d
and byte [rcx + 0x18], 0xfe
mov byte [rcx + 0xf], al
cmp byte [rdi + 0x11], r15b
je 0x1400933ea
sub dword [rdi + 0x14], 1
jne 0x1400933ea
mov rcx, rdi
call fcn.140019020
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rsi
call fcn.140092be0
mov ebp, eax
test eax, eax
jne 0x140093255
mov edx, r15d
mov eax, 2
test r13, r13
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.14001c290
mov ebp, eax
test eax, eax
jne 0x140093255
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x14009343e
mov dword [rsi + 0x70], r15d
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov ebp, dword [rsp + 0x50]
mov rcx, rdi
mov r8d, ebp
call fcn.14001bb50
test eax, eax
jne 0x140093702
test r12b, r12b
jne 0x140093479
mov edx, dword [rsi + 0x70]
xor r9d, r9d
mov r8d, ebp
mov rcx, rdi
call fcn.14001bb50
test eax, eax
jne 0x140093702
cmp byte [rsi + 0x63], r15b
jne 0x140093702
movsx eax, byte [rsi + 0x66]
test al, al
js 0x14009348f
mov ebp, eax
jmp 0x1400934d5
movzx eax, byte [rbx + 0x11]
test al, al
je 0x1400934ac
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r15b
jne 0x1400934ac
mov rcx, rbx
call fcn.140019050
movzx eax, byte [rbx + 0x11]
mov rcx, qword [rbx + 8]
mov ebp, r15d
cmp byte [rcx + 0x21], r15b
je 0x1400934c3
cmp byte [rcx + 0x22], r15b
setne bpl
inc ebp
test al, al
je 0x1400934d5
sub dword [rbx + 0x14], 1
jne 0x1400934d5
mov rcx, rbx
call fcn.140019020
mov edx, ebp
mov rcx, rdi
call fcn.14001bd40
mov eax, dword [rsp + 0x24]
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 [rsi + 0xbc], al
mov rcx, rsi
call fcn.140092cf0
mov ebp, eax
test eax, eax
jne 0x140093252
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rsi
call fcn.140092cf0
mov ebp, eax
test eax, eax
jne 0x140093252
mov r9, r15
mov byte [rsi + 0xbc], 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, rsi
call fcn.140092cf0
and dword [rsi + 0x2c], 0xfffffffb
mov ebp, eax
test eax, eax
jne 0x140093252
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, rsi
call fcn.140092cf0
mov ebp, eax
test eax, eax
jne 0x140093252
xor eax, eax
lea r12, [0x140000000]
mov r14d, eax
movzx r8d, byte [rbx + 0x11]
movzx ebp, byte [r14 + r12 + 0x2e5e78]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x1400935ad
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1400935ad
mov rcx, rbx
call fcn.140019050
movzx r8d, byte [rbx + 0x11]
cmp ebp, 0xf
jne 0x1400935c0
mov rax, qword [r15]
mov ebp, dword [rax + 0x84]
add ebp, dword [rbx + 0x1c]
jmp 0x1400935d4
mov rax, qword [r15 + 0x18]
lea edx, [rbp*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ebp, dword [rdx + rcx]
bswap ebp
test r8b, r8b
je 0x1400935e7
sub dword [rbx + 0x14], 1
jne 0x1400935e7
mov rcx, rbx
call fcn.140019020
movzx r8d, byte [r14 + r12 + 0x2e5e79]
mov rcx, rdi
movzx edx, byte [r14 + r12 + 0x2e5e78]
add r8d, ebp
call fcn.140025db0
mov ebp, eax
test eax, eax
jne 0x140093252
add r14, 2
cmp r14, 0xa
jl 0x140093580
test r13, r13
jne 0x140093636
mov rdx, rdi
mov rcx, rbx
call fcn.140028510
mov ebp, eax
test eax, eax
jne 0x140093252
cmp byte [rdi + 0x11], 0
je 0x14009364d
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x14009364d
mov rcx, rdi
call fcn.140019050
xor edx, edx
mov rcx, rdi
call fcn.14001d4c0
mov ebp, eax
test eax, eax
jne 0x140093669
xor edx, edx
mov rcx, rdi
call fcn.14001d720
mov ebp, eax
cmp byte [rdi + 0x11], 0
je 0x14009367d
sub dword [rdi + 0x14], 1
jne 0x14009367d
mov rcx, rdi
call fcn.140019020
test ebp, ebp
jne 0x140093252
test r13, r13
jne 0x140093252
movzx eax, byte [rdi + 0x11]
test al, al
je 0x1400936ab
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], r13b
jne 0x1400936ab
mov rcx, rdi
call fcn.140019050
movzx eax, byte [rdi + 0x11]
mov rcx, qword [rdi + 8]
xor r15d, r15d
mov ebp, r15d
cmp byte [rcx + 0x21], r15b
je 0x1400936c5
cmp byte [rcx + 0x22], r15b
setne bpl
inc ebp
test al, al
je 0x1400936d7
sub dword [rdi + 0x14], 1
jne 0x1400936d7
mov rcx, rdi
call fcn.140019020
mov edx, ebp
mov rcx, rbx
call fcn.14001bd40
mov rax, qword [rdi + 8]
mov r9d, 1
mov r8d, dword [rsp + 0x50]
mov rcx, rbx
mov edx, dword [rax + 0x34]
call fcn.14001bb50
mov ebp, eax
jmp 0x140093255
mov ebp, 7
jmp 0x140093255