Function at 0x43ab40
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
or eax, 0x2800
mov dword [edi + 0xc], eax
mov al, byte [edi + 0x1c]
xor ebx, ebx
test al, al
jne 0x43ab80
mov eax, dword [esp + 0x24]
push ebx
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.00420730
add esp, 0xc
mov ebp, 1
jmp 0x43ad98
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 4]
mov eax, str.ATTACH__AS_vacuum_db_
mov esi, edi
mov dword [esp + 0x28], edx
call fcn.0043a9f0
mov ebp, eax
test ebp, ebp
jne 0x43ad98
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x28]
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*8 - 0x14]
lea eax, [ecx + eax*8]
lea edx, [eax - 0x18]
push ebp
mov dword [esp + 0x14], edx
call fcn.004267b0
mov esi, eax
add esp, 4
push esi
push ebp
mov dword [esp + 0x20], esi
call fcn.004267a0
add esp, 4
push eax
push ebx
call fcn.00426700
add esp, 0xc
test eax, eax
jne 0x43ad8f
mov eax, dword [edi + 0x24]
push esi
push eax
push ebx
call fcn.00426700
add esp, 0xc
test eax, eax
jne 0x43ad8f
mov al, byte [edi + 0x1e]
test al, al
jne 0x43ad8f
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov esi, edi
call fcn.0043a9f0
mov ebp, eax
test ebp, ebp
jne 0x43ad94
mov al, byte [edi + 0x21]
test al, al
jl 0x43ac29
movsx eax, al
jmp 0x43ac36
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00426870
add esp, 4
push eax
push ebx
call fcn.00426810
add esp, 8
mov eax, str.BEGIN_EXCLUSIVE_
mov esi, edi
call fcn.0043a9f0
mov ebp, eax
test ebp, ebp
jne 0x43ad94
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.0043aa40
mov ebp, eax
test ebp, ebp
jne 0x43ad94
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0043aa40
mov ebp, eax
test ebp, ebp
jne 0x43ad94
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0043aa40
mov ebp, eax
test ebp, ebp
jne 0x43ad94
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.0043aa40
mov ebp, eax
test ebp, ebp
jne 0x43ad94
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0043aa40
mov ebp, eax
test ebp, ebp
jne 0x43ad94
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.0043aa40
mov ebp, eax
test ebp, ebp
jne 0x43ad94
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.0043a9f0
mov ebp, eax
test ebp, ebp
jne 0x43ad94
xor esi, esi
jmp 0x43acf0
movzx eax, byte [esi + 0x45ccb4]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
call fcn.00428d30
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x43ad94
movzx edx, byte [esi + 0x45ccb5]
mov ecx, dword [esp + 0x14]
movzx eax, byte [esi + 0x45ccb4]
add edx, ecx
push edx
push eax
push ebx
call fcn.00428e50
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x43ad94
add esi, 2
cmp esi, 8
jb 0x43acf0
mov esi, dword [esp + 0x28]
push ebx
push esi
call fcn.0042d180
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x43ad94
push ebx
call fcn.00429e10
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x43ad94
push esi
call fcn.00429e10
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x43ad94
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call fcn.004267a0
add esp, 4
push eax
push esi
call fcn.00426700
add esp, 0xc
mov ebp, eax
jmp 0x43ad94
mov ebp, 7
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
xor esi, esi
cmp ebx, esi
mov dword [edi + 0xc], edx
mov byte [edi + 0x1c], 1
je 0x43adbb
mov eax, dword [ebx + 4]
push eax
call fcn.0042d1c0
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx + 0x14], esi
push esi
push edi
call fcn.0042e7d0
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret