Function at 0x60d440
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
or eax, 0x2800
mov dword [edi + 0xc], eax
mov al, byte [edi + 0x1c]
xor esi, esi
test al, al
mov dword [esp + 0x10], esi
jne 0x60d484
mov eax, dword [esp + 0x20]
push esi
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.005f2110
add esp, 0xc
mov ebp, 1
jmp 0x60d63f
mov ecx, dword [edi + 8]
mov ebx, dword [ecx + 4]
mov eax, str.ATTACH__AS_vacuum_db_
mov esi, edi
call fcn.0060d2f0
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov eax, dword [edi + 4]
lea edx, [eax + eax*2]
mov eax, dword [edi + 8]
mov esi, dword [eax + edx*8 - 0x14]
lea eax, [eax + edx*8]
lea ecx, [eax - 0x18]
push ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], esi
call fcn.005e3a20
add esp, 4
push eax
push ebx
call fcn.005e3a10
add esp, 4
push eax
push esi
call fcn.005e3980
mov al, byte [edi + 0x1e]
add esp, 0xc
test al, al
je 0x60d4e9
mov ebp, 7
jmp 0x60d63b
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov esi, edi
call fcn.0060d2f0
mov ebp, eax
test ebp, ebp
jne 0x60d63b
push ebx
call fcn.005e3ae0
mov edx, dword [esp + 0x28]
push eax
push edx
call fcn.005e3a80
add esp, 0xc
mov eax, str.BEGIN_EXCLUSIVE_
call fcn.0060d2f0
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.0060d340
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0060d340
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0060d340
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov ecx, 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
call fcn.0060d340
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0060d340
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.0060d340
mov ebp, eax
test ebp, ebp
jne 0x60d63b
mov eax, 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_
call fcn.0060d2f0
mov ebp, eax
test ebp, ebp
jne 0x60d63b
xor esi, esi
jmp 0x60d5c0
movzx ecx, byte [esi + 0x7112fc]
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
call fcn.005e74b0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x60d63b
movzx edx, byte [esi + 0x7112fd]
mov ecx, dword [esp + 0x14]
movzx eax, byte [esi + 0x7112fc]
add edx, ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.005e75c0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x60d63b
add esi, 2
cmp esi, 8
jb 0x60d5c0
mov esi, dword [esp + 0x24]
push esi
push ebx
call fcn.005e9d90
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x60d63b
push esi
call fcn.005e86e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x60d63b
push ebx
call fcn.005e86e0
add esp, 4
mov ebp, eax
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebx
mov dword [edi + 0xc], edx
mov byte [edi + 0x1c], 1
je 0x60d662
mov eax, dword [esi + 4]
push eax
call fcn.005e9dd0
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
push ebx
push edi
call fcn.005eb3d0
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret