Function at 0x4541e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x577680]
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.00443900
add esp, 4
cmp byte [ebx + 0x14], 0
jne 0x454243
push 0
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.00453da0
add esp, 0xc
mov esi, 1
jmp 0x454450
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.0044ade0
add esp, 8
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x454276
lea esi, [eax + 7]
jmp 0x45444f
push eax
push ebx
call fcn.00454190
push dword [ebp - 0x154]
mov esi, eax
call fcn.00442730
add esp, 0xc
test esi, esi
jne 0x45444f
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.0042e910
add esp, 4
push eax
push edi
call fcn.0042e900
add esp, 4
push eax
push esi
call fcn.0042f840
push str.PRAGMA_vacuum_db.synchronousOFF
push ebx
call fcn.00454190
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45444f
push edi
call fcn.0042e830
push eax
push dword [ebp - 0x154]
call fcn.0042f7d0
push str.BEGIN_EXCLUSIVE_
push ebx
call fcn.00454190
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45444f
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.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push ebx
call fcn.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
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.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
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.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push ebx
call fcn.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
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.00454110
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
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.00454190
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
xor edi, edi
lea esp, [esp]
lea eax, [ebp - 0x164]
push eax
movzx eax, byte [edi + 0x531c90]
push eax
push dword [ebp - 0x15c]
call fcn.0042e8a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45444f
movzx eax, byte [edi + 0x531c91]
add eax, dword [ebp - 0x164]
push eax
movzx eax, byte [edi + 0x531c90]
push eax
push dword [ebp - 0x154]
call fcn.0042f930
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45444f
add edi, 2
cmp edi, 8
jb 0x4543c0
push dword [ebp - 0x154]
mov edi, dword [ebp - 0x15c]
push edi
call fcn.0042de10
mov esi, eax
add esp, 8
test esi, esi
jne 0x45444f
push dword [ebp - 0x154]
call fcn.0042dd80
mov esi, eax
add esp, 4
test esi, esi
jne 0x45444f
push edi
call fcn.0042dd80
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 0x454486
push dword [eax + 4]
call fcn.0042dc80
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.00443340
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 0x4544a0
mov eax, dword [str._journal]
mov dword [ecx], eax
mov eax, dword [0x52e4a8]
mov dword [ecx + 4], eax
mov al, byte [0x52e4ac]
mov byte [ecx + 8], al
lea eax, [ebp - 0x150]
push eax
call fcn.00443340
push 0
call fcn.00442730
push 0
push ebx
call fcn.004328b0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret