Function at 0x1007e220
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, edx
push edi
cmp byte [esi + 0x47], 0
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], 0
jne 0x1007e254
push str.cannot_VACUUM_from_within_a_transaction
call fcn.100ec4c0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xa0], 1
jle 0x1007e276
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.100ec4c0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [esi + 0x18]
mov eax, dword [esi + 0x1c]
or dword [esi + 0x18], 6
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0x5c]
and eax, 0xffffaf7f
or eax, 0x201
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x60]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x38], edx
mov dl, byte [esi + 0x50]
mov byte [esi + 0x50], 0
shl ebx, 4
mov byte [ebp - 1], dl
mov edx, dword [ebx + eax]
mov dword [ebp + 8], ebx
mov ebx, dword [ebx + eax + 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebx + 4]
mov edx, ecx
mov eax, dword [eax]
push str.ATTACHAS_vacuum_db
movzx eax, byte [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x14]
mov ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
call fcn.1007e6e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1007e538
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0xc], edi
call fcn.100d39c0
mov ecx, ebx
call fcn.100d4d20
cmp dword [esi + 0x54], 0
mov dword [ebp - 0x14], eax
je 0x1007e338
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.10036f20
add esp, 8
cmp dword [ebp - 0x24], 0
je 0x1007e338
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov ecx, edi
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.100d4f50
xor edx, edx
mov ecx, ebx
call fcn.100d4f00
mov edx, eax
mov ecx, edi
call fcn.100d4f00
mov edx, 0x21
mov ecx, edi
call fcn.100d4e70
mov edx, dword [ebp - 8]
push str.BEGIN
mov ecx, esi
call fcn.1007e6e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1007e538
lea edx, [eax + 2]
mov ecx, ebx
call fcn.100d4550
mov edi, eax
test edi, edi
jne 0x1007e538
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x1007e3a8
mov dword [esi + 0x54], edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
push 0
push dword [ebp - 0x14]
mov ecx, edi
call fcn.100d4d90
add esp, 8
test eax, eax
jne 0x1007e52e
cmp dword [ebp - 0x28], eax
jne 0x1007e3e6
mov edx, dword [esi + 0x54]
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.100d4d90
add esp, 8
test eax, eax
jne 0x1007e52e
cmp byte [esi + 0x49], 0
jne 0x1007e52e
mov al, byte [esi + 0x4c]
test al, al
js 0x1007e3fc
movsx eax, al
jmp 0x1007e403
mov ecx, ebx
call fcn.100d4bb0
mov edx, eax
mov ecx, edi
call fcn.100d4bf0
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 8]
mov byte [esi + 0x9c], al
push esi
call fcn.1007e650
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007e538
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp - 8]
push esi
call fcn.1007e650
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007e538
push dword [ebp - 0x10]
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 dword [ebp - 8]
push esi
call fcn.1007e650
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007e538
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 8]
push esi
call fcn.1007e650
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007e538
xor ebx, ebx
lea esp, [esp]
movzx edx, byte [ebx + 0x10105b4c]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.100cdec0
movzx eax, byte [ebx + 0x10105b4d]
add eax, dword [ebp - 0x28]
movzx edx, byte [ebx + 0x10105b4c]
mov ecx, dword [ebp - 0xc]
add esp, 4
push eax
call fcn.100cddf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1007e535
add ebx, 2
cmp ebx, 0xa
jl 0x1007e4a0
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.100cb6f0
mov edi, eax
test edi, edi
jne 0x1007e538
mov ecx, dword [ebp - 0xc]
call fcn.100d39c0
mov edi, eax
test edi, edi
jne 0x1007e538
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.100d4bb0
mov edx, eax
mov ecx, ebx
call fcn.100d4bf0
mov eax, dword [edi + 4]
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov ecx, ebx
call fcn.100d4d90
add esp, 8
mov edi, eax
jmp 0x1007e538
mov edi, 7
jmp 0x1007e538
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
movzx eax, ax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x60], eax
mov al, byte [ebp - 1]
push 1
push 0xffffffffffffffff
or edx, 0xffffffff
mov ecx, ebx
mov byte [esi + 0x9c], 0
mov byte [esi + 0x50], al
call fcn.100d4d90
mov ebx, dword [ebp - 0x20]
add esp, 8
mov byte [esi + 0x47], 1
test ebx, ebx
je 0x1007e592
mov ecx, dword [ebx + 4]
call fcn.100d4fe0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.100a5fc0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret