Function at 0x465250
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
xor ecx, ecx
mov dword [ebp - 0x14], eax
or eax, 0x2800
cmp byte [esi + 0x10], cl
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [esi + 8], eax
jne 0x465290
push ecx
push str.cannot_VACUUM_from_within_a_transaction
push dword [ebp + 8]
call fcn.00449f6d
xor edi, edi
add esp, 0xc
inc edi
jmp 0x4654f0
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push eax
mov dword [ebp + 0xc], eax
call fcn.0045195d
cmp byte [eax], 0
pop ecx
mov dword [ebp - 8], eax
jne 0x4652af
xor eax, eax
jmp 0x465548
push eax
call sub.MSVCR80.dll_strlen
mov edi, eax
lea eax, [edi + 0x64]
push 1
push eax
call fcn.00449ed6
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x4652d6
push 7
pop edi
jmp 0x4654f0
push dword [ebp - 8]
push ebx
call sub.MSVCR80.dll_strcpy
pop ecx
add edi, ebx
pop ecx
lea ebx, [edi + 1]
push ebx
push 0x14
mov byte [edi], 0x2d
call fcn.004647e8
and dword [ebp - 8], 0
pop ecx
pop ecx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx]
xor edx, edx
push 0x24
pop ecx
div ecx
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x14
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyz0123456789]
mov byte [ecx + ebx], al
jl 0x4652f7
push dword [ebp - 4]
call fcn.00452ed3
test eax, eax
pop ecx
jne 0x4652e6
push dword [ebp - 4]
push str.ATTACH__q_AS_vacuum_db_
call fcn.0045a4e0
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4652ce
push ebx
push esi
call fcn.0046518e
push ebx
mov edi, eax
call fcn.004497fa
add esp, 0xc
test edi, edi
jne 0x4654f0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
imul eax, eax, 0x18
push dword [ebp + 0xc]
add eax, ecx
mov ebx, dword [eax - 0x14]
lea ecx, [eax - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
call fcn.0044ec6f
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.0044ec63
pop ecx
push eax
push ebx
call fcn.0044ec06
push str.PRAGMA_vacuum_db.synchronousOFF
push esi
call fcn.0046518e
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4654f0
push dword [ebp + 0xc]
call fcn.0044eca0
push eax
push ebx
call fcn.0044ec81
push str.BEGIN_EXCLUSIVE_
push esi
call fcn.0046518e
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4654f0
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_CREATE_VIEW_vacuum_db.__substr_sql_13_100000000____FROM_sqlite_master_WHERE_typeview
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence_
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push str.SELECT_CREATE_TRIGGER__vacuum_db.__substr_sql__16__1000000__FROM_sqlite_master_WHERE_typetrigger
push esi
call fcn.004651cf
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x49402c]
push eax
push dword [ebp + 0xc]
call fcn.00451250
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4654f0
movzx eax, byte [ebx + 0x49402d]
add eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x49402c]
push eax
push dword [ebp - 8]
call fcn.004512a4
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4654f0
inc ebx
inc ebx
cmp ebx, 8
jb 0x46547b
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00452b7e
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4654f0
push dword [ebp - 8]
call fcn.0044f1f6
mov edi, eax
test edi, edi
pop ecx
jne 0x4654f0
push dword [ebp + 0xc]
call fcn.0044f1f6
pop ecx
mov edi, eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov byte [esi + 0x10], 1
je 0x465512
push dword [ebx + 4]
call fcn.00452ca5
and dword [ebx + 4], 0
and dword [ebx + 0x14], 0
pop ecx
cmp edi, 7
jne 0x46551c
call fcn.00449e7f
cmp dword [ebp - 4], 0
je 0x465534
push dword [ebp - 4]
call fcn.00452e54
push dword [ebp - 4]
call fcn.004497fa
pop ecx
pop ecx
push 0
call fcn.004497fa
push 0
push esi
call fcn.0044b2ab
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret