Function at 0x57dcd3
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0x1c], 0
push esi
jne 0x57dd02
push str.cannot_VACUUM_from_within_a_transaction
mov esi, dword [ebp + 8]
push ebx
call fcn.0056dde4
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x57dff9
cmp dword [ebx + 0x8c], 1
jle 0x57dd12
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x57dcef
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0x98]
and dword [ebx + 0x98], 0
mov esi, dword [eax + 4]
mov eax, dword [esi + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xe]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push str.ATTACH_:memory:_AS_vacuum_db_
mov edi, ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], esi
call fcn.0057dc0a
mov edi, eax
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0xc]
pop ecx
jle 0x57dd86
mov edx, dword [ebx + 8]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 0x10], ecx
test edi, edi
jne 0x57dfaa
mov ecx, dword [ebx + 8]
shl eax, 4
mov eax, dword [eax + ecx - 0xc]
mov dword [ebp - 4], eax
call fcn.005771c4
mov edi, esi
call fcn.00556fc8
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x24]
sub edi, dword [eax + 0x28]
mov eax, esi
mov dword [ebp - 0x18], edi
call fcn.0055702c
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x57ddc9
and dword [ebx + 0x24], 0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x24]
push 0
push edi
push dword [ebp - 4]
call fcn.0055d572
add esp, 0xc
test eax, eax
jne 0x57dffd
cmp dword [ebp - 0x14], eax
jne 0x57de02
push eax
mov eax, dword [ebx + 0x24]
push edi
push dword [ebp - 4]
call fcn.0055d572
add esp, 0xc
test eax, eax
jne 0x57dffd
cmp byte [ebx + 0x1e], 0
jne 0x57dffd
mov eax, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
mov edi, ebx
call fcn.0057dc0a
mov edi, eax
pop ecx
test edi, edi
jne 0x57dfaa
mov al, byte [ebx + 0x20]
test al, al
jl 0x57de32
movsx eax, al
jmp 0x57de39
mov eax, esi
call fcn.00557665
push eax
mov eax, dword [ebp - 4]
call fcn.00557614
mov eax, dword [ebp + 8]
mov edi, ebx
mov dword [esp], str.BEGIN_EXCLUSIVE_
call fcn.0057dc0a
mov edi, eax
pop ecx
test edi, edi
jne 0x57dfaa
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
push dword [ebp + 8]
mov eax, ebx
call fcn.0057dc63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x57dfaa
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 8]
mov eax, ebx
call fcn.0057dc63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x57dfaa
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 8]
mov eax, ebx
call fcn.0057dc63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x57dfaa
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
push dword [ebp + 8]
mov eax, ebx
call fcn.0057dc63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x57dfaa
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 8]
mov eax, ebx
call fcn.0057dc63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x57dfaa
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push dword [ebp + 8]
mov eax, ebx
call fcn.0057dc63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x57dfaa
mov eax, dword [ebp + 8]
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_
mov edi, ebx
call fcn.0057dc0a
mov edi, eax
pop ecx
test edi, edi
jne 0x57dfaa
mov dword [ebp - 0xc], edi
jmp 0x57df22
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [edi + 0x6780ac]
push eax
mov eax, esi
call fcn.005578c1
movzx eax, byte [edi + 0x6780ad]
add eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
push eax
movzx eax, byte [edi + 0x6780ac]
push eax
call fcn.0056b05c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x57dfa7
add dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 8
jl 0x57df1f
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.00578ce1
mov edi, eax
test edi, edi
jne 0x57dfa5
mov eax, esi
call fcn.005771c4
mov edi, eax
test edi, edi
jne 0x57dfa5
mov eax, esi
call fcn.00557665
push eax
mov eax, ebx
call fcn.00557614
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x24]
push 1
push dword [ebp - 0x18]
push ebx
call fcn.0055d572
add esp, 0x10
mov edi, eax
mov esi, ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x98], eax
push 1
or eax, 0xffffffff
push eax
push esi
call fcn.0055d572
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov byte [ebx + 0x1c], 1
test esi, esi
je 0x57dfef
mov eax, dword [esi + 4]
call fcn.0057a220
and dword [esi + 4], 0
and dword [esi + 0xc], 0
xor eax, eax
call fcn.0056501c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push 7
pop edi
jmp 0x57dfaa