Function at 0x53c1fd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x10], ecx
cmp byte [edi + 0x3e], cl
jne 0x53c2002
push str.cannot_VACUUM_from_within_a_transaction
push edi
push ebx
call fcn.053865c0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x8c], 1
jle 0x53c2026
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push ebx
call fcn.053865c0
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 + 0x50]
mov dword [ebp - 0x18], eax
and eax, 0xfff5ffff
or eax, 0x202800
cmp byte [edi + 0x3f], 2
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x54]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0xa4]
mov dword [edi + 0xa4], ecx
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ecx]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0xe]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x53c207f
mov eax, str.ATTACH__AS_vacuum_db_
call fcn.053c1a50
mov esi, eax
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0xc]
jle 0x53c209c
mov ecx, dword [edi + 0x10]
mov edx, eax
add edx, edx
lea edx, [ecx + edx*8 - 0x10]
mov dword [ebp - 0x10], edx
test esi, esi
jne 0x53c22be
mov ecx, dword [edi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov dword [ebp - 8], eax
call fcn.053c0970
mov eax, dword [ebp - 4]
call fcn.0537dd30
mov dword [ebp - 0xc], eax
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
call fcn.053c1a50
mov esi, eax
test esi, esi
jne 0x53c22be
mov eax, str.BEGIN_
call fcn.053c1a50
mov esi, eax
test esi, esi
jne 0x53c22be
mov edx, dword [ebp - 4]
push 2
push edx
call fcn.053b5530
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
cmp byte [edx + 5], 5
jne 0x53c2111
mov dword [edi + 0x48], esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 8]
mov eax, dword [eax + 0x20]
push 0
push ecx
mov ecx, esi
call fcn.05388250
add esp, 8
test eax, eax
jne 0x53c22b9
cmp dword [ebp - 0x14], eax
jne 0x53c2151
mov edx, dword [ebp - 0xc]
push eax
mov eax, dword [edi + 0x48]
push edx
mov ecx, esi
call fcn.05388250
add esp, 8
test eax, eax
jne 0x53c22b9
cmp byte [edi + 0x40], 0
jne 0x53c22b9
mov al, byte [edi + 0x42]
test al, al
js 0x53c2167
movsx eax, al
jmp 0x53c216f
mov eax, dword [ebp - 4]
call fcn.0537dba0
push eax
mov eax, esi
call fcn.0537dbf0
add esp, 4
push ebx
push edi
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.053c1dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
push ebx
push edi
mov ecx, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.053c1dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
push ebx
push edi
mov ecx, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.053c1dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
push ebx
push edi
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.053c1dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
push ebx
push edi
mov ecx, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.053c1dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
push ebx
push edi
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.053c1dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x53c22be
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_
call fcn.053c1a50
mov esi, eax
test esi, esi
jne 0x53c22be
xor ebx, ebx
movzx ecx, byte [ebx + 0x53fa910]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push ecx
call fcn.0537daa0
movzx edx, byte [ebx + 0x53fa911]
add edx, dword [ebp - 0x14]
movzx eax, byte [ebx + 0x53fa910]
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.053a2d80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x53c22be
add ebx, 2
cmp ebx, 0xa
jl 0x53c2226
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
push ecx
mov esi, ebx
call fcn.053c13a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x53c22be
mov eax, ebx
call fcn.053c0970
mov esi, eax
test esi, esi
jne 0x53c22be
mov eax, ebx
call fcn.0537dba0
mov esi, dword [ebp - 4]
push eax
mov eax, esi
call fcn.0537dbf0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x20]
add esp, 4
push 1
push ecx
mov ecx, esi
call fcn.05388250
add esp, 8
mov esi, eax
jmp 0x53c22be
mov esi, 7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x18], edx
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov ecx, dword [ebp - 4]
push 1
push 0xffffffffffffffff
or eax, 0xffffffff
mov dword [edi + 0xa4], edx
call fcn.05388250
mov eax, dword [ebp - 0x10]
add esp, 8
mov byte [edi + 0x3e], 1
test eax, eax
je 0x53c2309
mov ebx, dword [eax + 4]
call fcn.053bc6f0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov eax, edi
call fcn.05394dc0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret