Function at 0x100aa9d0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], 0
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x55], 0
jne 0x100aaa3f
push 0
push 0x28
mov ecx, edi
call fcn.1001e920
mov esi, eax
add esp, 8
test esi, esi
je 0x100aaa23
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1015ced4]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x1015cee4]
movq qword [esi + 0x20], xmm0
mov edx, dword [ebx]
test edx, edx
je 0x100aaa30
mov ecx, edi
call fcn.1001e480
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp dword [edi + 0xbc], 1
jle 0x100aaa92
push 0
push 0x2b
mov ecx, edi
call fcn.1001e920
mov esi, eax
add esp, 8
test esi, esi
je 0x100aaa23
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1015cefc]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x1015cf0c]
movq qword [esi + 0x20], xmm0
mov ax, word [0x1015cf14]
mov word [esi + 0x28], ax
mov al, byte [0x1015cf16]
mov byte [esi + 0x2a], al
jmp 0x100aaa23
mov ebp, dword [esp + 0x64]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
test ebp, ebp
je 0x100aab3c
movzx ecx, word [ebp + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x10155738], 3
je 0x100aaae9
push 0
push 0x12
mov ecx, edi
call fcn.1001e920
mov esi, eax
add esp, 8
test esi, esi
je 0x100aaa23
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x1015cf28]
mov word [esi + 0x10], cx
jmp 0x100aaa23
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100aab0e
cmp byte [ebp + 0x12], 1
jne 0x100aab0e
mov ecx, dword [edi + 0x3c]
mov edx, dword [ebp + 8]
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x100aab41
test cl, 1
je 0x100aab23
mov ecx, dword [edi + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x100aab41
mov dl, 1
mov ecx, ebp
call fcn.100433c0
mov ecx, dword [edi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x100aab41
mov edx, 0x10156643
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x68]
mov ebp, dword [edi + 0x24]
mov bl, byte [edi + 0x5e]
mov dword [esp + 0x40], ecx
and ecx, 0xefffafff
or ecx, 0x201
mov dword [esp + 0x3c], eax
mov dword [edi + 0x20], ecx
or eax, 6
mov ecx, dword [esp + 0x60]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x48], esi
mov esi, dword [edi + 0x6c]
shl ecx, 4
mov dword [esp + 0x4c], esi
mov esi, dword [edi + 0x70]
mov dword [esp + 0x44], ebp
and ebp, 0xfffffffe
mov dword [edi + 0x24], ebp
mov byte [edi + 0x5e], 0
mov ebp, dword [ecx + eax]
mov dword [esp + 0x50], esi
mov esi, dword [edi + 0x74]
mov dword [esp + 0x54], esi
mov esi, dword [ecx + eax + 4]
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x60], ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], ebp
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x100aabce
cmp byte [eax + 0x10], 0
mov dword [esp + 0x24], 0
je 0x100aabd6
mov dword [esp + 0x24], 1
mov eax, dword [edi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push edi
mov dword [esp + 0x38], eax
call fcn.100aa730
mov ebp, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [edi + 0x3c], eax
test ebp, ebp
jne 0x100ab0eb
mov eax, dword [esp + 0x28]
shl eax, 4
add eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
mov ebx, dword [eax + 4]
lea eax, [ebx + 4]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x64], ebp
je 0x100aacd9
mov eax, dword [eax]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100aacbf
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100aac5a
cmp dword [esp + 0x34], eax
jl 0x100aacbf
jg 0x100aac5a
cmp dword [esp + 0x30], eax
jbe 0x100aacbf
push 0
push 0x1b
mov ecx, edi
mov ebp, 1
call fcn.1001e920
mov edx, eax
add esp, 8
mov dword [esp + 0x28], edx
test edx, edx
je 0x100aaca1
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x1015cf54]
movq qword [edx + 0x10], xmm0
mov cx, word [0x1015cf5c]
mov word [edx + 0x18], cx
mov al, byte [0x1015cf5e]
mov byte [edx + 0x1a], al
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x100aacb8
mov edx, eax
mov ecx, edi
call fcn.1001e480
mov edx, dword [esp + 0x28]
mov dword [ebx], edx
jmp 0x100ab0eb
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x60]
or dword [edi + 0x18], 8
movzx ebp, byte [ecx + eax + 8]
mov eax, dword [edi + 0x20]
and eax, 0x38
or ebp, eax
jmp 0x100aace2
mov dword [esp + 0x18], eax
mov ebp, 1
cmp byte [esi + 9], 0
je 0x100aacf8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100aacf8
mov ecx, esi
call fcn.100341d0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x28]
cmp byte [esi + 9], 0
movzx edx, byte [eax + 0x16]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ecx
je 0x100aad28
add dword [esi + 0xc], 0xffffffff
jne 0x100aad28
mov ecx, esi
call fcn.100341b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 0x10]
cmp edx, ecx
cmovg ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + eax + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.10036ca0
xor edx, edx
mov ecx, esi
call fcn.10036d40
mov edx, eax
mov ecx, ebx
call fcn.10036d40
cmp byte [ebx + 9], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
je 0x100aad7c
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100aad7c
mov ecx, ebx
call fcn.100341d0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
or ebp, 0x20
mov edx, ebp
call fcn.1002db90
cmp byte [ebx + 9], 0
je 0x100aad9b
add dword [ebx + 0xc], 0xffffffff
jne 0x100aad9b
mov ecx, ebx
call fcn.100341b0
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.BEGIN
call fcn.100aa550
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100ab0eb
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x64], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100373b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100ab0eb
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x100aadef
cmp dword [esp + 0x64], ebp
jne 0x100aadef
mov dword [edi + 0x64], ebp
mov eax, dword [esi + 4]
mov ecx, ebx
mov ebp, dword [esp + 0x20]
push 0
push ebp
mov edx, dword [eax + 0x24]
call fcn.10036e30
add esp, 8
test eax, eax
jne 0x100ab0e6
cmp dword [esp + 0x24], eax
jne 0x100aae2b
mov edx, dword [edi + 0x64]
mov ecx, ebx
push eax
push ebp
call fcn.10036e30
add esp, 8
test eax, eax
jne 0x100ab0e6
cmp byte [edi + 0x57], 0
jne 0x100ab0e6
mov al, byte [edi + 0x5a]
test al, al
js 0x100aae41
movsx ebp, al
jmp 0x100aae88
mov cl, byte [esi + 9]
test cl, cl
je 0x100aae5b
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100aae5b
mov ecx, esi
call fcn.100341d0
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x100aae68
xor ebp, ebp
jmp 0x100aae77
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x100aae88
add dword [esi + 0xc], 0xffffffff
jne 0x100aae88
mov ecx, esi
call fcn.100341b0
mov edx, ebp
mov ecx, ebx
call fcn.10036f70
push dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [edi + 0xb0], al
push edi
call fcn.100aa730
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100ab0eb
push dword [esp + 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push edi
call fcn.100aa730
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100ab0eb
push dword [esp + 0x1c]
mov byte [edi + 0xb0], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
push edi
call fcn.100aa730
and dword [edi + 0x18], 0xfffffffb
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100ab0eb
push dword [esp + 0x1c]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push edi
call fcn.100aa730
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100ab0eb
mov dword [esp + 0x20], eax
nop dword [eax]
mov cl, byte [esi + 9]
movzx ebp, byte [eax + 0x1014de08]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
test cl, cl
je 0x100aaf5c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100aaf5c
mov ecx, esi
call fcn.100341d0
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x30]
cmp ebp, 0xf
jne 0x100aaf6b
mov eax, dword [eax]
mov ebp, dword [eax + 0x6c]
add ebp, dword [esi + 0x14]
jmp 0x100aaf77
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebp, dword [eax + ebp*4 + 0x24]
bswap ebp
test cl, cl
je 0x100aaf88
add dword [esi + 0xc], 0xffffffff
jne 0x100aaf88
mov ecx, esi
call fcn.100341b0
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + 0x1014de09]
movzx edx, byte [ecx + 0x1014de08]
add eax, ebp
push eax
mov ecx, ebx
call fcn.1003fa70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100ab0eb
mov eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x20], eax
cmp eax, 0xa
jl 0x100aaf30
cmp dword [esp + 0x64], ebp
jne 0x100aafde
mov edx, ebx
mov ecx, esi
call fcn.10041d30
mov ebp, eax
test ebp, ebp
jne 0x100ab0eb
cmp byte [ebx + 9], 0
je 0x100aaff4
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100aaff4
mov ecx, ebx
call fcn.100341d0
xor edx, edx
mov ecx, ebx
call fcn.10038200
mov ebp, eax
test ebp, ebp
jne 0x100ab00e
xor edx, edx
mov ecx, ebx
call fcn.100383f0
mov ebp, eax
cmp byte [ebx + 9], 0
je 0x100ab021
add dword [ebx + 0xc], 0xffffffff
jne 0x100ab021
mov ecx, ebx
call fcn.100341b0
test ebp, ebp
jne 0x100ab0eb
cmp dword [esp + 0x64], ebp
jne 0x100ab0eb
mov cl, byte [ebx + 9]
test cl, cl
je 0x100ab04d
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100ab04d
mov ecx, ebx
call fcn.100341d0
mov cl, byte [ebx + 9]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
cmp byte [edx + 0x11], 0
jne 0x100ab05d
xor ebp, ebp
jmp 0x100ab06c
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x100ab07d
add dword [ebx + 0xc], 0xffffffff
jne 0x100ab07d
mov ecx, ebx
call fcn.100341b0
mov edx, ebp
mov ecx, esi
call fcn.10036f70
cmp byte [ebx + 9], 0
je 0x100ab09c
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100ab09c
mov ecx, ebx
call fcn.100341d0
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ebp, dword [eax + 0x24]
movzx ecx, byte [eax + 0x16]
sub ebp, dword [eax + 0x28]
cmp byte [ebx + 9], 0
mov dword [esp + 0x30], ecx
je 0x100ab0c7
add dword [ebx + 0xc], 0xffffffff
jne 0x100ab0c7
mov ecx, ebx
call fcn.100341b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp ecx, ebp
push 1
cmovg ebp, ecx
mov ecx, esi
push ebp
mov eax, dword [eax]
mov edx, dword [eax + 0x24]
call fcn.10036e30
add esp, 8
mov ebp, eax
jmp 0x100ab0eb
mov ebp, 7
mov eax, dword [esp + 0x3c]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x40]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x74], eax
mov al, byte [esp + 0x13]
push 1
push 0
mov byte [edi + 0xb0], 0
mov byte [edi + 0x5e], al
call fcn.10036e30
mov ebx, dword [esp + 0x34]
add esp, 8
mov byte [edi + 0x55], 1
test ebx, ebx
je 0x100ab15d
mov ecx, dword [ebx + 4]
call fcn.10036aa0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.1006f8f0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x4c
ret