Function at 0x663330
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
cmp byte [esi + 0x47], bl
jne 0x66335d
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [esp + 0x3c]
call fcn.00666630
add esp, 0xc
mov eax, 1
pop esi
pop ebx
add esp, 0x28
ret
cmp dword [esi + 0xa0], 1
jle 0x66336d
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x663345
mov eax, dword [esi + 0x1c]
movzx ecx, word [esi + 0x18]
mov edx, dword [esp + 0x3c]
or dword [esi + 0x18], 6
mov dword [esp + 0x24], eax
and eax, 0xffffaf7f
or eax, 0x201
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x60]
shl edx, 4
push ebp
mov dword [esp + 0x30], ecx
mov cl, byte [esi + 0x50]
mov byte [esi + 0x50], bl
mov ebp, dword [edx + eax + 4]
mov byte [esp + 0x3c], cl
mov ecx, dword [edx + eax]
push edi
mov eax, dword [ebp + 4]
push str.ATTACHAS_vacuum_db
push dword [esp + 0x40]
mov dword [esp + 0x4c], edx
mov eax, dword [eax]
push esi
mov dword [esp + 0x20], ecx
movzx eax, byte [eax + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
call fcn.006164a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x663603
mov eax, dword [esp + 0x18]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov ebx, dword [eax + 4]
push ebx
mov dword [esp + 0x20], ebx
call fcn.00641ef0
push ebp
call fcn.00642a20
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov ecx, dword [edx + ecx + 0xc]
push dword [ecx + 0x50]
push ebx
call fcn.00644780
push edi
push ebp
call fcn.00644980
push eax
push ebx
call fcn.00644980
push 0x21
push ebx
call fcn.00644930
push str.BEGIN
push dword [esp + 0x68]
push esi
call fcn.006164a0
mov edi, eax
add esp, 0x34
test edi, edi
jne 0x6635ff
push 2
push ebp
call fcn.00641960
mov edi, eax
add esp, 8
test edi, edi
jne 0x6635ff
mov eax, dword [ebp + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x66347e
mov dword [esi + 0x54], edi
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x20]
push 0
push edi
push dword [eax + 0x20]
push ebx
call fcn.00644870
add esp, 0x10
test eax, eax
jne 0x6635fa
cmp dword [esp + 0x24], eax
jne 0x6634b8
push eax
push edi
push dword [esi + 0x54]
push ebx
call fcn.00644870
add esp, 0x10
test eax, eax
jne 0x6635fa
cmp byte [esi + 0x49], 0
jne 0x6635fa
mov al, byte [esi + 0x4c]
test al, al
js 0x6634ce
movsx eax, al
jmp 0x6634d7
push ebp
call fcn.00642940
add esp, 4
push eax
push ebx
call fcn.00644710
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push esi
mov byte [esi + 0x9c], al
call fcn.00616560
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x6635ff
push dword [esp + 0x14]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push ebx
push esi
call fcn.00616560
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x6635ff
push dword [esp + 0x14]
mov byte [esi + 0x9c], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push esi
call fcn.00616560
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x6635ff
push dword [esp + 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.00616560
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x6635ff
xor ebx, ebx
lea esp, [esp]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebx + 0x6bf050]
push eax
push ebp
call fcn.006429c0
movzx eax, byte [ebx + 0x6bf051]
add eax, dword [esp + 0x30]
push eax
movzx eax, byte [ebx + 0x6bf050]
push eax
push dword [esp + 0x30]
call fcn.00644b90
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x6635ff
add ebx, 2
cmp ebx, 0xa
jl 0x663570
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.006420a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x6635ff
push ebx
call fcn.00641ef0
mov edi, eax
add esp, 4
test edi, edi
jne 0x6635ff
push ebx
call fcn.00642940
push eax
push ebp
call fcn.00644710
mov eax, dword [ebx + 4]
push 1
push dword [esp + 0x30]
push dword [eax + 0x20]
push ebp
call fcn.00644870
add esp, 0x1c
mov edi, eax
jmp 0x6635ff
mov edi, 7
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
movzx eax, ax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x30]
push 1
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
mov dword [esi + 0x60], eax
mov al, byte [esp + 0x48]
push 0xffffffffffffffff
push ebp
mov byte [esi + 0x9c], 0
mov byte [esi + 0x50], al
call fcn.00644870
add esp, 0x10
mov byte [esi + 0x47], 1
test ebx, ebx
je 0x663660
push dword [ebx + 4]
call fcn.00641d20
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push esi
call fcn.006622c0
add esp, 4
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret