Function at 0x455f70
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
or eax, 0x2800
cmp byte [ebp + 0x14], 0
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [ebp + 8], eax
jne 0x455fb6
mov eax, dword [esp + 0x28]
push 0
push str.cannot_VACUUM_from_within_a_transaction
push eax
call fcn.0041cc40
add esp, 0xc
mov esi, 1
jmp 0x4561b6
mov ecx, dword [ebp + 4]
mov ebx, dword [ecx + 4]
mov ecx, str.ATTACH__AS_vacuum_db_
mov eax, ebp
mov dword [esp + 0x10], ebx
call fcn.00455d80
mov esi, eax
test esi, esi
jne 0x4561b6
mov eax, dword [ebp]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
mov edi, dword [eax + edx*8 - 0x14]
lea eax, [eax + edx*8]
lea ecx, [eax - 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
movzx eax, word [ecx + 0x18]
movzx ecx, word [ecx + 0x1a]
mov edx, eax
sub edx, ecx
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00425bd0
cmp dword [0x4c47e8], esi
je 0x45602f
cmp dword [0x4c47f0], esi
jle 0x45602f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4c47cc], eax
jne 0x45602f
mov esi, 7
jmp 0x4561b6
mov ecx, str.PRAGMA_vacuum_db.synchronousOFF
mov eax, ebp
call fcn.00455d80
mov esi, eax
test esi, esi
jne 0x4561b6
mov ebx, dword [ebx + 4]
xor ecx, ecx
cmp byte [ebx + 0x12], cl
je 0x456058
cmp byte [ebx + 0x13], cl
setne cl
add ecx, 1
mov eax, edi
call fcn.00425c30
mov ecx, str.BEGIN_EXCLUSIVE_
mov eax, ebp
call fcn.00455d80
mov esi, eax
test esi, esi
jne 0x4561b6
push ebp
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14_100000000____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.00455e00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
push ebp
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14_100000000___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.00455e00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
push ebp
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21_100000000____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.00455e00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
push ebp
mov ecx, 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
call fcn.00455e00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
push ebp
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.00455e00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
push ebp
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.00455e00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
mov ecx, 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_
mov eax, ebp
call fcn.00455d80
mov esi, eax
test esi, esi
jne 0x4561b6
xor ebx, ebx
mov dword [esp + 0x2c], ebx
jmp 0x456134
mov ebx, dword [esp + 0x2c]
movzx edi, byte [ebx + 0x4aaa68]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
call fcn.0042af30
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
movzx ebx, byte [ebx + 0x4aaa69]
mov eax, dword [esp + 0x2c]
movzx edi, byte [eax + 0x4aaa68]
add ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
call fcn.0042afc0
mov esi, eax
test esi, esi
jne 0x4561b6
mov eax, dword [esp + 0x2c]
add eax, 2
cmp eax, 8
mov dword [esp + 0x2c], eax
jb 0x456130
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push edi
mov ecx, ebx
call fcn.0042bc80
mov esi, eax
add esp, 4
test esi, esi
jne 0x4561b6
mov eax, ebx
call fcn.00426ad0
mov esi, eax
test esi, esi
jne 0x4561b6
mov eax, edi
call fcn.00426ad0
mov esi, eax
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp + 8], ecx
mov byte [ebp + 0x14], 1
je 0x4561dd
mov edx, dword [edi + 4]
push edx
call fcn.00425ab0
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
push ebx
mov ebx, ebp
call fcn.0043c9a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret