Function at 0x445e66
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, edx
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x44]
mov dword [ebp - 0x18], eax
or eax, 0x2800
cmp byte [edi + 0x1c], 0
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x48]
mov dword [ebp - 0x20], edx
mov dword [edi + 0xc], eax
jne 0x445ead
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ecx
call fcn.0041a3f7
xor esi, esi
add esp, 0xc
inc esi
jmp 0x446097
mov eax, dword [edi + 8]
mov edx, str.ATTACH__AS_vacuum_db_
mov ecx, edi
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
call fcn.00445da1
mov esi, eax
test esi, esi
jne 0x446097
imul ecx, dword [edi + 4], 0x18
mov eax, dword [edi + 8]
lea edx, [eax - 0x18]
add edx, ecx
mov dword [ebp - 8], edx
mov esi, dword [ecx + eax - 0x14]
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00422415
push eax
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0042240d
mov edx, eax
mov ecx, esi
call fcn.0042238b
pop ecx
test eax, eax
jne 0x446094
push dword [ebp - 0x10]
mov edx, dword [edi + 0x24]
mov ecx, esi
call fcn.0042238b
pop ecx
test eax, eax
jne 0x446094
cmp byte [edi + 0x1e], al
jne 0x446094
mov edx, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, edi
call fcn.00445da1
mov esi, eax
test esi, esi
jne 0x446097
mov al, byte [edi + 0x21]
test al, al
js 0x445f47
movsx eax, al
jmp 0x445f4e
mov ecx, ebx
call fcn.004224a0
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0042245e
mov edx, str.BEGIN_EXCLUSIVE_
mov ecx, edi
call fcn.00445da1
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov ecx, edi
call fcn.00445de9
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov ecx, edi
call fcn.00445de9
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov ecx, edi
call fcn.00445de9
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
mov ecx, edi
call fcn.00445de9
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov ecx, edi
call fcn.00445de9
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov ecx, edi
call fcn.00445de9
mov esi, eax
test esi, esi
jne 0x446097
mov edx, str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov ecx, edi
call fcn.00445da1
mov esi, eax
test esi, esi
jne 0x446097
xor ebx, ebx
movzx edx, byte [ebx + 0x62f894]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004268c3
mov esi, eax
pop ecx
test esi, esi
jne 0x446097
movzx eax, byte [ebx + 0x62f895]
add eax, dword [ebp - 0x14]
movzx edx, byte [ebx + 0x62f894]
mov ecx, dword [ebp - 4]
push eax
call fcn.00426949
mov esi, eax
pop ecx
test esi, esi
jne 0x446097
add ebx, 2
cmp ebx, 8
jb 0x44600a
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [ebp - 4]
call fcn.004278e3
mov esi, eax
test esi, esi
jne 0x446097
mov ecx, dword [ebp - 4]
call fcn.00422ee0
mov esi, eax
test esi, esi
jne 0x446097
mov ecx, ebx
call fcn.00422ee0
mov esi, eax
test esi, esi
jne 0x446097
push dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.0042240d
mov edx, eax
mov ecx, ebx
call fcn.0042238b
pop ecx
mov esi, eax
jmp 0x446097
push 7
pop esi
mov eax, dword [ebp - 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 8]
mov byte [edi + 0x1c], 1
test eax, eax
je 0x4460c7
mov ecx, dword [eax + 4]
call fcn.00422277
mov eax, dword [ebp - 8]
and dword [eax + 4], 0
and dword [eax + 0x14], 0
xor edx, edx
mov ecx, edi
call fcn.004352a0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret