Function at 0x45abf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
cmp byte [edi + 0x34], al
jne 0x45ac26
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ecx
call fcn.0040a1f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x80], 1
jle 0x45ac4a
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push ecx
call fcn.0040a1f0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x44]
mov dword [ebp - 0x24], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [ebp - 0x28], edx
mov edx, dword [edi + 0x48]
cmp byte [edi + 0x35], 2
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0x94]
mov dword [edi + 0x94], 0
mov esi, dword [eax + 4]
mov dword [ebp - 0x30], edx
mov edx, str.ATTACH_:memory:_AS_vacuum_db_
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 4]
mov esi, dword [edi + 0x14]
mov eax, dword [eax]
mov al, byte [eax + 0xe]
mov byte [ebp - 1], al
mov eax, str.ATTACH__AS_vacuum_db_
cmove eax, edx
mov edx, ecx
push eax
mov ecx, edi
call fcn.0045a9b0
mov ecx, dword [edi + 0x14]
add esp, 4
mov ebx, eax
cmp ecx, esi
jle 0x45acca
mov eax, dword [edi + 0x10]
mov edx, ecx
shl edx, 4
add eax, 0xfffffff0
add eax, edx
mov dword [ebp - 0x1c], eax
test ebx, ebx
jne 0x45af37
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 - 0xc]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.0041bf70
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00418af0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov dword [ebp - 0x10], ecx
cmp byte [esi + 9], bl
je 0x45ad1b
add dword [esi + 0xc], 0xffffffff
jne 0x45ad1b
mov eax, dword [eax + 0x38]
test eax, eax
je 0x45ad17
push eax
call dword [0x49f994]
add esp, 4
mov byte [esi + 0xa], 0
mov edx, dword [ebp - 8]
mov ecx, edi
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.0045a9b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
push str.BEGIN_
call fcn.0045a9b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
lea edx, [eax + 2]
mov ecx, esi
call fcn.0041afa0
mov ebx, eax
test ebx, ebx
jne 0x45af3a
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x45ad78
mov dword [edi + 0x3c], ebx
mov edx, dword [esi + 4]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x20]
push 0
push dword [ebp - 0x10]
call fcn.0041a940
add esp, 8
test eax, eax
jne 0x45af30
cmp byte [ebp - 1], al
jne 0x45adb3
mov edx, dword [edi + 0x3c]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call fcn.0041a940
add esp, 8
test eax, eax
jne 0x45af30
cmp byte [edi + 0x36], 0
jne 0x45af30
mov al, byte [edi + 0x38]
test al, al
js 0x45adc9
movsx eax, al
jmp 0x45add0
mov ecx, esi
call fcn.0041ab60
mov edx, eax
mov ecx, ebx
call fcn.0041aae0
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.0045aa30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0045aa30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0045aa30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
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
call fcn.0045aa30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0045aa30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.0045aa30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov edx, dword [ebp - 8]
mov ecx, edi
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_
call fcn.0045a9b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov dword [ebp - 8], ebx
movzx edx, byte [ebx + 0x497694]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.004209a0
movzx eax, byte [ebx + 0x497695]
add esp, 4
add eax, dword [ebp - 0x20]
movzx edx, byte [ebx + 0x497694]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00420a10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45af3a
mov ebx, dword [ebp - 8]
add ebx, 2
mov dword [ebp - 8], ebx
cmp ebx, 8
jl 0x45aea0
mov edx, dword [ebp - 0xc]
mov ecx, esi
call fcn.00422990
mov ebx, eax
test ebx, ebx
jne 0x45af3a
mov ecx, dword [ebp - 0xc]
call fcn.0041bf70
mov ebx, eax
test ebx, ebx
jne 0x45af3a
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0041ab60
mov edx, eax
mov ecx, esi
call fcn.0041aae0
mov eax, dword [ebx + 4]
mov ecx, esi
push 1
push dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
call fcn.0041a940
add esp, 8
mov ebx, eax
jmp 0x45af3a
mov ebx, 7
jmp 0x45af3a
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, esi
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
call fcn.00418af0
mov eax, dword [ebp - 0x10]
test byte [eax + 0x16], 2
je 0x45af91
cmp byte [esi + 9], 0
je 0x45afe3
add dword [esi + 0xc], 0xffffffff
jne 0x45afe3
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x45af8b
push eax
call dword [0x49f994]
add esp, 4
mov byte [esi + 0xa], 0
jmp 0x45afe3
mov esi, dword [eax + 0x20]
lea edi, [eax + 0x20]
sub esi, dword [eax + 0x24]
mov edx, edi
mov ecx, dword [eax]
push esi
call fcn.00413f50
mov ecx, dword [edi]
add esp, 4
movzx eax, si
mov esi, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x10]
or word [eax + 0x16], 2
mov dword [eax + 0x24], ecx
cmp byte [esi + 9], 0
je 0x45afe0
add dword [esi + 0xc], 0xffffffff
jne 0x45afe0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x45afdc
push eax
call dword [0x49f994]
add esp, 4
mov byte [esi + 0xa], 0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov byte [edi + 0x34], 1
test esi, esi
je 0x45b004
mov ecx, dword [esi + 4]
call fcn.0041a690
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.0043cee0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret