Function at 0x14018a810
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x50
xor r12d, r12d
movsxd rbx, r8d
mov r13, r9
mov rdi, rdx
mov r14, rcx
cmp byte [rdx + 0x5f], r12b
jne 0x14018a88b
mov rdx, qword [rcx]
test rdx, rdx
je 0x14018a842
mov rcx, rdi
call fcn.1400fd030
mov edx, 0x28
mov rcx, rdi
call fcn.1400fd450
test rax, rax
je 0x14018a876
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402081c8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402081d8]
movsd qword [rax + 0x20], xmm0
mov qword [r14], rax
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
cmp dword [rdx + 0xc8], 1
jle 0x14018a902
mov rdx, qword [rcx]
test rdx, rdx
je 0x14018a8a4
mov rcx, rdi
call fcn.1400fd030
mov edx, 0x2b
mov rcx, rdi
call fcn.1400fd450
test rax, rax
je 0x14018a8ed
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140208198]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1402081a8]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1402081b0]
mov word [rax + 0x28], cx
movzx ecx, byte [0x1402081b2]
mov byte [rax + 0x2a], cl
mov qword [r14], rax
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0x80], rbp
mov ebp, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x14018a9cd
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x1f5450], 3
je 0x14018a975
mov rdx, qword [r14]
test rdx, rdx
je 0x14018a941
mov rcx, rdi
call fcn.1400fd030
mov edx, send
mov rcx, rdi
call fcn.1400fd450
test rax, rax
je 0x14018a968
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [reloc.WS2_32.dll_WSAAsyncSelect]
mov word [rax + 0x10], cx
mov qword [r14], rax
mov eax, 1
jmp 0x14018ae3d
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x14018a99d
cmp byte [r9 + 0xa], 1
jne 0x14018a99d
mov r9, qword [r9 + 0x10]
mov eax, ebp
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x14018a9d4
test cl, 1
je 0x14018a9b2
mov eax, ebp
xor r9d, r9d
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x14018a9d4
mov dl, 1
mov rcx, r13
call fcn.140123110
mov r9, rax
mov eax, dword [rdi + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rdi + 0x4c], eax
jmp 0x14018a9d4
lea r9, [0x1401f6988]
mov eax, dword [rdi + 0x2c]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rcx, qword [rdi + 0x30]
mov edx, dword [rdi + 0x74]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov dword [rsp + 0x34], edx
mov edx, dword [rdi + 0x78]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rcx, rbx
mov rax, qword [rdi + 0x20]
shl rcx, 5
mov dword [rsp + 0x38], edx
movzx edx, byte [rdi + 0x68]
mov byte [rdi + 0x68], r12b
mov rbx, qword [rcx + rax + 8]
mov qword [rsp + 0x40], rcx
mov byte [rsp + 0x20], dl
mov rdx, r14
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], r15
mov r15, qword [rcx + rax]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rdi
mov byte [rsp + 0x88], al
mov eax, dword [rdi + 0x28]
mov dword [rsp + 0x24], eax
call fcn.14018a6a0
mov dword [rdi + 0x4c], ebp
mov esi, eax
test eax, eax
jne 0x14018adc2
movsxd r12, dword [rsp + 0x24]
shl r12, 5
add r12, qword [rdi + 0x20]
mov rbp, qword [r12 + 8]
test r13, r13
je 0x14018ab29
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x14018ab25
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x14018aaca
cmp qword [rsp + 0x28], 0
jle 0x14018ab25
mov rdx, qword [r14]
mov esi, 1
test rdx, rdx
je 0x14018aadf
mov rcx, rdi
call fcn.1400fd030
mov edx, 0x1b
mov rcx, rdi
call fcn.1400fd450
test rax, rax
je 0x14018ab1d
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402084b0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1402084b8]
mov word [rax + 0x18], cx
movzx ecx, byte [0x1402084ba]
mov byte [rax + 0x1a], cl
mov qword [r14], rax
jmp 0x14018adc2
or dword [rdi + 0x2c], 8
mov rcx, rbx
call fcn.1401159f0
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rdx, qword [rdx + rcx + 0x18]
mov rcx, rbp
mov edx, dword [rdx + 0x74]
call fcn.1401156c0
xor edx, edx
mov rcx, rbx
call fcn.140115750
mov edx, eax
mov rcx, rbp
call fcn.140115750
mov edx, 0x21
mov rcx, rbp
call fcn.140115810
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.14018a460
mov esi, eax
test eax, eax
jne 0x14018adc2
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.1401160a0
mov esi, eax
test eax, eax
jne 0x14018adc2
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x14018abc1
mov dword [rdi + 0x6c], esi
mov rcx, qword [rbx + 8]
mov edx, dword [rcx + 0x34]
xor r9d, r9d
mov esi, dword [rsp + 0x28]
mov rcx, rbp
mov r8d, esi
call fcn.140115910
test eax, eax
jne 0x14018adbd
cmp byte [rsp + 0x88], al
jne 0x14018ac00
mov edx, dword [rdi + 0x6c]
xor r9d, r9d
mov r8d, esi
mov rcx, rbp
call fcn.140115910
test eax, eax
jne 0x14018adbd
cmp byte [rdi + 0x61], 0
jne 0x14018adbd
movsx eax, byte [rdi + 0x64]
test al, al
jns 0x14018ac1a
mov rcx, rbx
call fcn.140115be0
mov edx, eax
mov rcx, rbp
call fcn.140115b50
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 r9, r15
mov byte [rdi + 0xb4], al
mov rdx, r14
mov rcx, rdi
call fcn.14018a6a0
mov esi, eax
test eax, eax
jne 0x14018adc2
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.14018a6a0
mov esi, eax
test eax, eax
jne 0x14018adc2
mov r9, r15
mov byte [rdi + 0xb4], 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, rdi
call fcn.14018a6a0
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x14018adc2
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, rdi
call fcn.14018a6a0
mov esi, eax
test eax, eax
jne 0x14018adc2
xor r14d, r14d
nop word [rax + rax]
movzx r8d, byte [rbx + 0x11]
lea rax, [0x140000000]
movzx esi, byte [r14 + rax + 0x1f0390]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x14018acf4
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14018acf4
mov rcx, rbx
call fcn.1401129f0
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x14018ad07
mov rax, qword [r15]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x14018ad1b
mov rax, qword [r15 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x14018ad2e
sub dword [rbx + 0x14], 1
jne 0x14018ad2e
mov rcx, rbx
call fcn.1401129c0
lea rax, [0x140000000]
mov rcx, rbp
movzx r8d, byte [r14 + rax + 0x1f0391]
movzx edx, byte [r14 + rax + 0x1f0390]
add r8d, esi
call fcn.14011f6e0
mov esi, eax
test eax, eax
jne 0x14018adc2
add r14, 2
cmp r14, 0xa
jl 0x14018acc0
test r13, r13
jne 0x14018ad7c
mov rdx, rbp
mov rcx, rbx
call fcn.140121d10
mov esi, eax
test eax, eax
jne 0x14018adc2
mov rcx, rbp
call fcn.140117780
mov esi, eax
test eax, eax
jne 0x14018adc2
test r13, r13
jne 0x14018adc2
mov rcx, rbp
call fcn.140115be0
mov edx, eax
mov rcx, rbx
call fcn.140115b50
mov rax, qword [rbp + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x28]
mov rcx, rbx
mov edx, dword [rax + 0x34]
call fcn.140115910
mov esi, eax
jmp 0x14018adc2
mov esi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov eax, dword [rsp + 0x34]
lea edx, [r9 - 2]
mov dword [rdi + 0x74], eax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x78], eax
movzx eax, byte [rsp + 0x20]
mov byte [rdi + 0x68], al
mov byte [rdi + 0xb4], 0
call fcn.140115910
mov r15, qword [rsp + 0x98]
mov byte [rdi + 0x5f], 1
test r12, r12
je 0x14018ae2b
mov rcx, qword [r12 + 8]
call fcn.1401153f0
xor eax, eax
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], rax
mov rcx, rdi
call fcn.1401502e0
mov eax, esi
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret