Function at 0x48ebac
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x3c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
and eax, 0xffbfffff
or eax, 0x2800
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xd]
push ebx
push edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x40]
push str.ATTACH__AS_vacuum_db_
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
call fcn.0048c80f
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
shl eax, 4
add eax, ecx
mov ebx, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov eax, ebx
mov dword [ebp - 0x10], ecx
call fcn.00485426
mov edi, dword [ebp - 4]
mov eax, edi
call fcn.0046f899
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
movzx eax, word [eax + 0x14]
xor edi, edi
push edi
push dword [ebp - 0xc]
push ebx
call fcn.00474bf4
add esp, 0xc
test eax, eax
jne 0x48edec
cmp dword [ebp - 8], edi
jne 0x48ec66
mov eax, dword [esi + 0x24]
push edi
push dword [ebp - 0xc]
push ebx
call fcn.00474bf4
add esp, 0xc
test eax, eax
jne 0x48edec
cmp byte [esi + 0x1e], 0
jne 0x48edec
push str.PRAGMA_vacuum_db.synchronousOFF
push esi
call fcn.0048c80f
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
mov al, byte [esi + 0x21]
test al, al
jl 0x48ec93
movsx eax, al
jmp 0x48ec9b
mov eax, dword [ebp - 4]
call fcn.0046f7f9
push eax
mov eax, ebx
call fcn.0046f826
mov dword [esp], str.BEGIN_EXCLUSIVE_
push esi
call fcn.0048c80f
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push esi
call fcn.0048d23b
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
call fcn.0048d23b
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
call fcn.0048d23b
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
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
call fcn.0048d23b
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
call fcn.0048d23b
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
call fcn.0048d23b
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
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 esi
call fcn.0048c80f
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x48edef
mov dword [ebp - 8], edi
jmp 0x48ed65
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [edi + 0x529c90]
push eax
mov eax, dword [ebp - 4]
call fcn.0046f65b
movzx eax, byte [edi + 0x529c91]
add eax, dword [ebp - 0x14]
push eax
movzx eax, byte [edi + 0x529c90]
push eax
call fcn.0047ca5b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48edef
add dword [ebp - 8], 2
cmp dword [ebp - 8], 8
jl 0x48ed62
push dword [ebp - 4]
call fcn.00488f91
mov edi, eax
test edi, edi
pop ecx
jne 0x48edef
mov eax, ebx
call fcn.00485426
mov edi, eax
test edi, edi
jne 0x48edef
mov eax, ebx
call fcn.0046f7f9
push eax
mov eax, dword [ebp - 4]
call fcn.0046f826
mov eax, dword [ebx + 4]
movzx eax, word [eax + 0x14]
pop ecx
push 1
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00474bf4
add esp, 0xc
mov edi, eax
jmp 0x48edef
push 7
pop edi
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
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 byte [esi + 0x1c], 1
je 0x48ee1d
push dword [ebx + 4]
call fcn.00483f39
and dword [ebx + 4], 0
and dword [ebx + 0xc], 0
pop ecx
xor eax, eax
mov ebx, esi
call fcn.0047a444
mov eax, edi
pop edi
pop ebx
leave
ret