Function at 0x42b810
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebp
push edi
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov al, byte [edi + 0x1c]
test al, al
jne 0x42b840
mov eax, dword [esp + 0x28]
push str.cannot_VACUUM_from_within_a_transaction
push edi
push eax
call fcn.0041b110
add esp, 0xc
mov eax, 1
pop edi
pop ebp
add esp, 0x1c
ret
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x14], eax
mov edx, dword [edi + 0x48]
or ah, 0x28
push ebx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
push esi
mov dword [esp + 0x20], ecx
mov ebx, dword [eax + 4]
mov dword [esp + 0x24], edx
push ebx
call fcn.004168e0
push eax
call fcn.00427f30
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
sete cl
push str.ATTACH__AS_vacuum_db_
push edi
mov dword [esp + 0x24], ecx
call fcn.0042bd30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x42bad0
mov eax, dword [edi + 4]
push ebx
lea edx, [eax + eax*2]
mov eax, dword [edi + 8]
mov ebp, dword [eax + edx*8 - 0x14]
lea eax, [eax + edx*8]
mov dword [esp + 0x34], ebp
lea ecx, [eax - 0x18]
mov dword [esp + 0x38], ecx
call fcn.0042bbc0
mov esi, eax
mov eax, dword [edi + 0x24]
add esp, 4
mov dword [esp + 0x18], esi
test eax, eax
je 0x42b8e9
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push edi
call fcn.0040afa0
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x42b8e9
mov dword [edi + 0x24], 0
push esi
push ebx
call fcn.00416e60
add esp, 4
push eax
push ebp
call fcn.0042bb20
add esp, 0xc
test eax, eax
jne 0x42bac7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42b923
mov ecx, dword [edi + 0x24]
push esi
push ecx
push ebp
call fcn.0042bb20
add esp, 0xc
test eax, eax
jne 0x42bac7
mov al, byte [edi + 0x1e]
test al, al
jne 0x42bac7
push str.PRAGMA_vacuum_db.synchronousOFF
push edi
call fcn.0042bd30
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
mov al, byte [edi + 0x21]
test al, al
jl 0x42b952
movsx eax, al
jmp 0x42b95b
push ebx
call fcn.0042bc60
add esp, 4
push eax
push ebp
call fcn.0042bbf0
push str.BEGIN_EXCLUSIVE_
push edi
call fcn.0042bd30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x42bacc
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push edi
call fcn.0042bda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push edi
call fcn.0042bda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push edi
call fcn.0042bda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push 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
push edi
call fcn.0042bda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push edi
call fcn.0042bda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push edi
call fcn.0042bda0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push 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_
push edi
call fcn.0042bd30
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
xor ebp, ebp
xor eax, eax
lea edx, [esp + 0x14]
mov al, byte [ebp + 0x452434]
push edx
push eax
push ebx
call fcn.00416e70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42bacc
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [ebp + 0x452435]
mov eax, dword [esp + 0x30]
add ecx, edx
xor edx, edx
mov dl, byte [ebp + 0x452434]
push ecx
push edx
push eax
call fcn.00417040
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42bacc
add ebp, 2
cmp ebp, 8
jl 0x42ba24
mov ebp, dword [esp + 0x30]
push ebp
push ebx
call fcn.0042bcb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bacc
push ebp
call fcn.004138b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x42bacc
push ebp
call fcn.0042bc60
push eax
push ebx
call fcn.0042bbf0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push ebp
call fcn.00416e60
add esp, 4
push eax
push ebx
call fcn.0042bb20
add esp, 0xc
mov esi, eax
jmp 0x42bacc
mov esi, 7
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0xc], edx
test ebp, ebp
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ecx
mov byte [edi + 0x1c], 1
je 0x42bb01
mov edx, dword [ebp + 4]
push edx
call fcn.00418df0
add esp, 4
xor eax, eax
mov dword [ebp + 4], eax
mov dword [ebp + 0x14], eax
push 0
push edi
call fcn.00427610
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret