Function at 0x43bc60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0xc], 0
cmp byte [esi + 0x1c], 0
push ebx
push edi
jne 0x43bc8a
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.00414a7c
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x43bf26
cmp dword [esi + 0x8c], 1
jle 0x43bc9a
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x43bc77
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x98]
and dword [esi + 0x98], 0
cmp byte [esi + 0x1d], 2
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x43bce5
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0043bb98
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
pop ecx
jle 0x43bd09
mov edx, dword [esi + 8]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 0xc], ecx
test edi, edi
jne 0x43bed5
mov ecx, dword [esi + 8]
shl eax, 4
mov ebx, dword [eax + ecx - 0xc]
push ebx
mov dword [ebp - 8], ebx
call fcn.0041e454
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
mov edi, dword [eax + 0x20]
sub edi, dword [eax + 0x24]
mov eax, dword [eax]
cmp byte [eax + 5], 5
mov dword [ebp - 0x14], edi
jne 0x43bd40
and dword [esi + 0x24], 0
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x20]
push 0
push edi
mov eax, ebx
call fcn.0041df34
test eax, eax
pop ecx
pop ecx
jne 0x43bed2
mov ecx, dword [esi + 0x24]
push eax
push edi
mov eax, ebx
call fcn.0041df34
test eax, eax
pop ecx
pop ecx
jne 0x43bed2
cmp byte [esi + 0x1e], al
jne 0x43bed2
mov ebx, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebx
mov ecx, esi
call fcn.0043bb98
mov edi, eax
test edi, edi
pop ecx
jne 0x43bed5
push str.BEGIN_EXCLUSIVE_
mov eax, ebx
mov ecx, esi
call fcn.0043bb98
mov edi, eax
test edi, edi
pop ecx
jne 0x43bed5
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push esi
mov eax, ebx
call fcn.0043bbf3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
mov eax, ebx
call fcn.0043bbf3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
mov eax, ebx
call fcn.0043bbf3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name____FROM_main.sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
push esi
mov eax, ebx
call fcn.0043bbf3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
mov eax, ebx
call fcn.0043bbf3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
mov eax, ebx
call fcn.0043bbf3
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_main.sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov eax, ebx
mov ecx, esi
call fcn.0043bb98
mov edi, eax
test edi, edi
pop ecx
jne 0x43bed5
xor ebx, ebx
movzx edi, byte [ebx + 0x4467cc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00420bf1
movzx eax, byte [ebx + 0x4467cd]
add eax, dword [ebp - 0x10]
pop ecx
push eax
movzx eax, byte [ebx + 0x4467cc]
push eax
mov eax, dword [ebp - 8]
call fcn.00420c19
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x43bed5
inc ebx
inc ebx
cmp ebx, 8
jl 0x43be5b
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
call fcn.0042135d
mov edi, eax
test edi, edi
jne 0x43bed5
push ebx
call fcn.0041e454
mov edi, eax
test edi, edi
pop ecx
jne 0x43bed5
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call fcn.0041df34
pop ecx
pop ecx
mov edi, eax
jmp 0x43bed5
push 7
pop edi
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
mov dword [esi + 0x98], eax
mov eax, dword [ebp - 4]
push 1
push ecx
call fcn.0041df34
mov ebx, dword [ebp - 0xc]
test ebx, ebx
pop ecx
pop ecx
mov byte [esi + 0x1c], 1
je 0x43bf1b
mov eax, dword [ebx + 4]
call fcn.0041dec8
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
xor eax, eax
mov ebx, esi
call fcn.0042ee43
mov eax, edi
pop edi
pop ebx
leave
ret