Function at 0x431de0
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 ebx, ebx
test al, al
jne 0x431e20
mov eax, dword [esp + 0x20]
push ebx
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.00417f40
add esp, 0xc
mov ebp, 1
jmp 0x431fed
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 4]
mov eax, str.ATTACH__AS_vacuum_db_
mov esi, edi
mov dword [esp + 0x24], edx
call fcn.00431c90
mov ebp, eax
test ebp, ebp
jne 0x431fed
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x24]
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*8 - 0x14]
lea eax, [ecx + eax*8]
lea edx, [eax - 0x18]
push esi
mov dword [esp + 0x14], edx
call fcn.0041e950
add esp, 4
push eax
push esi
call fcn.0041e940
add esp, 4
push eax
push ebx
call fcn.0041e8b0
mov al, byte [edi + 0x1e]
add esp, 0xc
test al, al
je 0x431e89
mov ebp, 7
jmp 0x431fe9
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov esi, edi
call fcn.00431c90
mov ebp, eax
test ebp, ebp
jne 0x431fe9
mov al, byte [edi + 0x1f]
test al, al
jl 0x431eab
movsx eax, al
jmp 0x431eb8
mov eax, dword [esp + 0x24]
push eax
call fcn.0041ea10
add esp, 4
push eax
push ebx
call fcn.0041e9b0
add esp, 8
mov eax, str.BEGIN_EXCLUSIVE_
mov esi, edi
call fcn.00431c90
mov ebp, eax
test ebp, ebp
jne 0x431fe9
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.00431ce0
mov ebp, eax
test ebp, ebp
jne 0x431fe9
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.00431ce0
mov ebp, eax
test ebp, ebp
jne 0x431fe9
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.00431ce0
mov ebp, eax
test ebp, ebp
jne 0x431fe9
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.00431ce0
mov ebp, eax
test ebp, ebp
jne 0x431fe9
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.00431ce0
mov ebp, eax
test ebp, ebp
jne 0x431fe9
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.00431ce0
mov ebp, eax
test ebp, ebp
jne 0x431fe9
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.00431c90
mov ebp, eax
test ebp, ebp
jne 0x431fe9
xor esi, esi
jmp 0x431f70
movzx edx, byte [esi + 0x45ffb0]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.00422380
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x431fe9
movzx ecx, byte [esi + 0x45ffb1]
add ecx, dword [esp + 0x14]
movzx edx, byte [esi + 0x45ffb0]
push ecx
push edx
push ebx
call fcn.004224a0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x431fe9
add esi, 2
cmp esi, 8
jb 0x431f70
mov esi, dword [esp + 0x24]
push ebx
push esi
call fcn.00424cc0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x431fe9
push ebx
call fcn.00423500
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x431fe9
push esi
call fcn.00423500
add esp, 4
mov ebp, eax
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp ebx, esi
mov dword [edi + 0xc], eax
mov byte [edi + 0x1c], 1
je 0x432010
mov ecx, dword [ebx + 4]
push ecx
call fcn.00424d00
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx + 0x14], esi
push esi
push edi
call fcn.00426220
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret