Function at 0x44501e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0x3e], 0
push edi
jne 0x44504c
push str.cannot_VACUUM_from_within_a_transaction
mov edi, dword [ebp + 8]
push esi
call fcn.0040c632
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x445360
cmp dword [esi + 0x8c], 1
jle 0x44505c
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x445039
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
and eax, 0xfffaffff
or eax, 0x100500
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xa0]
and dword [esi + 0xa0], 0
cmp byte [esi + 0x3f], 2
mov edi, dword [eax + 4]
mov eax, dword [edi + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xe]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], ecx
mov eax, str.ATTACH_:memory:_AS_vacuum_db_
je 0x4450b3
mov eax, str.ATTACH__AS_vacuum_db_
push eax
mov eax, dword [ebp + 8]
call fcn.00444f4f
mov ebx, eax
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, dword [ebp - 8]
jle 0x4450d5
mov edx, dword [esi + 0x10]
mov ecx, eax
add ecx, ecx
lea ecx, [edx + ecx*8 - 0x10]
mov dword [ebp - 0xc], ecx
test ebx, ebx
jne 0x445311
mov ecx, dword [esi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8 - 0xc]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00419fe8
mov eax, edi
call fcn.00417a97
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x24]
mov esi, edi
mov dword [ebp - 8], ecx
call fcn.00417b1f
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push str.PRAGMA_vacuum_db.synchronousOFF
call fcn.00444f4f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x44530e
mov eax, dword [ebp + 8]
push str.BEGIN_
call fcn.00444f4f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x44530e
push 2
call fcn.004196c2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x44530e
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
mov ebx, esi
jne 0x445160
and dword [ebx + 0x48], 0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
xor esi, esi
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041929d
add esp, 0xc
test eax, eax
jne 0x44530b
cmp dword [ebp - 0x10], esi
jne 0x44519e
mov eax, dword [ebx + 0x48]
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041929d
add esp, 0xc
test eax, eax
jne 0x44530b
cmp byte [ebx + 0x40], 0
jne 0x44530b
mov al, byte [ebx + 0x42]
test al, al
js 0x4451b4
movsx eax, al
jmp 0x4451bb
mov eax, edi
call fcn.004193b8
push eax
mov eax, dword [ebp - 4]
call fcn.0041936c
mov esi, dword [ebp + 8]
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 esi
push ebx
call fcn.00444fa9
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x44530e
push str.SELECT_CREATE_INDEX_vacuum_db.__substr_sql_14___FROM_sqlite_master_WHERE_sql_LIKE_CREATE_INDEX__
push esi
push dword [ebp + 0xc]
call fcn.00444fa9
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x44530e
push str.SELECT_CREATE_UNIQUE_INDEX_vacuum_db.__substr_sql_21____FROM_sqlite_master_WHERE_sql_LIKE_CREATE_UNIQUE_INDEX__
push esi
push dword [ebp + 0xc]
call fcn.00444fa9
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x44530e
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 esi
push dword [ebp + 0xc]
call fcn.00444fa9
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x44530e
push str.SELECT_DELETE_FROM_vacuum_db.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence
push esi
push dword [ebp + 0xc]
call fcn.00444fa9
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x44530e
push str.SELECT_INSERT_INTO_vacuum_db.__quote_name____SELECT__FROM_main.__quote_name_____FROM_vacuum_db.sqlite_master_WHERE_namesqlite_sequence_
push esi
push dword [ebp + 0xc]
call fcn.00444fa9
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x44530e
mov eax, esi
mov esi, dword [ebp + 0xc]
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.00444f4f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x44530e
xor esi, esi
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [esi + 0x468648]
push eax
mov eax, edi
call fcn.0041d3bd
movzx eax, byte [esi + 0x468649]
add eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
push eax
movzx eax, byte [esi + 0x468648]
push eax
call fcn.0041d3ec
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x44530e
add esi, 2
cmp esi, 0xa
jl 0x445285
mov esi, dword [ebp - 4]
push edi
mov eax, esi
call fcn.0041ecef
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x44530e
mov ebx, esi
call fcn.00419fe8
mov ebx, eax
test ebx, ebx
jne 0x44530e
mov eax, esi
call fcn.004193b8
push eax
mov eax, edi
call fcn.0041936c
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
pop ecx
push 1
push dword [ebp - 8]
push edi
call fcn.0041929d
add esp, 0xc
mov ebx, eax
jmp 0x44530e
push 7
pop ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xa0], eax
push 1
or eax, 0xffffffff
push eax
push edi
call fcn.0041929d
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov byte [esi + 0x3e], 1
test edi, edi
je 0x445357
push dword [edi + 4]
call fcn.00419127
and dword [edi + 4], 0
and dword [edi + 0xc], 0
pop ecx
mov eax, esi
call fcn.00431a98
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret