Function at 0x140117ce0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rdi
push r15
sub rsp, 0xd0
cmp byte [rdx + 0x65], 0
mov rdi, rdx
movsxd rbx, r8d
mov r15, rcx
mov qword [rsp + 0x40], 0
jne 0x140117d60
mov rdx, qword [rcx]
test rdx, rdx
je 0x140117d18
mov rcx, rdi
call fcn.14007e790
mov edx, 0x28
mov rcx, rdi
call fcn.14007ebb0
test rax, rax
je 0x140117d4c
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401f1f48]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401f1f58]
movsd qword [rax + 0x20], xmm0
mov qword [r15], rax
mov eax, 1
add rsp, 0xd0
pop r15
pop rdi
pop rbx
ret
cmp dword [rdx + 0xd8], 1
jle 0x140117dd6
mov rdx, qword [rcx]
test rdx, rdx
je 0x140117d79
mov rcx, rdi
call fcn.14007e790
mov edx, 0x2b
mov rcx, rdi
call fcn.14007ebb0
test rax, rax
je 0x140117dc2
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401f1f70]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401f1f80]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x1401f1f88]
mov word [rax + 0x28], cx
movzx ecx, byte [0x1401f1f8a]
mov byte [rax + 0x2a], cl
mov qword [r15], rax
mov eax, 1
add rsp, 0xd0
pop r15
pop rdi
pop rbx
ret
mov qword [rsp + 0xf0], rbp
mov ebp, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r9, r9
je 0x140117e97
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x1e2500], 3
je 0x140117e49
mov rdx, qword [r15]
test rdx, rdx
je 0x140117e15
mov rcx, rdi
call fcn.14007e790
mov edx, 0x12
mov rcx, rdi
call fcn.14007ebb0
test rax, rax
je 0x140117e3c
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x1401f1fa0]
mov word [rax + 0x10], cx
mov qword [r15], rax
mov eax, 1
jmp 0x14011851d
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x140117e6e
cmp byte [r9 + 0xa], 1
jne 0x140117e6e
mov r9, qword [r9 + 0x10]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x140117e9e
test cl, 1
je 0x140117e80
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x140117e9e
mov dl, 1
mov rcx, r9
call fcn.1400a6f80
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
jmp 0x140117e9e
lea r9, [0x1401db368]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x34], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0xc8], rsi
or rax, 0x201
mov qword [rsp + 0xc0], r12
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0xb8], r13
mov r13, rbx
shl r13, 5
mov qword [rsp + 0x50], rdx
mov rdx, qword [rdi + 0x80]
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], 0
mov rcx, qword [rax + r13]
mov rbx, qword [rax + r13 + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0xb0], r14
mov byte [rsp + 0xf8], dl
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x140117f43
cmp byte [rcx + 0x14], 0
jne 0x140117f43
xor r12d, r12d
jmp 0x140117f49
mov r12d, 1
movsxd r14, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r15
mov dword [rsp + 0x30], r14d
mov rcx, rdi
call fcn.140117a80
mov dword [rdi + 0x4c], ebp
mov esi, eax
test eax, eax
jne 0x140118480
mov rax, r14
shl rax, 5
add rax, qword [rdi + 0x20]
cmp qword [rsp + 0x108], 0
mov qword [rsp + 0x40], rax
mov r14, qword [rax + 8]
lea rsi, [r14 + 8]
mov qword [rsp + 0x28], rsi
je 0x14011802d
mov rax, qword [rsi]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x20], 0
mov rax, qword [rcx]
test rax, rax
je 0x140118027
lea rdx, [rsp + 0x20]
call qword [rax + 0x30]
test eax, eax
jne 0x140117fcc
cmp qword [rsp + 0x20], 0
jle 0x140118027
mov rdx, qword [r15]
mov esi, 1
test rdx, rdx
je 0x140117fe1
mov rcx, rdi
call fcn.14007e790
mov edx, 0x1b
mov rcx, rdi
call fcn.14007ebb0
test rax, rax
je 0x14011801f
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1401f1fd0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1401f1fd8]
mov word [rax + 0x18], cx
movzx ecx, byte [0x1401f1fda]
mov byte [rax + 0x1a], cl
mov qword [r15], rax
jmp 0x140118480
or dword [rdi + 0x2c], 8
jmp 0x140118032
mov qword [rsp + 0x28], rsi
mov rcx, rbx
call fcn.140098b50
mov rcx, qword [rdi + 0x20]
mov ebp, eax
mov dword [rsp + 0x20], eax
mov rdx, qword [rcx + r13 + 0x18]
mov rcx, r14
mov edx, dword [rdx + 0x74]
call fcn.1400987c0
xor edx, edx
mov rcx, rbx
call fcn.140098860
mov edx, eax
mov rcx, r14
call fcn.140098860
cmp byte [r14 + 0x11], 0
mov rsi, qword [rsi]
je 0x140118085
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x140118085
mov rcx, r14
call fcn.140095a30
mov rax, qword [rsi]
mov dword [rax + 0xb], 1
and byte [rax + 0x19], 0xfe
mov byte [rax + 0xf], 0
cmp byte [r14 + 0x11], 0
je 0x1401180ad
sub dword [r14 + 0x14], 1
jne 0x1401180ad
mov rcx, r14
call fcn.140095a00
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rdi
call fcn.140117850
mov esi, eax
test eax, eax
jne 0x140118480
mov r13, qword [rsp + 0x108]
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.140099190
mov esi, eax
test eax, eax
jne 0x140118480
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140118108
test r13, r13
jne 0x140118108
mov dword [rdi + 0x74], esi
mov rax, qword [rbx + 8]
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
mov edx, dword [rax + 0x34]
call fcn.140098a30
test eax, eax
jne 0x14011847b
test r12d, r12d
jne 0x140118143
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
call fcn.140098a30
test eax, eax
jne 0x14011847b
cmp byte [rdi + 0x67], 0
jne 0x14011847b
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x14011815d
mov rcx, rbx
call fcn.140098ca0
mov edx, eax
mov rcx, r14
call fcn.140098c10
mov eax, dword [rsp + 0x30]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rbp, qword [rsp + 0x38]
mov rdx, r15
mov r9, rbp
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.140117a80
mov esi, eax
test eax, eax
jne 0x140118480
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r15
mov rcx, rdi
call fcn.140117a80
mov esi, eax
test eax, eax
jne 0x140118480
mov r9, rbp
mov byte [rdi + 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, rdi
call fcn.140117a80
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x140118480
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, r15
mov rcx, rdi
call fcn.140117a80
mov esi, eax
test eax, eax
jne 0x140118480
xor r15d, r15d
lea r12, [0x140000000]
nop word [rax + rax]
movzx r8d, byte [rbx + 0x11]
movzx esi, byte [r15 + r12 + 0x1dcd88]
mov rbp, qword [rbx + 8]
test r8b, r8b
je 0x14011823d
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14011823d
mov rcx, rbx
call fcn.140095a30
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x140118251
mov rax, qword [rbp]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x140118265
mov rax, qword [rbp + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x140118278
sub dword [rbx + 0x14], 1
jne 0x140118278
mov rcx, rbx
call fcn.140095a00
movzx r8d, byte [r15 + r12 + 0x1dcd89]
mov rcx, r14
movzx edx, byte [r15 + r12 + 0x1dcd88]
add r8d, esi
call fcn.1400a3530
mov esi, eax
test eax, eax
jne 0x140118480
add r15, 2
cmp r15, 0xa
jl 0x140118210
test r13, r13
jne 0x1401183f4
cmp byte [rbx + 0x11], r13b
je 0x1401182cd
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r13b
jne 0x1401182cd
mov rcx, rbx
call fcn.140095a30
cmp byte [r14 + 0x11], 0
je 0x1401182e7
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x1401182e7
mov rcx, r14
call fcn.140095a30
mov rax, qword [rbx + 8]
mov r15, qword [rsp + 0x28]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x140118330
mov rax, qword [r15]
lea r8, [rsp + 0x38]
mov edx, dword [rax + 0x40]
movsxd rax, dword [rax + 0x34]
imul rdx, rax
mov qword [rsp + 0x38], rdx
mov edx, reloc.WS2_32.dll_inet_addr
call qword [r9 + 0x50]
xor esi, esi
cmp eax, 0xc
cmovne esi, eax
test esi, esi
jne 0x1401183c0
mov rax, qword [r14]
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov qword [rsp + 0x80], rax
mov edx, 0x7fffffff
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 1
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x68], rbx
call fcn.1400a5120
lea rcx, [rsp + 0x60]
call fcn.1400a5850
mov esi, eax
test eax, eax
jne 0x1401183a9
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x28], cx
jmp 0x1401183c0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x10], 0
jne 0x1401183c0
call fcn.14008cf70
cmp byte [r14 + 0x11], 0
je 0x1401183d6
sub dword [r14 + 0x14], 1
jne 0x1401183d6
mov rcx, r14
call fcn.140095a00
cmp byte [rbx + 0x11], 0
je 0x1401183ea
sub dword [rbx + 0x14], 1
jne 0x1401183ea
mov rcx, rbx
call fcn.140095a00
test esi, esi
jne 0x140118480
jmp 0x1401183f9
mov r15, qword [rsp + 0x28]
cmp byte [r14 + 0x11], 0
je 0x140118413
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x140118413
mov rcx, r14
call fcn.140095a30
xor edx, edx
mov rcx, r14
call fcn.14009a460
mov esi, eax
test eax, eax
jne 0x14011842f
xor edx, edx
mov rcx, r14
call fcn.14009a6a0
mov esi, eax
cmp byte [r14 + 0x11], 0
je 0x140118445
sub dword [r14 + 0x14], 1
jne 0x140118445
mov rcx, r14
call fcn.140095a00
test esi, esi
jne 0x140118480
test r13, r13
jne 0x140118480
mov rcx, r14
call fcn.140098ca0
mov edx, eax
mov rcx, rbx
call fcn.140098c10
mov rax, qword [r15]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x20]
mov rcx, rbx
mov edx, dword [rax + 0x34]
call fcn.140098a30
mov esi, eax
jmp 0x140118480
mov esi, 7
mov eax, dword [rsp + 0x34]
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 rax, qword [rsp + 0x50]
lea edx, [r9 - 2]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0xf8]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.140098a30
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
mov byte [rdi + 0x65], 1
test rbx, rbx
je 0x14011850b
mov rcx, qword [rbx + 8]
call fcn.140098580
mov qword [rbx + 8], 0
mov qword [rbx + 0x18], 0
mov rcx, rdi
call fcn.1400d7580
mov eax, esi
mov rsi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xf0]
add rsp, 0xd0
pop r15
pop rdi
pop rbx
ret