Function at 0x49d090
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x49d0d8
push str.cannot_VACUUM_from_within_a_transaction
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049f340
add esp, 0xc
mov eax, 1
jmp 0x49d498
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
or ecx, 0x2800
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov eax, 0x18
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00486450
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00496920
add esp, 4
cmp dword [eax], 0
jne 0x49d143
mov dword [ebp - 0x78], 1
jmp 0x49d14a
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], str.ATTACH__AS_vacuum_db_
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046da50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d175
jmp 0x49d43c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, 1
imul ecx, ecx, 0x18
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 8]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, 1
imul ecx, ecx, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
push eax
call fcn.004843c0
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004843a0
add esp, 4
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00486e80
add esp, 0x10
test eax, eax
jne 0x49d203
cmp dword [ebp - 0x28], 0
jne 0x49d1f8
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00486e80
add esp, 0x10
test eax, eax
jne 0x49d203
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x49d20f
mov dword [ebp - 4], 7
jmp 0x49d43c
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046da50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d22e
jmp 0x49d43c
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x21]
test ecx, ecx
jl 0x49d245
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x21]
mov dword [ebp - 0x78], eax
jmp 0x49d254
mov ecx, dword [ebp - 8]
push ecx
call fcn.00484140
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00486d20
add esp, 8
push str.BEGIN_EXCLUSIVE_
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046da50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d283
jmp 0x49d43c
push str.SELECT_CREATE_TABLE_vacuum_db.__substr_sql_14____FROM_sqlite_master_WHERE_typetable_AND_name_sqlite_sequence___AND_rootpage_0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046d9c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d2a2
jmp 0x49d43c
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046d9c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d2c1
jmp 0x49d43c
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046d9c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d2e0
jmp 0x49d43c
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name____FROM_sqlite_master_WHERE_type__table_AND_name_sqlite_sequence___AND_rootpage_0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046d9c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d2ff
jmp 0x49d43c
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046d9c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d31e
jmp 0x49d43c
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM___quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046d9c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d33d
jmp 0x49d43c
push str.INSERT_INTO_vacuum_db.sqlite_master___SELECT_type__name__tbl_name__rootpage__sql____FROM_sqlite_master___WHERE_typeview_OR_typetrigger______OR__typetable_AND_rootpage0_
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046da50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d35c
jmp 0x49d43c
mov dword [ebp - 0x34], 0
jmp 0x49d36e
mov eax, dword [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 8
jge 0x49d3cf
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x55ead0]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00484230
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d39d
jmp 0x49d43c
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax + 0x55ead1]
add ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
movzx eax, byte [edx + 0x55ead0]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004870c0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d3cd
jmp 0x49d43c
jmp 0x49d365
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00483300
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d3ea
jmp 0x49d43c
mov eax, dword [ebp - 0x10]
push eax
call fcn.00483140
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d401
jmp 0x49d43c
mov eax, dword [ebp - 0x10]
push eax
call fcn.00484140
add esp, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00486d20
add esp, 8
push 1
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004843a0
add esp, 4
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.00486e80
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x44], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x48], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x1c], 1
cmp dword [ebp - 0x24], 0
je 0x49d487
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.00482f30
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049c030
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret