Function at 0x4505f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [ebx + 8]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x160], eax
or eax, 0x2800
mov dword [ebx + 8], eax
lea eax, [ebp - 0x150]
xor edx, edx
push eax
mov dword [ebp - 0x158], edx
call fcn.0043fc30
add esp, 4
cmp byte [ebx + 0x14], 0
jne 0x450653
push 0
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.004501b0
add esp, 0xc
mov esi, 1
jmp 0x450860
mov eax, dword [ebx + 4]
push edi
mov edi, dword [eax + 4]
lea eax, [ebp - 0x150]
push eax
push str.ATTACH__q_AS_vacuum_db_
mov dword [ebp - 0x15c], edi
call fcn.00447110
add esp, 8
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x450686
lea esi, [eax + 7]
jmp 0x45085f
push eax
push ebx
call fcn.004505a0
push dword [ebp - 0x154]
mov esi, eax
call fcn.0044fb10
add esp, 0xc
test esi, esi
jne 0x45085f
mov eax, dword [ebx]
push edi
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 4]
mov esi, dword [eax + ecx*8 - 0x14]
lea edx, [eax - 0x18]
mov dword [ebp - 0x154], esi
lea edx, [edx + ecx*8]
mov dword [ebp - 0x158], edx
call fcn.0042ac90
add esp, 4
push eax
push edi
call fcn.0042ac80
add esp, 4
push eax
push esi
call fcn.0042bbc0
push str.PRAGMA_vacuum_db.synchronousOFF
push ebx
call fcn.004505a0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45085f
push edi
call fcn.0042abb0
push eax
push dword [ebp - 0x154]
call fcn.0042bb50
push str.BEGIN_EXCLUSIVE_
push ebx
call fcn.004505a0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45085f
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push ebx
call fcn.00450520
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebx
call fcn.00450520
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push ebx
call fcn.00450520
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
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.00450520
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebx
call fcn.00450520
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
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.00450520
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
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.004505a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
xor edi, edi
lea esp, [esp]
lea eax, [ebp - 0x164]
push eax
movzx eax, byte [edi + 0x521f20]
push eax
push dword [ebp - 0x15c]
call fcn.0042ac20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45085f
movzx eax, byte [edi + 0x521f21]
add eax, dword [ebp - 0x164]
push eax
movzx eax, byte [edi + 0x521f20]
push eax
push dword [ebp - 0x154]
call fcn.0042bcb0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45085f
add edi, 2
cmp edi, 8
jb 0x4507d0
push dword [ebp - 0x154]
mov edi, dword [ebp - 0x15c]
push edi
call fcn.0042a190
mov esi, eax
add esp, 8
test esi, esi
jne 0x45085f
push dword [ebp - 0x154]
call fcn.0042a100
mov esi, eax
add esp, 4
test esi, esi
jne 0x45085f
push edi
call fcn.0042a100
add esp, 4
mov esi, eax
pop edi
mov eax, dword [ebp - 0x160]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x158]
mov byte [ebx + 0x14], 1
test eax, eax
je 0x450896
push dword [eax + 4]
call fcn.0042a000
mov eax, dword [ebp - 0x158]
add esp, 4
mov dword [eax + 4], 0
mov dword [eax + 0x14], 0
lea eax, [ebp - 0x150]
push eax
call fcn.0043f670
lea ecx, [ebp - 0x150]
add esp, 4
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4508b0
mov eax, dword [str._journal]
mov dword [ecx], eax
mov eax, dword [0x51e734]
mov dword [ecx + 4], eax
mov al, byte [0x51e738]
mov byte [ecx + 8], al
lea eax, [ebp - 0x150]
push eax
call fcn.0043f670
push 0
call fcn.0044fb10
push 0
push ebx
call fcn.0042ec30
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e9514
mov esp, ebp
pop ebp
ret