Function at 0x465060
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
cmp byte [edi + 0x1c], al
jne 0x46509e
push str.cannot_VACUUM_from_within_a_transaction
push edi
push esi
call fcn.0040b1b0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x8c], 1
jle 0x4650c2
push str.cannot_VACUUM___SQL_statements_in_progress
push edi
push esi
call fcn.0040b1b0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc]
mov edx, str.ATTACH__AS_vacuum_db_
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x28], eax
and eax, 0xfaffffff
or eax, 0x10050000
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x40]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
cmp byte [edi + 0x1d], 2
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x98]
mov dword [edi + 0x98], 0
mov ebx, dword [eax + 4]
push 0
mov dword [esp + 0x38], ecx
mov ecx, edi
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov al, byte [eax + 0xe]
mov byte [esp + 0x13], al
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 0
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
push 0
push 0xffffffffffffffff
cmove edx, eax
call fcn.00457bd0
add esp, 0x14
test eax, eax
je 0x46515f
push edi
call fcn.00474410
add esp, 4
push eax
push edi
push esi
call fcn.0040b1b0
add esp, 0xc
push edi
call fcn.004745e0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x46517f
mov esi, dword [esp + 0x20]
push esi
call fcn.00429a40
add esp, 4
mov edx, esi
mov ecx, edi
push dword [esp + 0x14]
call fcn.00464ed0
mov esi, eax
mov dword [esp + 0x14], eax
mov edx, dword [edi + 4]
add esp, 4
cmp edx, dword [esp + 0x1c]
jle 0x46519c
mov eax, dword [edi + 8]
mov ecx, edx
shl ecx, 4
add eax, 0xfffffff0
add eax, ecx
mov dword [esp + 0x24], eax
test esi, esi
jne 0x465670
mov eax, dword [edi + 8]
add edx, edx
mov esi, dword [eax + edx*8 - 0xc]
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.00419ba0
xor edx, edx
mov ecx, esi
call fcn.0041ca00
test eax, eax
jne 0x4651ce
xor edx, edx
mov ecx, esi
call fcn.0041cbe0
cmp byte [esi + 9], 0
je 0x4651f2
add dword [esi + 0xc], 0xffffffff
jne 0x4651f2
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x4651ee
push eax
call dword [0x4831c4]
add esp, 4
mov byte [esi + 0xa], 0
mov ecx, ebx
call fcn.00419ba0
mov eax, dword [ebx + 4]
mov edx, eax
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x28]
cmp byte [ebx + 9], 0
mov dword [esp + 0x20], ecx
je 0x465230
add dword [ebx + 0xc], 0xffffffff
jne 0x465230
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x465228
push ecx
call dword [0x4831c4]
mov edx, dword [ebx + 4]
add esp, 4
mov ecx, dword [esp + 0x20]
mov byte [ebx + 0xa], 0
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x465242
mov dword [edi + 0x24], 0
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x24]
push 0
push ecx
mov ecx, esi
call fcn.0041b640
add esp, 8
test eax, eax
jne 0x4656cd
cmp byte [esp + 0xf], al
jne 0x46527a
mov edx, dword [edi + 0x24]
mov ecx, esi
push eax
push dword [esp + 0x24]
call fcn.0041b640
add esp, 8
test eax, eax
jne 0x4656cd
cmp byte [edi + 0x1e], 0
jne 0x4656cd
push 0
lea eax, [esp + 0x14]
mov edx, str.PRAGMA_vacuum_db.synchronousOFF
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.00457bd0
add esp, 0x14
test eax, eax
je 0x4652c9
push edi
call fcn.00474410
add esp, 4
push eax
push edi
push dword [esp + 0x1c]
call fcn.0040b1b0
add esp, 0xc
push edi
call fcn.004745e0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x4652e9
mov esi, dword [esp + 0x10]
push esi
call fcn.00429a40
add esp, 4
mov edx, esi
mov ecx, edi
push dword [esp + 0x14]
call fcn.00464ed0
mov esi, eax
mov dword [esp + 0x14], eax
add esp, 4
test esi, esi
jne 0x465670
mov al, byte [edi + 0x20]
test al, al
js 0x465300
movsx esi, al
jmp 0x465344
mov ecx, ebx
call fcn.00419ba0
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0x15], 0
jne 0x465314
xor esi, esi
jmp 0x465323
xor eax, eax
cmp byte [ecx + 0x16], al
setne al
inc eax
mov dword [esp + 0x10], eax
mov esi, eax
cmp byte [ebx + 9], 0
je 0x465344
add dword [ebx + 0xc], 0xffffffff
jne 0x465344
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x465340
push eax
call dword [0x4831c4]
add esp, 4
mov byte [ebx + 0xa], 0
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.0041b770
push 0
lea eax, [esp + 0x14]
mov edx, str.BEGIN_EXCLUSIVE_
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.00457bd0
add esp, 0x14
test eax, eax
je 0x465394
push edi
call fcn.00474410
add esp, 4
push eax
push edi
push dword [esp + 0x1c]
call fcn.0040b1b0
add esp, 0xc
push edi
call fcn.004745e0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x4653b4
mov esi, dword [esp + 0x10]
push esi
call fcn.00429a40
add esp, 4
mov edx, esi
mov ecx, edi
push dword [esp + 0x14]
call fcn.00464ed0
mov esi, eax
mov dword [esp + 0x14], eax
add esp, 4
test esi, esi
jne 0x465670
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
call fcn.00464f60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x465670
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
call fcn.00464f60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x465670
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
call fcn.00464f60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x465670
mov edx, dword [esp + 0x14]
mov ecx, edi
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
call fcn.00464f60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x465670
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
call fcn.00464f60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x465670
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
call fcn.00464f60
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x465670
push eax
lea eax, [esp + 0x14]
mov edx, 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_
push eax
push esi
push esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.00457bd0
add esp, 0x14
test eax, eax
je 0x4654c7
push edi
call fcn.00474410
add esp, 4
push eax
push edi
push dword [esp + 0x1c]
call fcn.0040b1b0
add esp, 0xc
push edi
call fcn.004745e0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x4654e7
mov esi, dword [esp + 0x10]
push esi
call fcn.00429a40
add esp, 4
mov edx, esi
mov ecx, edi
push dword [esp + 0x14]
call fcn.00464ed0
mov esi, eax
mov dword [esp + 0x14], eax
add esp, 4
test esi, esi
jne 0x465670
xor edi, edi
mov dword [esp + 0x14], edi
nop dword [eax + eax]
movzx edi, byte [edi + 0x47882c]
mov ecx, ebx
mov esi, dword [ebx + 4]
call fcn.00419ba0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x40]
movzx esi, byte [eax + edi*4 + 0x24]
lea ecx, [eax + edi*4]
movzx eax, byte [ecx + 0x25]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x26]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x27]
shl esi, 8
or esi, eax
cmp byte [ebx + 9], 0
je 0x46555e
add dword [ebx + 0xc], 0xffffffff
jne 0x46555e
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x46555a
push eax
call dword [0x4831c4]
add esp, 4
mov byte [ebx + 0xa], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
movzx eax, byte [edi + 0x47882d]
movzx edx, byte [edi + 0x47882c]
add eax, esi
push eax
call fcn.00421bb0
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x46566c
add edi, 2
mov dword [esp + 0x14], edi
cmp edi, 8
jl 0x465500
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, edi
call fcn.00423de0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x46566c
mov ecx, edi
call fcn.00419ba0
xor edx, edx
mov ecx, edi
call fcn.0041ca00
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x4655e1
xor edx, edx
mov ecx, edi
call fcn.0041cbe0
mov esi, eax
mov dword [esp + 0x10], eax
cmp byte [edi + 9], 0
je 0x465605
add dword [edi + 0xc], 0xffffffff
jne 0x465605
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x465601
push eax
call dword [0x4831c4]
add esp, 4
mov byte [edi + 0xa], 0
test esi, esi
jne 0x46566c
mov ecx, edi
call fcn.00419ba0
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x15], 0
je 0x465628
xor eax, eax
cmp byte [ecx + 0x16], al
setne al
inc eax
mov dword [esp + 0x1c], eax
mov esi, eax
cmp byte [edi + 9], 0
je 0x465649
add dword [edi + 0xc], 0xffffffff
jne 0x465649
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x465645
push eax
call dword [0x4831c4]
add esp, 4
mov byte [edi + 0xa], 0
mov edx, esi
mov ecx, ebx
call fcn.0041b770
mov eax, dword [edi + 4]
mov ecx, ebx
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.0041b640
add esp, 8
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x98], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
call fcn.00419ba0
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x11], 0
je 0x4656d7
cmp byte [ebx + 9], 0
je 0x465727
add dword [ebx + 0xc], 0xffffffff
jne 0x465727
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x4656c7
push eax
call dword [0x4831c4]
add esp, 4
mov byte [ebx + 0xa], 0
jmp 0x465727
mov dword [esp + 0x10], 7
jmp 0x465670
mov esi, dword [eax + 0x24]
lea edi, [eax + 0x24]
sub esi, dword [eax + 0x28]
mov edx, edi
mov ecx, dword [eax]
push esi
call fcn.00414d40
mov ecx, dword [edi]
add esp, 4
movzx eax, si
sub ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax + 0x28], ecx
mov byte [eax + 0x11], 1
cmp byte [ebx + 9], 0
je 0x465723
add dword [ebx + 0xc], 0xffffffff
jne 0x465723
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x46571f
push eax
call dword [0x4831c4]
add esp, 4
mov byte [ebx + 0xa], 0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov byte [edi + 0x1c], 1
test ebx, ebx
je 0x465749
mov ecx, dword [ebx + 4]
call fcn.0041b4d0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
or edx, 0xffffffff
mov ecx, edi
call fcn.004407a0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret