Function at 0x4381b2
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 0x4381dc
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.00410fcb
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x438478
cmp dword [esi + 0x8c], 1
jle 0x4381ec
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x4381c9
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 0x438237
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004380ea
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
pop ecx
jle 0x43825b
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 0x438427
mov ecx, dword [esi + 8]
shl eax, 4
mov ebx, dword [eax + ecx - 0xc]
push ebx
mov dword [ebp - 8], ebx
call fcn.0041a9a3
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 0x438292
and dword [esi + 0x24], 0
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x20]
push 0
push edi
mov eax, ebx
call fcn.0041a483
test eax, eax
pop ecx
pop ecx
jne 0x438424
mov ecx, dword [esi + 0x24]
push eax
push edi
mov eax, ebx
call fcn.0041a483
test eax, eax
pop ecx
pop ecx
jne 0x438424
cmp byte [esi + 0x1e], al
jne 0x438424
mov ebx, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebx
mov ecx, esi
call fcn.004380ea
mov edi, eax
test edi, edi
pop ecx
jne 0x438427
push str.BEGIN_EXCLUSIVE_
mov eax, ebx
mov ecx, esi
call fcn.004380ea
mov edi, eax
test edi, edi
pop ecx
jne 0x438427
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.00438145
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
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.00438145
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
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.00438145
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
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.00438145
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
mov eax, ebx
call fcn.00438145
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
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.00438145
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
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.004380ea
mov edi, eax
test edi, edi
pop ecx
jne 0x438427
xor ebx, ebx
movzx edi, byte [ebx + 0x442824]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0041d140
movzx eax, byte [ebx + 0x442825]
add eax, dword [ebp - 0x10]
pop ecx
push eax
movzx eax, byte [ebx + 0x442824]
push eax
mov eax, dword [ebp - 8]
call fcn.0041d168
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x438427
inc ebx
inc ebx
cmp ebx, 8
jl 0x4383ad
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
call fcn.0041d8ac
mov edi, eax
test edi, edi
jne 0x438427
push ebx
call fcn.0041a9a3
mov edi, eax
test edi, edi
pop ecx
jne 0x438427
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call fcn.0041a483
pop ecx
pop ecx
mov edi, eax
jmp 0x438427
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.0041a483
mov ebx, dword [ebp - 0xc]
test ebx, ebx
pop ecx
pop ecx
mov byte [esi + 0x1c], 1
je 0x43846d
mov eax, dword [ebx + 4]
call fcn.0041a417
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
xor eax, eax
mov ebx, esi
call fcn.0042b395
mov eax, edi
pop edi
pop ebx
leave
ret