Function at 0x459de0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0xc], ecx
cmp byte [edi + 0x3e], cl
jne 0x459e0d
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
call fcn.00437470
add esp, 4
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x8c], 1
jle 0x459e1d
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x459df8
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x50]
mov dword [ebp - 0x18], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [edi + 0x3f], 2
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x54]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0xa4]
mov dword [edi + 0xa4], ecx
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ecx]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xf]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x459e76
mov eax, str.ATTACH__AS_vacuum_db_
mov ecx, dword [ebp + 8]
push ebx
push esi
mov ebx, edi
call fcn.00459b80
mov esi, eax
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x459e9b
mov ecx, dword [edi + 0x10]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [ebp - 0xc], edx
test esi, esi
jne 0x45a0c4
mov ecx, dword [edi + 0x10]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
mov dword [ebp - 8], eax
call fcn.00453020
mov eax, dword [ebp - 4]
call fcn.00414a30
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
call fcn.00459b80
mov esi, eax
test esi, esi
jne 0x45a0c4
mov ecx, dword [ebp + 8]
mov eax, str.BEGIN_
call fcn.00459b80
mov esi, eax
test esi, esi
jne 0x45a0c4
mov ebx, dword [ebp - 4]
push 2
push ebx
call fcn.0044ec00
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a0c4
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x459f14
mov dword [edi + 0x48], esi
mov ecx, dword [ebx + 4]
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov eax, dword [ecx + 0x20]
push 0
push ebx
push esi
call fcn.0041e920
add esp, 0xc
test eax, eax
jne 0x45a0bf
cmp dword [ebp - 0x14], eax
jne 0x459f4f
push eax
mov eax, dword [edi + 0x48]
push ebx
push esi
call fcn.0041e920
add esp, 0xc
test eax, eax
jne 0x45a0bf
cmp byte [edi + 0x40], 0
jne 0x45a0bf
mov al, byte [edi + 0x42]
test al, al
jl 0x459f65
movsx eax, al
jmp 0x459f6d
mov eax, dword [ebp - 4]
call fcn.00414bb0
push eax
mov eax, esi
call fcn.00414b30
mov ebx, dword [ebp + 8]
push ebx
push edi
mov eax, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.00459c00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45a0c4
push ebx
push edi
mov eax, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.00459c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a0c4
push ebx
push edi
mov eax, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.00459c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a0c4
push ebx
push edi
mov eax, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.00459c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a0c4
push ebx
push edi
mov eax, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.00459c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a0c4
push ebx
push edi
mov eax, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.00459c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x45a0c4
mov ecx, ebx
mov eax, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov ebx, edi
call fcn.00459b80
mov esi, eax
test esi, esi
jne 0x45a0c4
xor ebx, ebx
jmp 0x45a030
movzx eax, byte [ebx + 0x4964f0]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.00414ef0
movzx ecx, byte [ebx + 0x4964f1]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ebx + 0x4964f0]
mov eax, dword [ebp - 8]
push ecx
push edx
call fcn.0044ba30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x45a0c4
add ebx, 2
cmp ebx, 0xa
jl 0x45a030
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push eax
mov esi, ebx
call fcn.00458ab0
mov esi, eax
add esp, 4
test esi, esi
jne 0x45a0c4
mov eax, ebx
call fcn.00453020
mov esi, eax
test esi, esi
jne 0x45a0c4
mov eax, ebx
call fcn.00414bb0
mov esi, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00414b30
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x20]
push 1
push edx
push esi
call fcn.0041e920
add esp, 0x10
mov esi, eax
jmp 0x45a0c4
mov esi, 7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x24]
push 1
mov dword [edi + 0x50], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 0xa4], eax
push 0xffffffffffffffff
push ecx
or eax, 0xffffffff
mov dword [edi + 0x54], edx
call fcn.0041e920
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov byte [edi + 0x3e], 1
test eax, eax
je 0x45a110
mov ebx, dword [eax + 4]
call fcn.004571e0
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov eax, edi
call fcn.004281f0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret