Function at 0x14008cad0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push r13
push r15
sub rsp, 0xb8
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor r13d, r13d
mov rbp, rdx
mov r15, rcx
cmp byte [rdx + 0x53], r13b
jne 0x14008cbef
mov rbx, qword [rcx]
test rbx, rbx
je 0x14008cbae
cmp qword [rdx + 0x298], r13
je 0x14008cb28
mov rdx, rbx
mov rcx, rbp
call fcn.140006a00
jmp 0x14008cbae
cmp rbx, qword [rdx + 0x180]
jb 0x14008cb53
cmp rbx, qword [rdx + 0x188]
jae 0x14008cb53
mov rax, qword [rdx + 0x178]
mov qword [rbx], rax
dec dword [rdx + 0x160]
mov qword [rdx + 0x178], rbx
jmp 0x14008cbae
cmp dword [0x140126d50], r13d
je 0x14008cba5
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14008cb6e
call qword [0x140126dd8]
mov rcx, rbx
call qword [0x140126d90]
dec qword [0x14012aa88]
movsxd rcx, eax
sub qword [0x14012aa40], rcx
mov rcx, rbx
call qword [0x140126d80]
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14008cbae
call qword [0x140126de8]
jmp 0x14008cbae
mov rcx, rbx
call qword [0x140126d80]
mov edx, 0x28
mov rcx, rbp
call fcn.140006e60
test rax, rax
je 0x14008cbe2
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140109478]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140109488]
movsd qword [rax + 0x20], xmm0
mov qword [r15], rax
mov eax, 1
jmp 0x14008d3cc
cmp dword [rdx + 0xac], 1
jle 0x14008cd00
mov rbx, qword [rcx]
test rbx, rbx
je 0x14008cca7
cmp qword [rdx + 0x298], r13
je 0x14008cc21
mov rdx, rbx
mov rcx, rbp
call fcn.140006a00
jmp 0x14008cca7
cmp rbx, qword [rdx + 0x180]
jb 0x14008cc4c
cmp rbx, qword [rdx + 0x188]
jae 0x14008cc4c
mov rax, qword [rdx + 0x178]
mov qword [rbx], rax
dec dword [rdx + 0x160]
mov qword [rdx + 0x178], rbx
jmp 0x14008cca7
cmp dword [0x140126d50], r13d
je 0x14008cc9e
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14008cc67
call qword [0x140126dd8]
mov rcx, rbx
call qword [0x140126d90]
dec qword [0x14012aa88]
movsxd rcx, eax
sub qword [0x14012aa40], rcx
mov rcx, rbx
call qword [0x140126d80]
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14008cca7
call qword [0x140126de8]
jmp 0x14008cca7
mov rcx, rbx
call qword [0x140126d80]
mov edx, 0x2b
mov rcx, rbp
call fcn.140006e60
mov rcx, rax
test rax, rax
je 0x14008ccf3
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401094a0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401094b0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1401094b8]
mov word [rcx + 0x28], ax
movzx eax, byte [0x1401094ba]
mov byte [rcx + 0x2a], al
mov qword [r15], rcx
mov eax, 1
jmp 0x14008d3cc
mov eax, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x68]
mov dword [rsp + 0x28], eax
and eax, 0xfff5ff7f
or eax, 0x10202800
mov qword [rsp + 0xf8], rsi
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rdx + 0x6c]
mov dword [rsp + 0x30], ecx
movzx ecx, byte [rdx + 0x5c]
mov byte [rdx + 0x5c], r13b
movsxd rsi, r8d
lea r8, str.ATTACHAS_vacuum_db
mov qword [rsp + 0xb0], rdi
movsxd rdi, dword [rdx + 0x28]
mov rdx, r15
mov byte [rsp + 0x21], cl
shl rsi, 5
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r14
mov dword [rsp + 0x90], edi
mov rbx, qword [rsi + rax + 8]
mov r12, qword [rsi + rax]
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x11]
mov rcx, rbp
mov byte [rsp + 0x20], al
call fcn.14008c680
mov r14d, eax
test eax, eax
jne 0x14008d2fb
mov r13, rdi
shl r13, 5
add r13, qword [rbp + 0x20]
mov rdi, qword [r13 + 8]
cmp byte [rdi + 0x11], al
je 0x14008cdbd
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], al
jne 0x14008cdbd
mov rcx, rdi
call fcn.14001ca80
xor edx, edx
mov rcx, rdi
call fcn.140020a20
test eax, eax
jne 0x14008cdd5
xor edx, edx
mov rcx, rdi
call fcn.140020c60
cmp byte [rdi + 0x11], 0
je 0x14008cde9
sub dword [rdi + 0x14], 1
jne 0x14008cde9
mov rcx, rdi
call fcn.14001ca50
cmp byte [rbx + 0x11], 0
je 0x14008ce00
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14008ce00
mov rcx, rbx
call fcn.14001ca80
mov rax, qword [rbx + 8]
mov ecx, dword [rax + 0x30]
sub ecx, dword [rax + 0x34]
cmp byte [rbx + 0x11], 0
mov dword [rsp + 0x24], ecx
je 0x14008ce22
sub dword [rbx + 0x14], 1
jne 0x14008ce22
mov rcx, rbx
call fcn.14001ca50
mov rax, qword [rbp + 0x20]
mov rcx, rdi
mov rdx, qword [rsi + rax + 0x18]
mov edx, dword [rdx + 0x74]
call fcn.14001f270
movzx r8d, byte [rbx + 0x11]
mov rsi, qword [rbx + 8]
test r8b, r8b
je 0x14008ce5a
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14008ce5a
mov rcx, rbx
call fcn.14001ca80
movzx r8d, byte [rbx + 0x11]
mov rax, qword [rsi]
mov rsi, qword [rax + 0x110]
movsxd rdx, dword [rsi + 0x1c]
test edx, edx
jns 0x14008ce87
mov eax, dword [rsi + 0x28]
add eax, dword [rsi + 0x24]
movsxd rcx, eax
mov rax, rdx
neg rax
shl rax, 0xa
cqo
idiv rcx
mov rdx, rax
mov esi, dword [rsi + 0x20]
cmp edx, esi
cmovge esi, edx
test r8b, r8b
je 0x14008cea2
sub dword [rbx + 0x14], 1
jne 0x14008cea2
mov rcx, rbx
call fcn.14001ca50
mov edx, esi
mov rcx, rdi
call fcn.14001f300
cmp byte [rdi + 0x11], 0
mov rsi, qword [rdi + 8]
je 0x14008cec7
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x14008cec7
mov rcx, rdi
call fcn.14001ca80
mov rax, qword [rsi]
mov dword [rax + 0xb], 1
and byte [rax + 0x19], 0xfe
mov word [rax + 0xf], 0
cmp byte [rdi + 0x11], 0
je 0x14008ceef
sub dword [rdi + 0x14], 1
jne 0x14008ceef
mov rcx, rdi
call fcn.14001ca50
lea r8, str.BEGIN
mov rdx, r15
mov rcx, rbp
call fcn.14008c680
mov r14d, eax
test eax, eax
jne 0x14008d2fb
mov edx, 2
mov rcx, rbx
call fcn.14001fb00
mov r14d, eax
test eax, eax
jne 0x14008d2fb
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x14008cf35
mov dword [rbp + 0x60], r14d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x24]
mov rcx, rdi
mov r8d, esi
mov edx, dword [rax + 0x30]
call fcn.14001f4d0
test eax, eax
jne 0x14008d2f5
cmp byte [rsp + 0x20], al
jne 0x14008cf75
mov edx, dword [rbp + 0x60]
xor r9d, r9d
mov r8d, esi
mov rcx, rdi
call fcn.14001f4d0
test eax, eax
jne 0x14008d2f5
cmp byte [rbp + 0x55], 0
jne 0x14008d2f5
movsx eax, byte [rbp + 0x58]
test al, al
js 0x14008cf8b
mov esi, eax
jmp 0x14008cfcc
cmp byte [rbx + 0x11], 0
je 0x14008cfa2
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14008cfa2
mov rcx, rbx
call fcn.14001ca80
mov rax, qword [rbx + 8]
xor esi, esi
cmp byte [rax + 0x21], sil
je 0x14008cfb8
cmp byte [rax + 0x22], sil
setne sil
inc esi
cmp byte [rbx + 0x11], 0
je 0x14008cfcc
sub dword [rbx + 0x14], 1
jne 0x14008cfcc
mov rcx, rbx
call fcn.14001ca50
mov edx, esi
mov rcx, rdi
call fcn.14001f640
mov eax, dword [rsp + 0x90]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r9, r12
mov byte [rbp + 0xa8], al
mov rdx, r15
mov rcx, rbp
call fcn.14008c860
mov r14d, eax
test eax, eax
jne 0x14008d2fb
mov r9, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov rdx, r15
mov rcx, rbp
call fcn.14008c860
mov r14d, eax
test eax, eax
jne 0x14008d2fb
mov r9, r12
mov byte [rbp + 0xa8], al
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, r15
mov rcx, rbp
call fcn.14008c860
and dword [rbp + 0x2c], 0xefffffff
mov r14d, eax
test eax, eax
jne 0x14008d2fb
mov r9, r12
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r15
mov rcx, rbp
call fcn.14008c860
mov r14d, eax
test eax, eax
jne 0x14008d2fb
xor r15d, r15d
lea r12, [0x14010a788]
nop word [rax + rax]
cmp byte [rbx + 0x11], 0
movzx esi, byte [r15 + r12]
mov r14, qword [rbx + 8]
je 0x14008d0a0
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14008d0a0
mov rcx, rbx
call fcn.14001ca80
cmp esi, 0xf
jne 0x14008d0b3
mov rax, qword [r14]
mov esi, dword [rax + 0x84]
add esi, dword [rbx + 0x1c]
jmp 0x14008d0c7
mov rax, qword [r14 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
cmp byte [rbx + 0x11], 0
je 0x14008d0db
sub dword [rbx + 0x14], 1
jne 0x14008d0db
mov rcx, rbx
call fcn.14001ca50
movzx r8d, byte [r15 + r12 + 1]
mov rcx, rdi
movzx edx, byte [r15 + r12]
add r8d, esi
call fcn.1400276c0
mov r14d, eax
test eax, eax
jne 0x14008d2fb
add r15, 2
cmp r15, 0xa
jl 0x14008d080
cmp byte [rbx + 0x11], al
je 0x14008d11f
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], al
jne 0x14008d11f
mov rcx, rbx
call fcn.14001ca80
cmp byte [rdi + 0x11], 0
je 0x14008d136
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x14008d136
mov rcx, rdi
call fcn.14001ca80
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x14008d184
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x90]
mov edx, dword [rax + 0x3c]
movsxd rax, dword [rax + 0x30]
imul rdx, rax
mov qword [rsp + 0x90], rdx
mov edx, reloc.WS2_32.dll_inet_addr
call qword [r9 + 0x50]
xor r14d, r14d
cmp eax, 0xc
cmovne r14d, eax
test r14d, r14d
jne 0x14008d20c
mov rax, qword [rdi]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
mov edx, 0x7fffffff
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x48], rbx
call fcn.140029380
lea rcx, [rsp + 0x40]
call fcn.140029af0
mov r14d, eax
test eax, eax
jne 0x14008d1f5
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x26], cx
jmp 0x14008d20c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x11], 0
jne 0x14008d20c
call fcn.140014040
cmp byte [rdi + 0x11], 0
je 0x14008d220
sub dword [rdi + 0x14], 1
jne 0x14008d220
mov rcx, rdi
call fcn.14001ca50
cmp byte [rbx + 0x11], 0
je 0x14008d234
sub dword [rbx + 0x14], 1
jne 0x14008d234
mov rcx, rbx
call fcn.14001ca50
test r14d, r14d
jne 0x14008d2fb
cmp byte [rdi + 0x11], r14b
je 0x14008d254
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], r14b
jne 0x14008d254
mov rcx, rdi
call fcn.14001ca80
xor edx, edx
mov rcx, rdi
call fcn.140020a20
mov r14d, eax
test eax, eax
jne 0x14008d272
xor edx, edx
mov rcx, rdi
call fcn.140020c60
mov r14d, eax
cmp byte [rdi + 0x11], 0
je 0x14008d286
sub dword [rdi + 0x14], 1
jne 0x14008d286
mov rcx, rdi
call fcn.14001ca50
test r14d, r14d
jne 0x14008d2fb
cmp byte [rdi + 0x11], r14b
je 0x14008d2a2
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], r14b
jne 0x14008d2a2
mov rcx, rdi
call fcn.14001ca80
mov rax, qword [rdi + 8]
xor esi, esi
cmp byte [rax + 0x21], sil
je 0x14008d2b8
cmp byte [rax + 0x22], sil
setne sil
inc esi
cmp byte [rdi + 0x11], 0
je 0x14008d2cc
sub dword [rdi + 0x14], 1
jne 0x14008d2cc
mov rcx, rdi
call fcn.14001ca50
mov edx, esi
mov rcx, rbx
call fcn.14001f640
mov rax, qword [rdi + 8]
mov r9d, 1
mov r8d, dword [rsp + 0x24]
mov rcx, rbx
mov edx, dword [rax + 0x30]
call fcn.14001f4d0
mov r14d, eax
jmp 0x14008d2fb
mov r14d, 7
mov eax, dword [rsp + 0x28]
mov r12, qword [rsp + 0xa8]
mov dword [rbp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbp + 0x68], eax
mov eax, dword [rsp + 0x30]
mov dword [rbp + 0x6c], eax
movzx eax, byte [rsp + 0x21]
mov byte [rbp + 0x5c], al
mov byte [rbp + 0xa8], 0
cmp byte [rbx + 0x11], 0
mov r15, qword [rbx + 8]
je 0x14008d342
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x14008d342
mov rcx, rbx
call fcn.14001ca80
test byte [r15 + 0x26], 2
jne 0x14008d373
mov edi, dword [r15 + 0x30]
lea rdx, [r15 + 0x30]
sub edi, dword [r15 + 0x34]
mov rcx, qword [r15]
mov r8d, edi
call fcn.140015cc0
mov ecx, dword [r15 + 0x30]
movzx eax, di
sub ecx, eax
or word [r15 + 0x26], 2
mov dword [r15 + 0x34], ecx
cmp byte [rbx + 0x11], 0
je 0x14008d387
sub dword [rbx + 0x14], 1
jne 0x14008d387
mov rcx, rbx
call fcn.14001ca50
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xf8]
mov byte [rbp + 0x53], 1
test r13, r13
je 0x14008d3b9
mov rcx, qword [r13 + 8]
call fcn.14001efb0
mov qword [r13 + 8], 0
mov qword [r13 + 0x18], 0
mov rcx, rbp
call fcn.140054620
mov eax, r14d
mov r14, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400d1190
add rsp, 0xb8
pop r15
pop r13
pop rbp
pop rbx
ret