Function at 0x100e47b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 0x20], 0
cmp byte [esi + 0x43], 0
jne 0x100e47e4
push str.cannot_VACUUM_from_within_a_transaction
call fcn.10081600
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x9c], 1
jle 0x100e4806
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.10081600
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x58]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
and eax, 0xfff5ff7f
or eax, 0x10202800
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], edx
mov dl, byte [esi + 0x4c]
shl ebx, 4
mov byte [esi + 0x4c], 0
mov byte [ebp - 1], dl
mov dword [ebp + 8], ebx
mov edx, dword [eax + ebx]
mov ebx, dword [eax + ebx + 4]
mov dword [ebp - 0x10], edx
mov edx, ecx
push str.ATTACHAS_vacuum_db
mov ecx, esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
movzx eax, byte [eax + 0xd]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
call fcn.100e45c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100e4a98
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0xc], edi
call fcn.10096ba0
mov ecx, ebx
call fcn.10095980
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov edx, dword [ecx + edx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.10095740
xor edx, edx
mov ecx, ebx
call fcn.100957d0
mov edx, eax
mov ecx, edi
call fcn.100957d0
mov edx, 0x21
mov ecx, edi
call fcn.10095870
mov edx, dword [ebp - 8]
mov ecx, esi
push str.BEGIN
call fcn.100e45c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100e4a98
lea edx, [eax + 2]
mov ecx, ebx
call fcn.10095e30
mov edi, eax
test edi, edi
jne 0x100e4a98
mov eax, dword [ebx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x100e4908
mov dword [esi + 0x50], edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp - 0xc]
mov ecx, edi
push 0
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.100958b0
add esp, 8
test eax, eax
jne 0x100e4a8e
cmp dword [ebp - 0x24], eax
jne 0x100e4946
mov edx, dword [esi + 0x50]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.100958b0
add esp, 8
test eax, eax
jne 0x100e4a8e
cmp byte [esi + 0x45], 0
jne 0x100e4a8e
mov al, byte [esi + 0x48]
test al, al
js 0x100e495c
movsx eax, al
jmp 0x100e4963
mov ecx, ebx
call fcn.10095af0
mov edx, eax
mov ecx, edi
call fcn.10095a80
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 8]
mov byte [esi + 0x98], al
push esi
call fcn.100e4690
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e4a98
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
push dword [ebp - 8]
push esi
call fcn.100e4690
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e4a98
push dword [ebp - 0x10]
mov byte [esi + 0x98], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp - 8]
push esi
call fcn.100e4690
and dword [esi + 0x18], 0xefffffff
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e4a98
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 8]
push esi
call fcn.100e4690
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100e4a98
xor ebx, ebx
lea esp, [esp]
movzx edx, byte [ebx + 0x1017d184]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.1009c330
movzx eax, byte [ebx + 0x1017d185]
add esp, 4
add eax, dword [ebp - 0x24]
movzx edx, byte [ebx + 0x1017d184]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.1009c390
mov edi, eax
add esp, 4
test edi, edi
jne 0x100e4a95
add ebx, 2
cmp ebx, 0xa
jl 0x100e4a00
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
call fcn.1009e430
mov edi, eax
test edi, edi
jne 0x100e4a98
mov ecx, dword [ebp - 0xc]
call fcn.10096ba0
mov edi, eax
test edi, edi
jne 0x100e4a98
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.10095af0
mov edx, eax
mov ecx, ebx
call fcn.10095a80
mov eax, dword [edi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.100958b0
add esp, 8
mov edi, eax
jmp 0x100e4a98
mov edi, 7
jmp 0x100e4a98
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x5c], eax
mov al, byte [ebp - 1]
push 1
push 0xffffffffffffffff
mov byte [esi + 0x98], 0
mov byte [esi + 0x4c], al
call fcn.100958b0
mov ebx, dword [ebp - 0x20]
add esp, 8
mov byte [esi + 0x43], 1
test ebx, ebx
je 0x100e4ae9
mov ecx, dword [ebx + 4]
call fcn.10095660
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.100bec50
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret