Function at 0x10091a90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, edx
mov dword [esp + 0x24], 0
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
cmp byte [esi + 0x4f], 0
jne 0x10091af1
mov edx, dword [ebx]
test edx, edx
je 0x10091abf
mov ecx, esi
call fcn.1002a220
push 0
push 0x28
mov ecx, esi
call fcn.1002a520
mov esi, eax
add esp, 8
test esi, esi
je 0x10091ae3
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.101d3050
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x10091b24
mov edx, dword [ebx]
test edx, edx
je 0x10091b07
mov ecx, esi
call fcn.1002a220
push 0
push 0x2b
mov ecx, esi
call fcn.1002a520
mov esi, eax
add esp, 8
test esi, esi
je 0x10091ae3
push 0x2b
push str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x10091ada
mov edx, dword [ebp + 0xc]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x20], edi
test edx, edx
je 0x10091bdc
movzx ecx, word [edx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x103d9f50], 3
je 0x10091b8a
mov edx, dword [ebx]
test edx, edx
je 0x10091b55
mov ecx, esi
call fcn.1002a220
push 0
push 0x12
mov ecx, esi
call fcn.1002a520
add esp, 8
test eax, eax
je 0x10091b7c
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x103dea54]
mov word [eax + 0x10], cx
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x10091bae
cmp byte [edx + 0xa], 1
jne 0x10091bae
mov edx, dword [edx + 0x10]
mov eax, edi
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x10091be1
test cl, 1
je 0x10091bc2
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x10091be1
mov ecx, dword [ebp + 0xc]
mov dl, 1
call fcn.10048ec0
mov edx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x10091be1
mov edx, 0x103d28b0
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x34], eax
or eax, 6
mov dword [esp + 0x3c], edi
and edi, 0xfffffffe
mov dword [esi + 0x24], edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], ecx
and ecx, 0xefffafff
mov dword [esp + 0x40], ebx
or ecx, 0x201
mov ebx, dword [esi + 0x68]
shl edi, 4
mov dword [esi + 0x20], ecx
mov dword [esp + 0x44], ebx
mov bl, byte [esi + 0x58]
mov byte [esi + 0x58], 0
mov ecx, dword [edi + eax]
mov dword [esp + 0x30], edi
mov edi, dword [edi + eax + 4]
push edx
push str.ATTACH__Q_AS_vacuum_db
mov byte [esp + 0x1b], bl
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
push ebx
push esi
mov eax, dword [eax]
mov dword [esp + 0x2c], ecx
mov al, byte [eax + 0xc]
mov byte [esp + 0x22], al
mov eax, dword [esi + 0x14]
mov dword [esp + 0x34], eax
call fcn.10091960
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x10091fd0
mov eax, dword [esp + 0x24]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x28], eax
mov ebx, dword [eax + 4]
mov dword [esp + 0x18], ebx
je 0x10091d1f
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x48], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x10091d1b
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x10091cd0
cmp dword [esp + 0x4c], eax
jl 0x10091d1b
jg 0x10091cd0
cmp dword [esp + 0x48], eax
jbe 0x10091d1b
mov eax, dword [esp + 0x14]
mov ebx, 1
mov edx, dword [eax]
test edx, edx
je 0x10091ce6
mov ecx, esi
call fcn.1002a220
push 0
push 0x1b
mov ecx, esi
call fcn.1002a520
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x10091d0c
push 0x1b
push str.output_file_already_exists
push eax
call fcn.101d3050
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
jmp 0x10091fd0
or dword [esi + 0x18], 8
mov ecx, edi
call fcn.1003e590
cmp dword [esi + 0x5c], 0
mov dword [esp + 0x20], eax
je 0x10091d55
mov edx, dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.100aaca0
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x10091d55
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov edx, dword [esp + 0x30]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.1003e260
xor edx, edx
mov ecx, edi
call fcn.1003e2e0
mov edx, eax
mov ecx, ebx
call fcn.1003e2e0
mov edx, 0x21
mov ecx, ebx
call fcn.1003e3e0
mov edx, dword [esp + 0x14]
mov ecx, esi
push str.BEGIN
call fcn.10091880
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10091fd0
xor edx, edx
mov ecx, edi
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.1003eb60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10091fd0
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10091dd8
mov dword [esi + 0x5c], ebx
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [edx + 0x24]
push 0
push dword [esp + 0x24]
call fcn.1003e4b0
add esp, 8
test eax, eax
jne 0x10091fcb
cmp byte [esp + 0x12], al
jne 0x10091e17
mov edx, dword [esi + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.1003e4b0
add esp, 8
test eax, eax
jne 0x10091fcb
cmp byte [esi + 0x51], 0
jne 0x10091fcb
mov al, byte [esi + 0x54]
test al, al
js 0x10091e2d
movsx eax, al
jmp 0x10091e34
mov ecx, edi
call fcn.1003e720
mov edx, eax
mov ecx, ebx
call fcn.1003e6a0
push dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [esi + 0xa4], al
push esi
call fcn.10091960
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10091fd0
push dword [esp + 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x1c]
push esi
call fcn.10091960
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10091fd0
push dword [esp + 0x1c]
mov byte [esi + 0xa4], 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 [esp + 0x1c]
push esi
call fcn.10091960
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10091fd0
push dword [esp + 0x1c]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x1c]
push esi
call fcn.10091960
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10091fd0
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x103d6544]
mov eax, dword [edi + 4]
mov dword [esp + 0x30], eax
test cl, cl
je 0x10091f0c
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10091f0c
mov ecx, edi
call fcn.1003bce0
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x30]
cmp ebx, 0xf
jne 0x10091f1b
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [edi + 0x14]
jmp 0x10091f27
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x10091f38
add dword [edi + 0xc], 0xffffffff
jne 0x10091f38
mov ecx, edi
call fcn.1003bca0
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ecx + 0x103d6545]
movzx edx, byte [ecx + 0x103d6544]
add eax, ebx
mov ecx, dword [esp + 0x18]
push eax
call fcn.10045c00
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10091fd0
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x10091ee0
cmp dword [ebp + 0xc], ebx
jne 0x10091f89
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.10047aa0
mov ebx, eax
test ebx, ebx
jne 0x10091fd0
mov ecx, dword [esp + 0x18]
call fcn.1003fb00
mov ebx, eax
test ebx, ebx
jne 0x10091fd0
cmp dword [ebp + 0xc], eax
jne 0x10091fd0
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.1003e720
mov edx, eax
mov ecx, edi
call fcn.1003e6a0
mov eax, dword [ebx + 4]
mov ecx, edi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.1003e4b0
add esp, 8
mov ebx, eax
jmp 0x10091fd0
mov ebx, 7
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, edi
mov eax, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x13]
push 1
push 0xffffffffffffffff
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.1003e4b0
mov edi, dword [esp + 0x30]
add esp, 8
mov byte [esi + 0x4f], 1
test edi, edi
je 0x10092034
mov ecx, dword [edi + 4]
call fcn.1003e0e0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.1006af70
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret