Function at 0x100532a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x30]
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x18], ecx
cmp byte [ebp + 0x3f], cl
jne 0x100532d8
push str.cannot_VACUUM_from_within_a_transaction
mov esi, ebp
mov edi, ebx
call fcn.1000e4d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
cmp dword [ebp + 0x94], 1
jle 0x100532e8
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x100532bf
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x50]
mov dword [esp + 0x20], eax
and eax, 0xfff5ffff
or eax, 0x202800
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x54]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0xb0]
mov dword [ebp + 0xb0], ecx
mov edi, dword [eax + 4]
mov eax, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], edi
call fcn.10007030
call fcn.10005a50
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.1000d8f0
test eax, eax
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
jne 0x10053350
mov eax, str.ATTACH__AS_vacuum_db_
push ebp
mov ecx, ebx
call fcn.100531a0
mov esi, eax
mov eax, dword [ebp + 0x14]
add esp, 4
cmp eax, dword [esp + 0x14]
jle 0x10053376
mov ecx, dword [ebp + 0x10]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x18], edx
test esi, esi
jne 0x100535c2
mov ecx, dword [ebp + 0x10]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
mov dword [esp + 0x10], eax
call fcn.10044410
mov esi, edi
call fcn.10010e20
mov dword [esp + 0x14], eax
push ebp
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov ecx, ebx
call fcn.100531a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100535c2
push ebp
mov eax, str.BEGIN_
mov ecx, ebx
call fcn.100531a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100535c2
push 2
push edi
call fcn.1003b170
mov esi, eax
add esp, 8
test esi, esi
jne 0x100535c2
mov eax, edi
call fcn.10007030
call fcn.10005af0
cmp eax, 5
jne 0x100533f9
mov dword [ebp + 0x48], esi
mov edx, dword [esp + 0x14]
push 0
push edx
mov eax, edi
call fcn.10006e10
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.10010d90
add esp, 0x10
test eax, eax
jne 0x100535b7
cmp dword [esp + 0x1c], eax
jne 0x1005343e
mov ecx, dword [ebp + 0x48]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push esi
call fcn.10010d90
add esp, 0x10
test eax, eax
jne 0x100535b7
cmp byte [ebp + 0x41], 0
jne 0x100535b7
mov al, byte [ebp + 0x43]
test al, al
jl 0x10053454
movsx eax, al
jmp 0x10053459
call fcn.10010f20
push eax
mov edi, esi
call fcn.10010ec0
push ebx
push ebp
mov ecx, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_coalesce_rootpage_1__0
call fcn.10053210
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100535be
push ebx
push ebp
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.10053210
mov esi, eax
add esp, 8
test esi, esi
jne 0x100535be
push ebx
push ebp
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.10053210
mov esi, eax
add esp, 8
test esi, esi
jne 0x100535be
or dword [ebp + 0x18], 0x8000000
push ebx
push ebp
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_coalesce_rootpage_1__0
call fcn.10053210
and dword [ebp + 0x18], 0xf7ffffff
mov esi, eax
add esp, 8
test esi, esi
jne 0x100535be
push ebx
push ebp
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.10053210
mov esi, eax
add esp, 8
test esi, esi
jne 0x100535be
push ebx
push ebp
mov ecx, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.10053210
mov esi, eax
add esp, 8
test esi, esi
jne 0x100535be
push ebp
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
call fcn.100531a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100535be
xor ebx, ebx
movzx eax, byte [ebx + 0x1005da60]
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.10011030
movzx ecx, byte [ebx + 0x1005da61]
add ecx, dword [esp + 0x24]
movzx edx, byte [ebx + 0x1005da60]
mov edi, dword [esp + 0x18]
push ecx
push edx
call fcn.10037f30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100535be
add ebx, 2
cmp ebx, 0xa
jl 0x10053521
mov eax, dword [esp + 0x38]
mov ebx, edi
push eax
mov esi, ebx
call fcn.1004b040
mov esi, eax
add esp, 4
test esi, esi
jne 0x100535be
mov eax, ebx
call fcn.10044410
mov esi, eax
test esi, esi
jne 0x100535be
call fcn.10010f20
mov edi, dword [esp + 0x38]
push eax
call fcn.10010ec0
mov ecx, dword [esp + 0x18]
add esp, 4
push 1
push ecx
mov eax, ebx
call fcn.10006e10
push eax
push edi
call fcn.10010d90
add esp, 0x10
mov esi, eax
jmp 0x100535c2
mov esi, 7
jmp 0x100535c2
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push 1
push 0xffffffffffffffff
mov dword [ebp + 0x18], edx
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push edi
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0xb0], edx
call fcn.10010d90
mov edi, dword [esp + 0x28]
xor ebx, ebx
add esp, 0x10
mov byte [ebp + 0x3f], 1
cmp edi, ebx
je 0x10053610
mov eax, dword [edi + 4]
push eax
call fcn.10047220
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov eax, ebp
call fcn.1001a560
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret