Function at 0x10023f26
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x10], 0
push ebx
mov ebx, eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x48]
or eax, 0x2800
cmp byte [ebx + 0x1c], 0
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebx + 0xc], eax
jne 0x10023f6c
push str.cannot_VACUUM_from_within_a_transaction
push ebx
mov edi, edx
call fcn.10012343
pop ecx
xor esi, esi
pop ecx
inc esi
jmp 0x100241d1
mov eax, dword [ebx + 8]
mov edi, dword [eax + 4]
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x68]
xor ecx, ecx
cmp dword [eax], ecx
push str.ATTACH__AS_vacuum_db_
sete cl
push ebx
mov dword [ebp - 8], ecx
call fcn.10023e7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
imul eax, eax, 0x18
add eax, ecx
lea ecx, [eax - 0x18]
mov eax, dword [eax - 0x14]
mov dword [ebp - 4], eax
mov eax, edi
mov dword [ebp - 0x10], ecx
call fcn.10003bc3
mov eax, dword [edi + 4]
movzx ecx, word [eax + 0x1e]
movzx eax, word [eax + 0x1c]
sub eax, ecx
mov esi, edi
mov dword [ebp - 0xc], eax
call fcn.10003c3b
mov eax, dword [edi + 4]
push dword [ebp - 0xc]
movzx eax, word [eax + 0x1c]
push dword [ebp - 4]
call fcn.1000990c
pop ecx
pop ecx
test eax, eax
jne 0x100241ce
cmp dword [ebp - 8], eax
jne 0x10024009
push dword [ebp - 0xc]
mov eax, dword [ebx + 0x24]
push dword [ebp - 4]
call fcn.1000990c
pop ecx
pop ecx
test eax, eax
jne 0x100241ce
cmp byte [ebx + 0x1e], 0
jne 0x100241ce
push str.PRAGMA_vacuum_db.synchronousOFF
push ebx
call fcn.10023e7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
mov al, byte [ebx + 0x21]
test al, al
jl 0x10024036
movsx eax, al
jmp 0x1002403d
mov eax, edi
call fcn.1000482e
push eax
mov eax, dword [ebp - 4]
call fcn.100047ee
mov dword [esp], str.BEGIN_EXCLUSIVE_
push ebx
call fcn.10023e7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push ebx
call fcn.10023ec6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebx
call fcn.10023ec6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push ebx
call fcn.10023ec6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
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 ebx
call fcn.10023ec6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebx
call fcn.10023ec6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push ebx
call fcn.10023ec6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
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 ebx
call fcn.10023e7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
and dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x10033d28]
push eax
push edi
call fcn.10019027
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100241d1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x10033d29]
add ecx, dword [ebp - 0x14]
movzx eax, byte [eax + 0x10033d28]
push ecx
push eax
mov eax, dword [ebp - 4]
call fcn.100190ca
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100241d1
add dword [ebp - 8], 2
cmp dword [ebp - 8], 8
jl 0x10024103
mov eax, edi
call fcn.10003bc3
mov esi, dword [ebp - 4]
mov eax, esi
call fcn.10003bc3
push edi
mov eax, esi
call fcn.100220cf
pop ecx
mov dword [ebp - 0x14], eax
call fcn.10003c3b
mov esi, edi
call fcn.10003c3b
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x100241d1
mov eax, dword [ebp - 4]
call fcn.1001cfda
mov esi, eax
test esi, esi
jne 0x100241d1
mov eax, dword [ebp - 4]
call fcn.1000482e
push eax
mov eax, edi
call fcn.100047ee
pop ecx
mov eax, edi
call fcn.1001cfda
mov esi, eax
test esi, esi
jne 0x100241d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push dword [ebp - 0xc]
movzx eax, word [eax + 0x1c]
push edi
call fcn.1000990c
pop ecx
pop ecx
mov esi, eax
jmp 0x100241d1
push 7
pop esi
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x48], eax
mov byte [ebx + 0x1c], 1
test edi, edi
je 0x100241ff
push dword [edi + 4]
call fcn.1002324c
and dword [edi + 4], 0
and dword [edi + 0x14], 0
pop ecx
xor eax, eax
call fcn.10013cc2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret