Function at 0x452a70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x10], ecx
cmp byte [edi + 0x1c], cl
jne 0x452aa1
mov esi, dword [ebp + 8]
push str.cannot_VACUUM_from_within_a_transaction
call fcn.00406cf0
mov eax, 1
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
cmp byte [edi + 0x1d], 2
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x40]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0x94]
mov dword [edi + 0x94], ecx
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ecx]
mov ecx, dword [edi + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xd]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x452afa
mov eax, str.ATTACH__AS_vacuum_db_
mov ebx, dword [ebp + 8]
call fcn.00452780
mov esi, eax
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0xc]
jle 0x452b1b
mov ecx, dword [edi + 8]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [ebp - 0x10], edx
test esi, esi
jne 0x452d28
mov ecx, dword [edi + 8]
shl eax, 4
mov ebx, dword [eax + ecx - 0xc]
mov eax, ebx
mov dword [ebp - 8], ebx
call fcn.00416dd0
mov esi, dword [ebp - 4]
mov eax, esi
call fcn.00415a90
mov edx, dword [esi + 4]
mov ecx, dword [edx]
cmp byte [ecx + 5], 5
mov dword [ebp - 0xc], eax
jne 0x452b56
mov dword [edi + 0x24], 0
mov edx, dword [esi + 4]
movzx ecx, word [edx + 0x16]
push 0
push eax
push ecx
call fcn.004159c0
add esp, 0xc
test eax, eax
jne 0x452d23
cmp dword [ebp - 0x14], eax
jne 0x452b8f
mov ecx, dword [edi + 0x24]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call fcn.004159c0
add esp, 0xc
test eax, eax
jne 0x452d23
cmp byte [edi + 0x1e], 0
jne 0x452d23
mov ebx, dword [ebp + 8]
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
call fcn.00452780
mov esi, eax
test esi, esi
jne 0x452d28
mov al, byte [edi + 0x20]
test al, al
jl 0x452bbc
movsx eax, al
jmp 0x452bc4
mov eax, dword [ebp - 4]
call fcn.00415c10
push eax
mov eax, dword [ebp - 8]
call fcn.00415b90
add esp, 4
mov eax, str.BEGIN_EXCLUSIVE_
call fcn.00452780
mov esi, eax
test esi, esi
jne 0x452d28
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_rootpage_0
call fcn.004527f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x452d28
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.004527f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x452d28
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.004527f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x452d28
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_rootpage_0
call fcn.004527f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x452d28
push ebx
push edi
mov eax, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.004527f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x452d28
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.004527f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x452d28
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_
call fcn.00452780
mov esi, eax
test esi, esi
jne 0x452d28
xor ebx, ebx
movzx eax, byte [ebx + 0x527978]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041b2a0
movzx ecx, byte [ebx + 0x527979]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ebx + 0x527978]
mov eax, dword [ebp - 8]
push ecx
push edx
call fcn.0041b310
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x452d28
add ebx, 2
cmp ebx, 8
jl 0x452c90
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push eax
call fcn.0041d7a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x452d28
mov eax, ebx
call fcn.00416dd0
mov esi, eax
test esi, esi
jne 0x452d28
mov eax, ebx
call fcn.00415c10
mov esi, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00415b90
mov ecx, dword [ebx + 4]
movzx eax, word [ecx + 0x16]
mov edx, dword [ebp - 0xc]
add esp, 4
push 1
push edx
push eax
mov ebx, esi
call fcn.004159c0
add esp, 0xc
mov esi, eax
jmp 0x452d28
mov esi, 7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
push 1
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], edx
mov dword [edi + 0x94], eax
call fcn.004159c0
mov ebx, dword [ebp - 0x10]
add esp, 0xc
mov byte [edi + 0x1c], 1
test ebx, ebx
je 0x452d6f
mov eax, dword [ebx + 4]
call fcn.00415790
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
push 0
mov eax, edi
call fcn.00434ad0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret