Function at 0x1400cb740
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x90
mov rax, qword [0x14018d0f0]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rdx + 0x65], 0
mov r13, r9
movsxd rdi, r8d
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x40], 0
mov r12d, 1
jne 0x1400cb7d9
lea rbp, str.cannot_VACUUM_from_within_a_transaction
mov rbx, 0xffffffffffffffff
cmp byte [rbx + rbp + 1], 0
lea rbx, [rbx + 1]
jne 0x1400cb790
lea rdx, [rbx + 1]
mov rcx, rsi
call fcn.140029d80
mov rdi, rax
test rax, rax
je 0x1400cb7be
lea r8, [rbx + 1]
mov rdx, rbp
mov rcx, rax
call fcn.14011cdf0
mov rdx, qword [r15]
test rdx, rdx
je 0x1400cb7ce
mov rcx, rsi
call fcn.140029880
mov qword [r15], rdi
mov eax, r12d
jmp 0x1400cbe30
cmp dword [rdx + 0xd8], r12d
jle 0x1400cb7fd
lea rbp, str.cannot_VACUUM___SQL_statements_in_progress
mov rbx, 0xffffffffffffffff
cmp byte [rbx + rbp + 1], 0
lea rbx, [rbx + 1]
jne 0x1400cb7f0
jmp 0x1400cb79b
mov ebx, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1400cb891
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x16c400], 3
je 0x1400cb842
lea rbp, str.non_text_filename
mov rbx, 0xffffffffffffffff
cmp byte [rbx + rbp + 1], 0
lea rbx, [rbx + 1]
jne 0x1400cb832
jmp 0x1400cb79b
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400cb866
cmp byte [r9 + 0x16], r12b
jne 0x1400cb866
mov r9, qword [r9 + 8]
and dword [rsi + 0x4c], 0xfffffffe
or dword [rsi + 0x4c], 6
jmp 0x1400cb898
test r12b, cl
je 0x1400cb878
and dword [rsi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rsi + 0x4c], 6
jmp 0x1400cb898
movzx edx, r12b
mov rcx, r13
call fcn.140056e80
and dword [rsi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rsi + 0x4c], 6
jmp 0x1400cb898
lea r9, [0x14019f3df]
mov eax, dword [rsi + 0x2c]
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x78]
mov dword [rsp + 0x2c], eax
or eax, 6
mov dword [rsi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x50], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x58], rdx
mov rdx, qword [rsi + 0x80]
or rax, 0x201
mov qword [rsi + 0x30], rax
mov rcx, rdi
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov qword [rsp + 0x60], rdx
movzx edx, byte [rsi + 0x6e]
mov byte [rsi + 0x6e], 0
mov rdi, qword [rax + rcx + 8]
mov byte [rsp + 0x20], dl
mov rdx, qword [rax + rcx]
mov qword [rsp + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x48], rdx
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1400cb92a
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x24], 0
je 0x1400cb92f
mov dword [rsp + 0x24], r12d
movsxd r14, dword [rsi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r15
mov dword [rsp + 0x28], r14d
mov rcx, rsi
call fcn.1400cb4c0
mov dword [rsi + 0x4c], ebx
mov ebp, eax
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x1400cbdb0
mov rax, r14
shl rax, 5
add rax, qword [rsi + 0x20]
mov qword [rsp + 0x40], rax
mov r14, qword [rax + 8]
lea rax, [r14 + 8]
mov qword [rsp + 0x30], rax
test r13, r13
je 0x1400cba25
mov rax, qword [rax]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x68], 0
mov rax, qword [rcx]
test rax, rax
je 0x1400cba07
lea rdx, [rsp + 0x68]
call qword [rax + 0x30]
test eax, eax
jne 0x1400cb9b3
cmp qword [rsp + 0x68], 0
jle 0x1400cba07
mov ebp, r12d
lea r13, str.output_file_already_exists
mov r14, rbx
cmp byte [r14 + r13 + 1], 0
lea r14, [r14 + 1]
jne 0x1400cb9c0
lea rdx, [r14 + 1]
mov rcx, rsi
call fcn.140029d80
mov r12, rax
test rax, rax
je 0x1400cb9ef
lea r8, [r14 + 1]
mov rdx, r13
mov rcx, rax
call fcn.14011cdf0
mov rdx, qword [r15]
test rdx, rdx
je 0x1400cb9ff
mov rcx, rsi
call fcn.140029880
mov qword [r15], r12
jmp 0x1400cbdb0
mov rax, qword [rsi + 0x20]
or dword [rsi + 0x2c], 8
mov rbp, qword [rsp + 0x38]
movzx r12d, byte [rax + rbp + 0x10]
mov eax, dword [rsi + 0x30]
and eax, 0x38
or r12d, eax
jmp 0x1400cba2f
mov rbp, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rcx, rdi
call fcn.140047e70
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x68], eax
mov rdx, qword [rcx + rbp + 0x18]
mov rcx, r14
mov edx, dword [rdx + 0x74]
call fcn.140047be0
xor edx, edx
mov rcx, rdi
call fcn.140047c80
mov edx, eax
mov rcx, r14
call fcn.140047c80
cmp byte [r14 + 0x11], 0
mov rax, qword [rsp + 0x30]
mov rbp, qword [rax]
je 0x1400cba85
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x1400cba85
mov rcx, r14
call fcn.140044bf0
mov rcx, qword [rbp]
or r12d, 0x20
mov edx, r12d
call fcn.14003ced0
cmp byte [r14 + 0x11], 0
je 0x1400cbaab
sub dword [r14 + 0x14], 1
jne 0x1400cbaab
mov rcx, r14
call fcn.140044ba0
lea r8, [0x14019444c]
mov rdx, r15
mov rcx, rsi
call fcn.1400cb290
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
xor edx, edx
mov eax, 2
test r13, r13
cmove edx, eax
cmp byte [rdi + 0x11], bpl
jne 0x1400cbaef
movzx eax, byte [rdi + 0x10]
test al, al
je 0x1400cbaef
cmp al, 1
jne 0x1400cbc68
test r13, r13
jne 0x1400cbb04
xor r8d, r8d
mov rcx, rdi
call fcn.1400484e0
mov ebp, eax
test ebp, ebp
jne 0x1400cbdb0
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400cbb1a
test r13, r13
jne 0x1400cbb1a
mov dword [rsi + 0x74], r13d
mov rax, qword [rdi + 8]
xor r9d, r9d
mov ebp, dword [rsp + 0x68]
mov rcx, r14
mov r8d, ebp
mov edx, dword [rax + 0x34]
call fcn.140047d50
test eax, eax
jne 0x1400cbdab
cmp dword [rsp + 0x24], eax
jne 0x1400cbb5a
mov edx, dword [rsi + 0x74]
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
call fcn.140047d50
test eax, eax
jne 0x1400cbdab
cmp byte [rsi + 0x67], 0
jne 0x1400cbdab
movsx eax, byte [rsi + 0x6a]
test al, al
jns 0x1400cbb74
mov rcx, rdi
call fcn.140047fc0
mov edx, eax
mov rcx, r14
call fcn.140047f30
mov eax, dword [rsp + 0x28]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r12, qword [rsp + 0x48]
mov rdx, r15
mov r9, r12
mov byte [rsi + 0xc4], al
mov rcx, rsi
call fcn.1400cb4c0
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
mov r9, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r15
mov rcx, rsi
call fcn.1400cb4c0
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
mov r9, r12
mov byte [rsi + 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, r15
mov rcx, rsi
call fcn.1400cb4c0
and dword [rsi + 0x2c], 0xfffffffb
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
mov r9, r12
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r15
mov rcx, rsi
call fcn.1400cb4c0
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
xor r15d, r15d
nop word [rax + rax]
movzx r8d, byte [rdi + 0x11]
lea rax, [0x140000000]
movzx ebp, byte [r15 + rax + 0x166b40]
mov r12, qword [rdi + 8]
test r8b, r8b
je 0x1400cbc54
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400cbc54
mov rcx, rdi
call fcn.140044bf0
movzx r8d, byte [rdi + 0x11]
cmp ebp, 0xf
jne 0x1400cbca0
mov rax, qword [r12]
mov ebp, dword [rax + 0x84]
add ebp, dword [rdi + 0x1c]
jmp 0x1400cbcb5
test r13, r13
jne 0x1400cbb04
mov rax, qword [rdi]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1400cbc99
cmp byte [rcx + 0xa], r13b
je 0x1400cbc99
call fcn.14003fe80
jmp 0x1400cbafa
xor ebp, ebp
jmp 0x1400cbafc
mov rax, qword [r12 + 0x18]
lea edx, [rbp*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ebp, dword [rdx + rcx]
bswap ebp
test r8b, r8b
je 0x1400cbcc8
sub dword [rdi + 0x14], 1
jne 0x1400cbcc8
mov rcx, rdi
call fcn.140044ba0
lea rax, [0x140000000]
mov rcx, r14
movzx r8d, byte [r15 + rax + 0x166b41]
movzx edx, byte [r15 + rax + 0x166b40]
add r8d, ebp
call fcn.140052d80
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
add r15, 2
cmp r15, 0xa
jl 0x1400cbc20
test r13, r13
jne 0x1400cbd1e
mov rdx, r14
mov rcx, rdi
call fcn.1400554c0
mov ebp, eax
test eax, eax
jne 0x1400cbdb0
cmp byte [r14 + 0x11], 0
je 0x1400cbd38
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x1400cbd38
mov rcx, r14
call fcn.140044bf0
xor edx, edx
mov rcx, r14
call fcn.1400498c0
mov ebp, eax
test eax, eax
jne 0x1400cbd54
xor edx, edx
mov rcx, r14
call fcn.140049b10
mov ebp, eax
cmp byte [r14 + 0x11], 0
je 0x1400cbd6a
sub dword [r14 + 0x14], 1
jne 0x1400cbd6a
mov rcx, r14
call fcn.140044ba0
test ebp, ebp
jne 0x1400cbdb0
test r13, r13
jne 0x1400cbdb0
mov rcx, r14
call fcn.140047fc0
mov edx, eax
mov rcx, rdi
call fcn.140047f30
mov rcx, r14
call fcn.140047e70
mov rcx, qword [rsp + 0x30]
lea r9d, [rbp + 1]
mov r8d, eax
mov rcx, qword [rcx]
mov edx, dword [rcx + 0x34]
mov rcx, rdi
call fcn.140047d50
mov ebp, eax
jmp 0x1400cbdb0
mov ebp, 7
mov eax, dword [rsp + 0x2c]
mov r9d, 1
mov dword [rsi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov edx, ebx
mov qword [rsi + 0x30], rax
mov rcx, rdi
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x78], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x80], rax
movzx eax, byte [rsp + 0x20]
mov byte [rsi + 0x6e], al
mov byte [rsi + 0xc4], 0
call fcn.140047d50
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x88]
mov byte [rsi + 0x65], 1
test rbx, rbx
je 0x1400cbe26
mov rcx, qword [rbx + 8]
call fcn.1400479a0
mov qword [rbx + 8], 0
mov qword [rbx + 0x18], 0
mov rcx, rsi
call fcn.1400884a0
mov eax, ebp
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14011a7e0
add rsp, 0x90
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret