Function at 0x532af4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [esi + 0x1c], 0
jne 0x532b27
push str.cannot_VACUUM_from_within_a_transaction
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.004fc778
add esp, 0xc
mov eax, 1
jmp 0x532de3
mov edx, dword [esi + 0xc]
mov dword [ebp - 0xc], edx
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
or dword [esi + 0xc], 0x2800
mov edx, dword [esi + 8]
mov ecx, dword [edx + 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
call fcn.0050bf00
pop ecx
push eax
call fcn.00504d90
mov edi, eax
mov eax, str.ATTACH__AS_vacuum_db_
pop ecx
push eax
push esi
call fcn.00532a10
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
mov edx, esi
mov eax, esi
mov edx, dword [edx + 4]
mov eax, dword [eax + 8]
shl edx, 4
mov ecx, edx
add ecx, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + edx - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.00506d50
pop ecx
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00506d40
pop ecx
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00506ca4
add esp, 0x10
test eax, eax
jne 0x532be5
test edi, edi
jne 0x532bdf
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov edx, dword [esi + 0x24]
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.00506ca4
add esp, 0x10
test eax, eax
jne 0x532be5
cmp byte [esi + 0x1e], 0
je 0x532bef
mov ebx, 7
jmp 0x532d9d
push str.PRAGMA_vacuum_db.synchronousOFF
push esi
call fcn.00532a10
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x532c08
jmp 0x532d9d
cmp byte [esi + 0x21], 0
jl 0x532c14
movsx eax, byte [esi + 0x21]
jmp 0x532c1e
mov edx, dword [ebp - 4]
push edx
call fcn.00506e24
pop ecx
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00506db0
add esp, 8
push str.BEGIN_EXCLUSIVE_
push esi
call fcn.00532a10
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push esi
call fcn.00532a60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
call fcn.00532a60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
call fcn.00532a60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
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 esi
call fcn.00532a60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
call fcn.00532a60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
call fcn.00532a60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
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 esi
call fcn.00532a10
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
xor eax, eax
mov edi, 0x555093
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
xor edx, edx
mov dl, byte [edi]
push edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050bc7c
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x532d9d
xor eax, eax
mov al, byte [edi + 1]
add eax, dword [ebp - 0x20]
push eax
xor edx, edx
mov dl, byte [edi]
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.0050bd4c
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x532d9d
add dword [ebp - 0x24], 2
add edi, 2
cmp dword [ebp - 0x24], 8
jl 0x532cf5
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.0050d55c
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x532d9d
mov eax, dword [ebp - 8]
push eax
call fcn.00507b54
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x532d9d
mov eax, dword [ebp - 8]
push eax
call fcn.00506e24
pop ecx
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00506db0
add esp, 8
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov eax, dword [ebp - 8]
push eax
call fcn.00506d40
pop ecx
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00506ca4
add esp, 0x10
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x3c], edx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x40], ecx
mov byte [esi + 0x1c], 1
cmp dword [ebp - 0x18], 0
je 0x532dd6
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
push edx
call fcn.00506b60
pop ecx
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [edx + 0xc], ecx
push 0
push esi
call fcn.0051fd08
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret