Function at 0x1800a5730
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0xf0
mov rax, qword [0x1802407e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp byte [rdx + 0x65], 0
mov r13, r9
movsxd rbx, r8d
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], 0
mov ebp, 1
jne 0x1800a57c0
lea edx, [rbp + 0x27]
mov rcx, rdi
call fcn.180007150
mov rbx, rax
test rax, rax
je 0x1800a57a6
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x18020cec8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x18020ced8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r15]
test rdx, rdx
je 0x1800a57b6
mov rcx, rdi
call fcn.180006c50
mov qword [r15], rbx
mov eax, ebp
jmp 0x1800a5b06
cmp dword [rdx + 0xd8], ebp
jle 0x1800a582e
mov edx, 0x2b
mov rcx, rdi
call fcn.180007150
mov rbx, rax
test rax, rax
je 0x1800a5814
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x18020cef0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x18020cf00]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x18020cf08]
mov word [rbx + 0x28], ax
movzx eax, byte [0x18020cf0a]
mov byte [rbx + 0x2a], al
mov rdx, qword [r15]
test rdx, rdx
je 0x1800a57b6
mov rcx, rdi
call fcn.180006c50
mov eax, ebp
mov qword [r15], rbx
jmp 0x1800a5b06
mov qword [rsp + 0xd8], r14
mov r14d, dword [rdx + 0x4c]
lea rdx, [0x180000000]
test r13, r13
je 0x1800a58f1
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x213af0], 3
je 0x1800a58a2
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.180007150
mov rbx, rax
test rax, rax
je 0x1800a5888
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x18020cf20]
mov word [rax + 0x10], cx
mov rdx, qword [r15]
test rdx, rdx
je 0x1800a5898
mov rcx, rdi
call fcn.180006c50
mov qword [r15], rbx
mov eax, ebp
jmp 0x1800a5afe
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1800a58c6
cmp byte [r9 + 0x16], bpl
jne 0x1800a58c6
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1800a58f8
test bpl, cl
je 0x1800a58d8
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1800a58f8
movzx edx, bpl
mov rcx, r13
call fcn.180033020
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
jmp 0x1800a58f8
lea r9, [0x18020734d]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x38], 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 + 0x50], rdx
mov rdx, qword [rdi + 0x80]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xe0], r12
mov r12, rbx
shl r12, 5
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], 0
mov rcx, qword [r12 + rax]
mov rbx, qword [r12 + rax + 8]
mov qword [rsp + 0xb8], rcx
mov byte [rsp + 0x20], dl
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1800a5990
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x24], 0
je 0x1800a5994
mov dword [rsp + 0x24], ebp
mov eax, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r15
mov dword [rsp + 0x28], eax
mov rcx, rdi
call fcn.1800a54b0
mov dword [rdi + 0x4c], r14d
mov esi, eax
test eax, eax
jne 0x1800a5a79
movsxd rax, dword [rsp + 0x28]
shl rax, 5
add rax, qword [rdi + 0x20]
mov qword [rsp + 0x40], rax
mov r14, qword [rax + 8]
lea rsi, [r14 + 8]
mov qword [rsp + 0x30], rsi
test r13, r13
je 0x1800a5b3d
mov rax, qword [rsi]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0xb0], 0
mov rax, qword [rcx]
test rax, rax
je 0x1800a5b25
lea rdx, [rsp + 0xb0]
call qword [rax + 0x30]
test eax, eax
jne 0x1800a5a23
cmp qword [rsp + 0xb0], 0
jle 0x1800a5b25
mov edx, 0x1b
mov rcx, rdi
mov esi, ebp
call fcn.180007150
mov rbp, rax
test rax, rax
je 0x1800a5a66
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x18020cf50]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x18020cf58]
mov word [rax + 0x18], cx
movzx eax, byte [0x18020cf5a]
mov byte [rbp + 0x1a], al
mov rdx, qword [r15]
test rdx, rdx
je 0x1800a5a76
mov rcx, rdi
call fcn.180006c50
mov qword [r15], rbp
xor r12d, r12d
mov eax, dword [rsp + 0x38]
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 + 0x20]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.180023fb0
mov rbx, qword [rsp + 0x40]
mov byte [rdi + 0x65], 1
test rbx, rbx
je 0x1800a5ae4
mov rcx, qword [rbx + 8]
call fcn.180023c00
mov qword [rbx + 8], r12
mov qword [rbx + 0x18], r12
mov rcx, rdi
call fcn.180063950
mov r12, qword [rsp + 0xe0]
mov eax, esi
mov rsi, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18015c7e0
add rsp, 0xf0
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
movzx ebp, byte [rax + r12 + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or ebp, eax
jmp 0x1800a5b42
mov qword [rsp + 0x30], rsi
mov rcx, rbx
call fcn.1800240d0
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0xb0], eax
mov rdx, qword [rcx + r12 + 0x18]
mov rcx, r14
mov edx, dword [rdx + 0x74]
call fcn.180023e40
xor edx, edx
mov rcx, rbx
call fcn.180023ee0
mov edx, eax
mov rcx, r14
call fcn.180023ee0
cmp byte [r14 + 0x11], 0
mov rsi, qword [rsi]
je 0x1800a5b96
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], 0
jne 0x1800a5b96
mov rcx, r14
call fcn.180020f40
mov rcx, qword [rsi]
or ebp, 0x20
mov edx, ebp
call fcn.180019eb0
cmp byte [r14 + 0x11], 0
je 0x1800a5bb9
sub dword [r14 + 0x14], 1
jne 0x1800a5bb9
mov rcx, r14
call fcn.180020f10
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rdi
call fcn.1800a5280
xor r12d, r12d
mov esi, eax
test eax, eax
jne 0x1800a5a7c
test r13, r13
mov edx, r12d
mov eax, 2
cmove edx, eax
cmp byte [rbx + 0x11], r12b
jne 0x1800a5c01
movzx eax, byte [rbx + 0x10]
test al, al
je 0x1800a5c01
cmp al, 1
jne 0x1800a5d78
test r13, r13
jne 0x1800a5c16
xor r8d, r8d
mov rcx, rbx
call fcn.180024740
mov esi, eax
test esi, esi
jne 0x1800a5a7c
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1800a5c2c
test r13, r13
jne 0x1800a5c2c
mov dword [rdi + 0x74], r12d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0xb0]
mov rcx, r14
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.180023fb0
test eax, eax
jne 0x1800a5fe8
cmp dword [rsp + 0x24], r12d
jne 0x1800a5c70
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r14
call fcn.180023fb0
test eax, eax
jne 0x1800a5fe8
cmp byte [rdi + 0x67], r12b
jne 0x1800a5fe8
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x1800a5c8a
mov rcx, rbx
call fcn.180024220
mov edx, eax
mov rcx, r14
call fcn.180024190
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 rbp, qword [rsp + 0xb8]
mov rdx, r15
mov r9, rbp
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1800a54b0
mov esi, eax
test eax, eax
jne 0x1800a5a7c
mov r9, rbp
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r15
mov rcx, rdi
call fcn.1800a54b0
mov esi, eax
test eax, eax
jne 0x1800a5a7c
mov r9, rbp
mov byte [rdi + 0xc4], r12b
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.1800a54b0
and dword [rdi + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1800a5a7c
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.1800a54b0
mov esi, eax
test eax, eax
jne 0x1800a5a7c
mov r15, r12
movzx r8d, byte [rbx + 0x11]
lea rax, [0x180000000]
movzx esi, byte [r15 + rax + 0x20e300]
mov rbp, qword [rbx + 8]
test r8b, r8b
je 0x1800a5d64
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r12b
jne 0x1800a5d64
mov rcx, rbx
call fcn.180020f40
movzx r8d, byte [rbx + 0x11]
cmp esi, 0xf
jne 0x1800a5db1
mov rax, qword [rbp]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x1800a5dc5
test r13, r13
jne 0x1800a5c16
mov rax, qword [rbx]
mov edx, dword [rax + 0x2f0]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp edx, dword [rcx + 0x80]
jle 0x1800a5da9
cmp byte [rcx + 0xa], r12b
je 0x1800a5da9
call fcn.18001ccc0
jmp 0x1800a5c0c
mov esi, r12d
jmp 0x1800a5c0e
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 0x1800a5dd8
sub dword [rbx + 0x14], 1
jne 0x1800a5dd8
mov rcx, rbx
call fcn.180020f10
lea rax, [0x180000000]
mov rcx, r14
movzx r8d, byte [r15 + rax + 0x20e301]
movzx edx, byte [r15 + rax + 0x20e300]
add r8d, esi
call fcn.18002f0b0
mov esi, eax
test eax, eax
jne 0x1800a5a7c
add r15, 2
cmp r15, 0xa
jl 0x1800a5d30
test r13, r13
jne 0x1800a5f53
cmp byte [rbx + 0x11], r12b
je 0x1800a5e34
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r12b
jne 0x1800a5e34
mov rcx, rbx
call fcn.180020f40
cmp byte [r14 + 0x11], r12b
je 0x1800a5e4c
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], r12b
jne 0x1800a5e4c
mov rcx, r14
call fcn.180020f40
mov rax, qword [rbx + 8]
mov r15, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x1800a5e9c
mov rax, qword [r15]
lea r8, [rsp + 0xb8]
mov edx, dword [rax + 0x40]
movsxd rax, dword [rax + 0x34]
imul rdx, rax
mov qword [rsp + 0xb8], rdx
mov edx, listen
call qword [r9 + 0x50]
cmp eax, 0xc
mov esi, r12d
cmovne esi, eax
test esi, esi
jne 0x1800a5f20
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], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 1
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x68], rbx
call fcn.180030e20
lea rcx, [rsp + 0x60]
call fcn.1800315b0
mov esi, eax
test eax, eax
jne 0x1800a5f09
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x28], cx
jmp 0x1800a5f20
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x10], r12b
jne 0x1800a5f20
call fcn.180018340
cmp byte [r14 + 0x11], r12b
je 0x1800a5f35
sub dword [r14 + 0x14], 1
jne 0x1800a5f35
mov rcx, r14
call fcn.180020f10
cmp byte [rbx + 0x11], r12b
je 0x1800a5f49
sub dword [rbx + 0x14], 1
jne 0x1800a5f49
mov rcx, rbx
call fcn.180020f10
test esi, esi
jne 0x1800a5a7c
jmp 0x1800a5f58
mov r15, qword [rsp + 0x30]
cmp byte [r14 + 0x11], r12b
je 0x1800a5f70
inc dword [r14 + 0x14]
cmp byte [r14 + 0x12], r12b
jne 0x1800a5f70
mov rcx, r14
call fcn.180020f40
xor edx, edx
mov rcx, r14
call fcn.180025b20
mov esi, eax
test eax, eax
jne 0x1800a5f8c
xor edx, edx
mov rcx, r14
call fcn.180025d70
mov esi, eax
cmp byte [r14 + 0x11], r12b
je 0x1800a5fa1
sub dword [r14 + 0x14], 1
jne 0x1800a5fa1
mov rcx, r14
call fcn.180020f10
test esi, esi
jne 0x1800a5a7c
test r13, r13
jne 0x1800a5a7c
mov rcx, r14
call fcn.180024220
mov edx, eax
mov rcx, rbx
call fcn.180024190
mov rcx, r14
call fcn.1800240d0
mov rcx, qword [r15]
lea r9d, [rsi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.180023fb0
mov esi, eax
jmp 0x1800a5a7c
mov esi, 7
jmp 0x1800a5a7c