Function at 0x527d0b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp byte [esi + 0x1c], bl
jne 0x527d39
push str.cannot_VACUUM_from_within_a_transaction
push esi
push dword [ebp + 8]
call fcn.004f9447
xor eax, eax
add esp, 0xc
inc eax
jmp 0x528018
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
and eax, 0xfaffffff
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x40]
or eax, 0x50000
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x94]
mov dword [esi + 0x94], ebx
mov eax, dword [eax + 4]
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp + 0xc], eax
call fcn.00505230
push eax
call fcn.0050bd6a
push esi
mov dword [ebp - 0x14], eax
call fcn.004f3925
add esp, 0xc
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x527d96
mov eax, str.ATTACH__AS_vacuum_db_
push edi
push eax
push dword [ebp + 8]
call fcn.00527c24
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
shl eax, 4
add eax, ecx
mov edi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edi
call fcn.005062ce
push dword [ebp + 0xc]
call fcn.00503267
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi + 0x24], ebx
je 0x527df5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call fcn.004f4985
add esp, 0x10
cmp dword [ebp - 0x10], ebx
je 0x527df5
mov dword [esi + 0x24], ebx
push ebx
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0050325b
pop ecx
push eax
push edi
call fcn.005031d6
add esp, 0x10
test eax, eax
jne 0x52801c
cmp dword [ebp - 0x14], ebx
jne 0x527e31
push ebx
push dword [ebp - 8]
push dword [esi + 0x24]
push edi
call fcn.005031d6
add esp, 0x10
test eax, eax
jne 0x52801c
cmp byte [esi + 0x1e], bl
jne 0x52801c
push str.PRAGMA_vacuum_db.synchronousOFF
push dword [ebp + 8]
call fcn.00527c24
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
mov al, byte [esi + 0x21]
test al, al
jl 0x527e5f
movsx eax, al
jmp 0x527e68
push dword [ebp + 0xc]
call fcn.00503341
pop ecx
push eax
push dword [ebp - 4]
call fcn.005032ef
push str.BEGIN_EXCLUSIVE_
push dword [ebp + 8]
call fcn.00527c24
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x527fd4
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push dword [ebp + 8]
mov eax, esi
call fcn.00527c7e
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 8]
mov eax, esi
call fcn.00527c7e
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 8]
mov eax, esi
call fcn.00527c7e
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
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 dword [ebp + 8]
mov eax, esi
call fcn.00527c7e
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 8]
mov eax, esi
call fcn.00527c7e
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push dword [ebp + 8]
mov eax, esi
call fcn.00527c7e
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
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_
push dword [ebp + 8]
call fcn.00527c24
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x527fd4
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x57230c]
push eax
push dword [ebp + 0xc]
call fcn.005051a5
movzx eax, byte [ebx + 0x57230d]
add eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x57230c]
push eax
push dword [ebp - 4]
call fcn.005051da
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x527fd2
inc ebx
inc ebx
cmp ebx, 8
jl 0x527f46
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call fcn.00524be1
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x527fd2
push ebx
call fcn.005062ce
mov edi, eax
pop ecx
test edi, edi
jne 0x527fd2
push ebx
call fcn.00503341
push eax
push dword [ebp + 0xc]
call fcn.005032ef
add esp, 0xc
push 1
push dword [ebp - 8]
push ebx
call fcn.0050325b
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.005031d6
add esp, 0x10
mov edi, eax
xor ebx, ebx
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]
mov dword [esi + 0x94], eax
mov eax, dword [ebp - 0xc]
mov byte [esi + 0x1c], 1
cmp eax, ebx
je 0x52800c
push dword [eax + 4]
call fcn.00507ab6
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ebx
push ebx
push esi
call fcn.004fbe73
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push 7
pop edi
jmp 0x527fd4