Function at 0x4c8350
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
push edi
lea edi, [ebp - 0x16c]
mov ecx, 0x5b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x4c83ad
push str.cannot_VACUUM_from_within_a_transaction
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a2bf0
add esp, 0xc
mov eax, 1
jmp 0x4c885b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x8c], 1
jle 0x4c83d8
push str.cannot_VACUUM___SQL_statements_in_progress
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a2bf0
add esp, 0xc
mov eax, 1
jmp 0x4c885b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
or ecx, 0x10050000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
and ecx, 0xfaffffff
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x98], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048e720
add esp, 4
push eax
call fcn.0049d670
add esp, 4
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00501990
add esp, 4
test eax, eax
je 0x4c8479
mov dword [ebp - 0x2c], str.ATTACH_:memory:_AS_vacuum_db_
jmp 0x4c8480
mov dword [ebp - 0x2c], str.ATTACH__AS_vacuum_db_
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c8c50
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x8c]
jle 0x4c84ba
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, 1
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 8]
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 8], 0
je 0x4c84c5
jmp 0x4c87e1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, 1
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004c6510
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.004c88a0
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048e720
add esp, 4
push eax
call fcn.00495710
add esp, 4
cmp eax, 5
jne 0x4c851d
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x24], 0
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0048f470
add esp, 4
push eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.0048ec80
add esp, 0x10
test eax, eax
jne 0x4c856e
cmp dword [ebp - 0x74], 0
jne 0x4c8563
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048ec80
add esp, 0x10
test eax, eax
jne 0x4c856e
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1e]
test ecx, ecx
je 0x4c857a
mov dword [ebp - 8], 7
jmp 0x4c87e1
push str.PRAGMA_vacuum_db.synchronousOFF
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8c50
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c859d
jmp 0x4c87e1
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x20]
test ecx, ecx
jl 0x4c85b7
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x20]
mov dword [ebp - 0x16c], eax
jmp 0x4c85c9
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004c89c0
add esp, 4
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004c8910
add esp, 8
push str.BEGIN_EXCLUSIVE_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8c50
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c85ff
jmp 0x4c87e1
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 + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8da0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c8622
jmp 0x4c87e1
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8da0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c8645
jmp 0x4c87e1
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8da0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c8668
jmp 0x4c87e1
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
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8da0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c868b
jmp 0x4c87e1
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8da0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c86ae
jmp 0x4c87e1
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8da0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c86d1
jmp 0x4c87e1
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 eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c8c50
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c86f4
jmp 0x4c87e1
mov dword [ebp - 0xa4], 0
jmp 0x4c870f
mov eax, dword [ebp - 0xa4]
add eax, 2
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 8
jge 0x4c8774
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0xa4]
movzx edx, byte [ecx + 0x51b724]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0049d160
add esp, 0xc
mov eax, dword [ebp - 0xa4]
movzx ecx, byte [eax + 0x51b725]
add ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0xa4]
movzx eax, byte [edx + 0x51b724]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0049d1e0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c8772
jmp 0x4c87e1
jmp 0x4c8700
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004c8a50
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c878f
jmp 0x4c87e1
mov eax, dword [ebp - 0x20]
push eax
call fcn.004c6510
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c87a6
jmp 0x4c87e1
mov eax, dword [ebp - 0x20]
push eax
call fcn.004c89c0
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004c8910
add esp, 8
push 1
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0048f470
add esp, 4
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0048ec80
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x98], ecx
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call fcn.0048ec80
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x1c], 1
cmp dword [ebp - 0x68], 0
je 0x4c884a
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 4]
push ecx
call fcn.004a05e0
add esp, 4
mov eax, dword [ebp - 0x68]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x68]
mov dword [eax + 0xc], 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c1390
add esp, 8
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4c8880]
call fcn.00504c1c
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x16c
cmp ebp, esp
call fcn.00504bf9
mov esp, ebp
pop ebp
ret