Function at 0x1400c7530
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 0x1400c75ba
lea edx, [r8 + 0x28]
mov rcx, rbx
call fcn.140029880
mov rdi, rax
test rax, rax
je 0x1400c7596
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14033a198]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14033a1a8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [rsi]
test rdx, rdx
je 0x1400c75a6
mov rcx, rbx
call fcn.140029370
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 0x1400c7633
mov edx, 0x2b
mov rcx, rbx
call fcn.140029880
mov rdi, rax
test rax, rax
je 0x1400c760f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14033a1c0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14033a1d0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x14033a1d8]
mov word [rdi + 0x28], ax
movzx eax, byte [0x14033a1da]
mov byte [rdi + 0x2a], al
mov rdx, qword [rsi]
test rdx, rdx
je 0x1400c75a6
mov rcx, rbx
call fcn.140029370
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 0x1400c76f7
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x332a50], 3
je 0x1400c76a5
mov edx, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.140029880
mov rdi, rax
test rax, rax
je 0x1400c768a
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14033a1f0]
mov word [rax + 0x10], cx
mov rdx, qword [rsi]
test rdx, rdx
je 0x1400c769a
mov rcx, rbx
call fcn.140029370
mov qword [rsi], rdi
mov eax, r14d
jmp 0x1400c7d49
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400c76c9
cmp byte [r9 + 0x16], r14b
jne 0x1400c76c9
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x1400c76fe
test r14b, cl
je 0x1400c76db
and dword [rbx + 0x4c], 0xfffffffe
mov r9, r8
or dword [rbx + 0x4c], 6
jmp 0x1400c76fe
movzx edx, r14b
mov rcx, rbp
call fcn.140057860
and dword [rbx + 0x4c], 0xfffffffe
xor r8d, r8d
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x1400c76fe
lea r9, [0x14032c9b5]
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 0x1400c7791
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x30], r8d
je 0x1400c7796
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.1400c73c0
mov dword [rbx + 0x4c], r15d
mov edi, eax
test eax, eax
jne 0x1400c7c9c
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 0x1400c7896
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 0x1400c787d
lea rdx, [rsp + 0x40]
call qword [rax + 0x30]
test eax, eax
jne 0x1400c781c
cmp qword [rsp + 0x40], 0
jle 0x1400c7878
mov edx, 0x1b
mov rcx, rbx
mov edi, r14d
call fcn.140029880
mov rbp, rax
test rax, rax
je 0x1400c7860
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14033a220]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14033a228]
mov word [rax + 0x18], cx
movzx eax, byte [0x14033a22a]
mov byte [rbp + 0x1a], al
mov rdx, qword [rsi]
test rdx, rdx
je 0x1400c7870
mov rcx, rbx
call fcn.140029370
mov qword [rsi], rbp
jmp 0x1400c7ca1
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 0x1400c789b
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.140049590
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
mov r9, qword [rcx + 0x120]
movsxd r8, dword [r9 + 0x20]
test r8d, r8d
jns 0x1400c7909
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.1400495f0
mov rcx, qword [rdi]
or r14d, 0x20
mov edx, r14d
mov rcx, qword [rcx]
call fcn.14003e610
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1400c7190
mov edi, eax
test eax, eax
jne 0x1400c7c9c
xor r14d, r14d
mov eax, 2
test rbp, rbp
mov edx, r14d
cmove edx, eax
cmp byte [r12 + 0x11], r14b
jne 0x1400c797b
movzx eax, byte [r12 + 0x10]
test al, al
je 0x1400c797b
cmp al, 1
jne 0x1400c7a76
test rbp, rbp
jne 0x1400c7990
xor r8d, r8d
mov rcx, r12
call fcn.140049ca0
mov edi, eax
test edi, edi
jne 0x1400c7c9c
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400c79a7
test rbp, rbp
jne 0x1400c79a7
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.1400496b0
test eax, eax
jne 0x1400c7c97
mov r13, qword [rsp + 0x38]
cmp dword [rsp + 0x30], r14d
jne 0x1400c7a60
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 0x1400c7c97
lea eax, [rcx - 0x200]
cmp eax, 0xfe00
ja 0x1400c7a34
lea eax, [rcx - 1]
test ecx, eax
jne 0x1400c7a34
cmp edi, 0x20
jle 0x1400c7a28
cmp ecx, 0x200
mov eax, 0x400
cmove ecx, eax
mov dword [r14 + 0x34], ecx
mov rcx, r14
call fcn.1400493c0
mov rcx, qword [r14]
lea rdx, [r14 + 0x34]
mov r8d, edi
call fcn.14003e740
mov edx, dword [r14 + 0x34]
movzx ecx, di
sub edx, ecx
mov dword [r14 + 0x38], edx
test eax, eax
jne 0x1400c7c97
mov rdi, qword [rsp + 0x28]
xor r14d, r14d
cmp byte [rbx + 0x67], 0
jne 0x1400c7c97
movsx eax, byte [rbx + 0x6a]
test al, al
js 0x1400c7ab1
mov edx, eax
jmp 0x1400c7ac8
test rbp, rbp
jne 0x1400c7990
mov rax, qword [r12]
mov edx, dword [rax + 0x2d0]
mov rax, qword [r12 + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1400c7aa9
cmp byte [rcx + 0xa], r14b
je 0x1400c7aa9
call fcn.140041af0
jmp 0x1400c7986
mov edi, r14d
jmp 0x1400c7988
mov rax, qword [r12 + 8]
mov edx, r14d
cmp byte [rax + 0x21], 0
je 0x1400c7ac8
cmp byte [rax + 0x22], 0
setne dl
inc edx
mov rcx, rdi
call fcn.140049800
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.1400c73c0
mov edi, eax
test eax, eax
jne 0x1400c7c9c
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rsi
mov rcx, rbx
call fcn.1400c73c0
mov edi, eax
test eax, eax
jne 0x1400c7c9c
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.1400c73c0
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x1400c7c9c
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.1400c73c0
mov edi, eax
test eax, eax
jne 0x1400c7c9c
nop word [rax + rax]
mov rcx, qword [r12 + 8]
lea r8, [0x140000000]
movzx r15d, byte [r14 + r8 + 0x32d948]
cmp r15d, 0xf
jne 0x1400c7b9b
mov rax, qword [rcx]
mov ecx, dword [rax + 0x84]
add ecx, dword [r12 + 0x1c]
jmp 0x1400c7bb0
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 + 0x32d949]
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.140041330
mov edi, eax
test eax, eax
jne 0x1400c7bfb
mov rax, qword [rsp + 0x50]
mov edx, esi
lea ecx, [r15*4 + 0x24]
bswap edx
mov dword [rcx + rax], edx
cmp r15d, 7
jne 0x1400c7bfb
mov byte [r13 + 0x22], sil
jmp 0x1400c7c03
test edi, edi
jne 0x1400c7c9c
mov r13, qword [rsp + 0x38]
add r14, 2
cmp r14, 0xa
jl 0x1400c7b70
mov rsi, qword [rsp + 0xc8]
mov r13, qword [rsp + 0x28]
test rsi, rsi
jne 0x1400c7c39
mov rdx, r13
mov rcx, r12
call fcn.140055ec0
mov edi, eax
test eax, eax
jne 0x1400c7c9c
mov rcx, r13
call fcn.14004ad50
mov edi, eax
test eax, eax
jne 0x1400c7c9c
test rsi, rsi
jne 0x1400c7c9c
mov r9, qword [rsp + 0x38]
xor edx, edx
mov rax, qword [r9]
cmp byte [rax + 0x21], dl
je 0x1400c7c63
cmp byte [rax + 0x22], dl
setne dl
inc edx
mov rcx, r12
call fcn.140049800
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.1400496b0
mov edi, eax
jmp 0x1400c7c9c
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 0x1400c7d1d
mov rcx, qword [rsi]
lea rdx, [rsi + 0x34]
mov r8d, ebp
call fcn.14003e740
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 0x1400c7d37
mov rcx, qword [r15 + 8]
call fcn.1400493f0
mov qword [r15 + 8], r12
mov qword [r15 + 0x18], r12
mov rcx, rbx
call fcn.14008a050
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