Function at 0x100cf230
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x102d2008]
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 0x100cf2ef
mov ecx, dword [ebx]
test ecx, ecx
je 0x100cf2b2
cmp dword [esi + 0x1d0], 0
je 0x100cf289
mov edx, ecx
mov ecx, esi
call fcn.10065950
jmp 0x100cf2b2
cmp ecx, dword [esi + 0x130]
jb 0x100cf2a9
cmp ecx, dword [esi + 0x134]
jae 0x100cf2a9
mov eax, dword [esi + 0x12c]
mov dword [ecx], eax
mov dword [esi + 0x12c], ecx
jmp 0x100cf2b2
push ecx
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
push 0
push 0x28
mov ecx, esi
call fcn.10065cb0
mov esi, eax
add esp, 8
test esi, esi
je 0x100cf2d6
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.1010eeaf
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x100cf31c
push str.cannot_VACUUM___SQL_statements_in_progress
call fcn.10066030
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x20], edx
test edi, edi
je 0x100cf3b6
movzx ecx, word [edi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x102ac228], 3
je 0x100cf365
push str.non_text_filename
mov edx, esi
mov ecx, ebx
call fcn.10066030
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100cf389
cmp byte [edi + 0xa], 1
jne 0x100cf389
mov ecx, dword [edi + 0x10]
mov eax, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100cf3bb
test cl, 1
je 0x100cf39d
mov eax, edx
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100cf3bb
mov dl, 1
mov ecx, edi
call fcn.10085df0
mov ecx, eax
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100cf3bb
mov ecx, 0x102ad32a
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.100cf0b0
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esi + 0x3c], eax
test ebx, ebx
jne 0x100cf772
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 0x100cf4c6
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 0x100cf4c2
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100cf4a5
cmp dword [esp + 0x54], eax
jl 0x100cf4c2
jg 0x100cf4a5
cmp dword [esp + 0x50], eax
jbe 0x100cf4c2
mov ecx, dword [esp + 0x18]
mov edx, esi
push str.output_file_already_exists
mov ebx, 1
call fcn.10066030
add esp, 4
jmp 0x100cf772
or dword [esi + 0x18], 8
mov ecx, edi
call fcn.1007a930
cmp dword [esi + 0x5c], 0
mov dword [esp + 0x20], eax
je 0x100cf4fd
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.10060120
add esp, 8
cmp dword [esp + 0x38], 0
je 0x100cf4fd
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.1007a600
xor edx, edx
mov ecx, edi
call fcn.1007a680
mov edx, eax
mov ecx, ebx
call fcn.1007a680
mov edx, 0x21
mov ecx, ebx
call fcn.1007a780
mov edx, dword [esp + 0x18]
mov ecx, esi
push str.BEGIN
call fcn.100cefb0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100cf772
xor edx, edx
mov ecx, edi
cmp dword [esp + 0x24], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.1007afa0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100cf772
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100cf581
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.1007a850
add esp, 8
test eax, eax
jne 0x100cf76d
cmp byte [esp + 0x16], al
jne 0x100cf5c0
mov edx, dword [esi + 0x5c]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.1007a850
add esp, 8
test eax, eax
jne 0x100cf76d
cmp byte [esi + 0x51], 0
jne 0x100cf76d
mov al, byte [esi + 0x54]
test al, al
js 0x100cf5d6
movsx eax, al
jmp 0x100cf5dd
mov ecx, edi
call fcn.1007aac0
mov edx, eax
mov ecx, ebx
call fcn.1007aa40
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.100cf0b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cf772
push dword [esp + 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [esp + 0x20]
push esi
call fcn.100cf0b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cf772
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.100cf0b0
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cf772
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.100cf0b0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cf772
mov dword [esp + 0x10], eax
nop
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x102a88d0]
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
test cl, cl
je 0x100cf6ac
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100cf6ac
mov ecx, edi
call fcn.10077eb0
mov cl, byte [edi + 9]
mov eax, dword [esp + 0x28]
cmp ebx, 0xf
jne 0x100cf6bb
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [edi + 0x14]
jmp 0x100cf6c7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x100cf6d8
add dword [edi + 0xc], 0xffffffff
jne 0x100cf6d8
mov ecx, edi
call fcn.10077e70
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x102a88d1]
movzx edx, byte [ecx + 0x102a88d0]
add eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10082ab0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100cf772
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x10], eax
cmp eax, 0xa
jl 0x100cf680
cmp dword [esp + 0x24], ebx
jne 0x100cf72a
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.10084ad0
mov ebx, eax
test ebx, ebx
jne 0x100cf772
mov ecx, dword [esp + 0x1c]
call fcn.1007c150
mov ebx, eax
test ebx, ebx
jne 0x100cf772
cmp dword [esp + 0x24], eax
jne 0x100cf772
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.1007aac0
mov edx, eax
mov ecx, edi
call fcn.1007aa40
mov eax, dword [ebx + 4]
mov ecx, edi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.1007a850
add esp, 8
mov ebx, eax
jmp 0x100cf772
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.1007a850
mov edi, dword [esp + 0x3c]
add esp, 8
mov byte [esi + 0x4f], 1
test edi, edi
je 0x100cf7d6
mov ecx, dword [edi + 4]
call fcn.1007a480
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.100a8e10
mov ecx, dword [esp + 0x5c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret