Function at 0x100cf900
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x102d4008]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x28], eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x18], ebx
cmp byte [esi + 0x4f], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], 0
jne 0x100cf9bf
mov ecx, dword [ebx]
test ecx, ecx
je 0x100cf982
cmp dword [esi + 0x1d0], 0
je 0x100cf959
mov edx, ecx
mov ecx, esi
call fcn.10066010
jmp 0x100cf982
cmp ecx, dword [esi + 0x130]
jb 0x100cf979
cmp ecx, dword [esi + 0x134]
jae 0x100cf979
mov eax, dword [esi + 0x12c]
mov dword [ecx], eax
mov dword [esi + 0x12c], ecx
jmp 0x100cf982
push ecx
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
push 0
push 0x28
mov ecx, esi
call fcn.10066370
mov esi, eax
add esp, 8
test esi, esi
je 0x100cf9a6
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x100cf9ec
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.100666f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x20], edx
test edi, edi
je 0x100cfa86
movzx ecx, word [edi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x102ad5e8], 3
je 0x100cfa35
push str.non_text_filename
mov edx, esi
mov ecx, ebx
call fcn.100666f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100cfa59
cmp byte [edi + 0xa], 1
jne 0x100cfa59
mov ecx, dword [edi + 0x10]
mov eax, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100cfa8b
test cl, 1
je 0x100cfa6d
mov eax, edx
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100cfa8b
mov dl, 1
mov ecx, edi
call fcn.100864c0
mov ecx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100cfa8b
mov ecx, 0x102ae3c2
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x3c], eax
or eax, 6
mov dword [esi + 0x24], edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
and edx, 0xefffaf7f
mov dword [esp + 0x48], ebx
or edx, 0x201
mov ebx, dword [esi + 0x68]
shl edi, 4
mov dword [esi + 0x20], edx
mov dword [esp + 0x4c], ebx
mov bl, byte [esi + 0x58]
mov byte [esi + 0x58], 0
mov edx, dword [eax + edi]
mov dword [esp + 0x28], edi
mov edi, dword [eax + edi + 4]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov byte [esp + 0x1f], bl
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x20]
push ebx
push esi
mov eax, dword [eax]
mov dword [esp + 0x20], edx
mov al, byte [eax + 0xc]
mov byte [esp + 0x26], al
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], eax
call fcn.100cf780
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x100cfe42
mov eax, dword [esp + 0x30]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
mov ebx, dword [eax + 4]
mov dword [esp + 0x1c], ebx
je 0x100cfb96
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [esp + 0x50], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100cfb92
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100cfb75
cmp dword [esp + 0x54], eax
jl 0x100cfb92
jg 0x100cfb75
cmp dword [esp + 0x50], eax
jbe 0x100cfb92
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.output_file_already_exists
mov ebx, 1
call fcn.100666f0
add esp, 4
jmp 0x100cfe42
or dword [esi + 0x18], 8
mov ecx, edi
call fcn.1007b000
cmp dword [esi + 0x5c], 0
mov dword [esp + 0x20], eax
je 0x100cfbcd
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.100607e0
add esp, 8
cmp dword [esp + 0x38], 0
je 0x100cfbcd
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov edx, dword [esp + 0x28]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.1007acd0
xor edx, edx
mov ecx, edi
call fcn.1007ad50
mov edx, eax
mov ecx, ebx
call fcn.1007ad50
mov edx, 0x21
mov ecx, ebx
call fcn.1007ae50
mov edx, dword [esp + 0x18]
mov ecx, esi
push str.BEGIN
call fcn.100cf680
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100cfe42
xor edx, edx
mov ecx, edi
cmp dword [esp + 0x24], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.1007b670
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100cfe42
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100cfc51
mov dword [esi + 0x5c], ebx
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + 0x24]
push 0
push dword [esp + 0x24]
call fcn.1007af20
add esp, 8
test eax, eax
jne 0x100cfe3d
cmp byte [esp + 0x16], al
jne 0x100cfc90
mov edx, dword [esi + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.1007af20
add esp, 8
test eax, eax
jne 0x100cfe3d
cmp byte [esi + 0x51], 0
jne 0x100cfe3d
mov al, byte [esi + 0x54]
test al, al
js 0x100cfca6
movsx eax, al
jmp 0x100cfcad
mov ecx, edi
call fcn.1007b190
mov edx, eax
mov ecx, ebx
call fcn.1007b110
push dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x20]
mov byte [esi + 0xa4], al
push esi
call fcn.100cf780
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cfe42
push dword [esp + 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x20]
push esi
call fcn.100cf780
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cfe42
push dword [esp + 0x10]
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 + 0x20]
push esi
call fcn.100cf780
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cfe42
push dword [esp + 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x20]
push esi
call fcn.100cf780
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cfe42
mov dword [esp + 0x10], eax
nop
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x102a9aec]
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
test cl, cl
je 0x100cfd7c
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100cfd7c
mov ecx, edi
call fcn.10078580
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x28]
cmp ebx, 0xf
jne 0x100cfd8b
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [edi + 0x14]
jmp 0x100cfd97
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x100cfda8
add dword [edi + 0xc], 0xffffffff
jne 0x100cfda8
mov ecx, edi
call fcn.10078540
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x102a9aed]
movzx edx, byte [ecx + 0x102a9aec]
add eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10083180
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100cfe42
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x10], eax
cmp eax, 0xa
jl 0x100cfd50
cmp dword [esp + 0x24], ebx
jne 0x100cfdfa
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.100851a0
mov ebx, eax
test ebx, ebx
jne 0x100cfe42
mov ecx, dword [esp + 0x1c]
call fcn.1007c820
mov ebx, eax
test ebx, ebx
jne 0x100cfe42
cmp dword [esp + 0x24], eax
jne 0x100cfe42
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.1007b190
mov edx, eax
mov ecx, edi
call fcn.1007b110
mov eax, dword [ebx + 4]
mov ecx, edi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.1007af20
add esp, 8
mov ebx, eax
jmp 0x100cfe42
mov ebx, 7
mov eax, dword [esp + 0x3c]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, edi
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x17]
push 1
push 0xffffffffffffffff
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.1007af20
mov edi, dword [esp + 0x3c]
add esp, 8
mov byte [esi + 0x4f], 1
test edi, edi
je 0x100cfea6
mov ecx, dword [edi + 4]
call fcn.1007ab50
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.100a94e0
mov ecx, dword [esp + 0x5c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret