Function at 0x436ae0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, eax
mov al, byte [ebp + 0x1c]
xor ecx, ecx
test al, al
push edi
mov dword [esp + 0x10], ecx
jne 0x436b16
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
mov edi, ebx
call fcn.0041db50
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x18], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x94]
mov dword [ebp + 0x94], ecx
mov edi, dword [eax + 4]
mov eax, edi
mov dword [esp + 0x24], edx
call fcn.0040d020
call fcn.0040b970
mov ecx, dword [ebp + 4]
mov dword [esp + 0x2c], ecx
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00411870
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x436b7a
mov eax, str.ATTACH__AS_vacuum_db_
push esi
mov ecx, ebx
mov esi, ebp
call fcn.004369f0
mov ecx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebp + 4]
cmp eax, ecx
jle 0x436ba1
mov ecx, dword [ebp + 8]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x14], edx
test esi, esi
jne 0x436dc8
mov ecx, dword [ebp + 8]
shl eax, 4
mov esi, dword [eax + ecx - 0xc]
mov eax, esi
mov dword [esp + 0x30], esi
call fcn.0042ace0
mov eax, edi
call fcn.0040cbf0
mov edx, eax
mov eax, edi
mov dword [esp + 0x10], edx
call fcn.0040d020
call fcn.0040b9e0
cmp eax, 5
jne 0x436be3
mov dword [ebp + 0x24], 0
push 0
push edx
mov eax, edi
call fcn.0040cbe0
push esi
call fcn.00414a20
add esp, 0xc
test eax, eax
jne 0x436dc3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x436c21
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x24]
push 0
push edx
push esi
call fcn.00414a20
add esp, 0xc
test eax, eax
jne 0x436dc3
mov al, byte [ebp + 0x1e]
test al, al
jne 0x436dc3
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, ebx
mov esi, ebp
call fcn.004369f0
mov esi, eax
test esi, esi
jne 0x436dc8
mov al, byte [ebp + 0x20]
test al, al
jl 0x436c50
movsx eax, al
jmp 0x436c57
mov eax, edi
call fcn.0040ccc0
push eax
mov eax, dword [esp + 0x34]
call fcn.0040cc60
add esp, 4
mov eax, str.BEGIN_EXCLUSIVE_
mov ecx, ebx
mov esi, ebp
call fcn.004369f0
mov esi, eax
test esi, esi
jne 0x436dc8
push ebx
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov eax, ebp
call fcn.00436a50
mov esi, eax
add esp, 4
test esi, esi
jne 0x436dc8
push ebx
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov eax, ebp
call fcn.00436a50
mov esi, eax
add esp, 4
test esi, esi
jne 0x436dc8
push ebx
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov eax, ebp
call fcn.00436a50
mov esi, eax
add esp, 4
test esi, esi
jne 0x436dc8
push ebx
mov ecx, 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
mov eax, ebp
call fcn.00436a50
mov esi, eax
add esp, 4
test esi, esi
jne 0x436dc8
push ebx
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov eax, ebp
call fcn.00436a50
mov esi, eax
add esp, 4
test esi, esi
jne 0x436dc8
push ebx
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov eax, ebp
call fcn.00436a50
mov esi, eax
add esp, 4
test esi, esi
jne 0x436dc8
mov eax, 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_
mov ecx, ebx
mov esi, ebp
call fcn.004369f0
mov esi, eax
test esi, esi
jne 0x436dc8
xor ebx, ebx
movzx ecx, byte [ebx + 0x4ad700]
lea eax, [esp + 0x18]
push eax
push ecx
mov eax, edi
call fcn.0040cff0
movzx edx, byte [ebx + 0x4ad701]
add edx, dword [esp + 0x20]
movzx eax, byte [ebx + 0x4ad700]
push edx
push eax
mov eax, dword [esp + 0x40]
call fcn.00423a20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436dc8
add ebx, 2
cmp ebx, 8
jl 0x436d32
mov esi, dword [esp + 0x30]
mov ebx, edi
call fcn.0042fad0
mov esi, eax
test esi, esi
jne 0x436dc8
mov ebx, dword [esp + 0x30]
mov eax, ebx
call fcn.0042ace0
mov esi, eax
test esi, esi
jne 0x436dc8
mov eax, ebx
call fcn.0040ccc0
push eax
mov eax, edi
call fcn.0040cc60
mov ecx, dword [esp + 0x14]
add esp, 4
push 1
push ecx
mov eax, ebx
call fcn.0040cbe0
push edi
call fcn.00414a20
add esp, 0xc
mov esi, eax
jmp 0x436dc8
mov esi, 7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 1
mov dword [ebp + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x3c], eax
push 0xffffffffffffffff
push edi
or eax, 0xffffffff
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x94], edx
call fcn.00414a20
mov edi, dword [esp + 0x20]
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
mov byte [ebp + 0x1c], 1
je 0x436e17
mov eax, dword [edi + 4]
push eax
call fcn.0042d3b0
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
push ebx
mov eax, ebp
call fcn.00420a50
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret