Function at 0x58b7a0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
xor ecx, ecx
cmp byte [ebp + 0x1c], cl
push esi
push edi
mov edi, eax
mov dword [esp + 0x18], ecx
jne 0x58b7d4
push str.cannot_VACUUM_from_within_a_transaction
mov eax, ebp
call fcn.00543800
mov eax, 1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [ebp + 0x8c], 1
jle 0x58b7f9
push str.cannot_VACUUM___SQL_statements_in_progress
mov eax, ebp
call fcn.00543800
mov eax, 1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x20], eax
and eax, 0xfaffffff
or eax, 0x10050000
cmp byte [ebp + 0x1d], 2
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x98]
mov dword [ebp + 0x98], ecx
mov ebx, dword [eax + 4]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
movzx eax, byte [edx + 0xe]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x58b855
mov eax, str.ATTACH__AS_vacuum_db_
push edi
mov esi, ebp
call fcn.0058b560
mov esi, eax
mov eax, dword [ebp + 4]
add esp, 4
cmp eax, dword [esp + 0x34]
jle 0x58b87b
mov ecx, dword [ebp + 8]
mov edx, eax
shl edx, 4
lea edx, [edx + ecx - 0x10]
mov dword [esp + 0x18], edx
test esi, esi
jne 0x58ba96
mov ecx, dword [ebp + 8]
shl eax, 4
mov esi, dword [eax + ecx - 0xc]
mov eax, esi
mov dword [esp + 0x34], esi
call fcn.00554760
mov eax, ebx
call fcn.00553050
mov edx, dword [ebx + 4]
mov ecx, eax
mov eax, dword [edx]
cmp byte [eax + 5], 5
mov dword [esp + 0x14], ecx
jne 0x58b8b7
mov dword [ebp + 0x24], 0
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x24]
push 0
push ecx
push esi
call fcn.00552f70
add esp, 0xc
test eax, eax
jne 0x58ba91
cmp dword [esp + 0x1c], eax
jne 0x58b8f1
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x24]
push esi
call fcn.00552f70
add esp, 0xc
test eax, eax
jne 0x58ba91
cmp byte [ebp + 0x1e], 0
jne 0x58ba91
push edi
mov eax, str.PRAGMA_vacuum_db.synchronousOFF
mov esi, ebp
call fcn.0058b560
mov esi, eax
add esp, 4
test esi, esi
jne 0x58ba96
mov al, byte [ebp + 0x20]
test al, al
jl 0x58b921
movsx eax, al
jmp 0x58b928
mov eax, ebx
call fcn.005531a0
push eax
mov eax, dword [esp + 0x38]
call fcn.00553130
add esp, 4
push edi
mov eax, str.BEGIN_EXCLUSIVE_
mov esi, ebp
call fcn.0058b560
mov esi, eax
add esp, 4
test esi, esi
jne 0x58ba96
push edi
push ebp
mov eax, str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.0058b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x58ba96
push edi
push ebp
mov eax, str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.0058b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x58ba96
push edi
push ebp
mov eax, str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.0058b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x58ba96
push edi
push ebp
mov eax, 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
call fcn.0058b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x58ba96
push edi
push ebp
mov eax, str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.0058b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x58ba96
push edi
push ebp
mov eax, str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.0058b5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x58ba96
push edi
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 esi, ebp
call fcn.0058b560
mov esi, eax
add esp, 4
test esi, esi
jne 0x58ba96
xor edi, edi
movzx edx, byte [edi + 0x618988]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov eax, ebx
call fcn.00558d50
movzx eax, byte [edi + 0x618989]
add eax, dword [esp + 0x24]
movzx ecx, byte [edi + 0x618988]
push eax
mov eax, dword [esp + 0x40]
push ecx
call fcn.00558db0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x58ba96
add edi, 2
cmp edi, 8
jl 0x58ba01
mov edi, dword [esp + 0x34]
push ebx
mov esi, edi
call fcn.0055b5e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x58ba96
mov eax, edi
call fcn.00554760
mov esi, eax
test esi, esi
jne 0x58ba96
mov eax, edi
call fcn.005531a0
push eax
mov eax, ebx
call fcn.00553130
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x24]
add esp, 4
push 1
push ecx
push ebx
call fcn.00552f70
add esp, 0xc
mov esi, eax
jmp 0x58ba96
mov esi, 7
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push 1
mov dword [ebp + 0xc], edx
mov edx, dword [esp + 0x30]
mov dword [ebp + 0x3c], eax
push 0xffffffffffffffff
push ebx
or eax, 0xffffffff
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x98], edx
call fcn.00552f70
mov edi, dword [esp + 0x24]
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
mov byte [ebp + 0x1c], 1
je 0x58bae1
mov eax, dword [edi + 4]
call fcn.00552da0
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
push ebp
or eax, 0xffffffff
call fcn.005707f0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret