Function at 0x482928
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0x10], 0
push esi
mov esi, eax
cmp byte [esi + 0x36], 0
push edi
jne 0x482954
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.0046794f
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x482c77
cmp dword [esi + 0x84], 1
jle 0x482964
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x482941
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
and eax, 0xfffaffff
or eax, 0x100500
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 0x98]
and dword [esi + 0x98], 0
cmp byte [esi + 0x37], 2
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xe]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x4829bb
mov eax, str.ATTACH__AS_vacuum_db_
push ebx
push eax
mov eax, dword [ebp + 8]
call fcn.0048285b
mov ebx, eax
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, edi
jle 0x4829dd
mov edx, dword [esi + 0x10]
mov ecx, eax
add ecx, ecx
lea ecx, [edx + ecx*8 - 0x10]
mov dword [ebp - 0x10], ecx
xor edi, edi
cmp ebx, edi
jne 0x482c25
mov ecx, dword [esi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov dword [ebp - 8], eax
call fcn.0047e96e
mov eax, dword [ebp - 4]
call fcn.00453827
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x40], edi
je 0x482a22
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
call fcn.004596c1
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x482a22
mov dword [esi + 0x40], edi
mov eax, dword [ebp + 8]
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.0048285b
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x482c25
mov eax, dword [ebp + 8]
push str.BEGIN_
call fcn.0048285b
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x482c25
push 2
push dword [ebp - 4]
call fcn.0047e712
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jne 0x482c25
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x482a79
mov dword [esi + 0x40], edi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x20]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0045c087
add esp, 0xc
test eax, eax
jne 0x482c22
cmp dword [ebp - 0x18], edi
jne 0x482ab5
mov eax, dword [esi + 0x40]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0045c087
add esp, 0xc
test eax, eax
jne 0x482c22
cmp byte [esi + 0x38], 0
jne 0x482c22
mov al, byte [esi + 0x3a]
test al, al
js 0x482acb
movsx eax, al
jmp 0x482ad2
mov eax, ebx
call fcn.00453903
push eax
mov eax, dword [ebp - 8]
call fcn.004538b7
mov dword [esp], 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]
push esi
call fcn.004828b4
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x482c25
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push dword [ebp + 8]
push esi
call fcn.004828b4
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x482c25
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push dword [ebp + 8]
push esi
call fcn.004828b4
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x482c25
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]
push esi
call fcn.004828b4
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x482c25
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push dword [ebp + 8]
push esi
call fcn.004828b4
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x482c25
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]
push esi
call fcn.004828b4
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x482c25
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_
call fcn.0048285b
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x482c25
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [edi + 0x59e214]
push eax
mov eax, dword [ebp - 4]
call fcn.00453dd3
movzx eax, byte [edi + 0x59e215]
add eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
push eax
movzx eax, byte [edi + 0x59e214]
push eax
call fcn.004796d1
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x482c25
add edi, 2
cmp edi, 8
jl 0x482b97
mov edi, dword [ebp - 8]
push dword [ebp - 4]
mov eax, edi
call fcn.00480ad4
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x482c25
mov eax, edi
call fcn.0047e96e
mov ebx, eax
test ebx, ebx
jne 0x482c25
mov eax, edi
call fcn.00453903
push eax
mov eax, dword [ebp - 4]
call fcn.004538b7
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
push 1
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0045c087
add esp, 0x10
mov ebx, eax
jmp 0x482c25
push 7
pop ebx
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x98], eax
push 1
or eax, 0xffffffff
push eax
push dword [ebp - 4]
call fcn.0045c087
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov byte [esi + 0x36], 1
test edi, edi
je 0x482c6d
push dword [edi + 4]
call fcn.0047fd26
and dword [edi + 4], 0
and dword [edi + 0xc], 0
pop ecx
mov eax, esi
call fcn.0046a483
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret