Function at 0x100be4c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 1
cmp byte [esi + 0x55], 0
jne 0x100be5a9
push 0
push 0x28
push esi
call fcn.10093fb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100be519
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1011a2a4]
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [0x1011a2b4]
movq qword [edi + 0x20], xmm0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x100be59b
cmp ecx, dword [esi + 0x164]
jae 0x100be572
cmp ecx, dword [esi + 0x15c]
jb 0x100be54e
mov eax, dword [esi + 0x158]
mov dword [ecx], eax
mov eax, 1
mov dword [esi + 0x158], ecx
mov dword [ebx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi + 0x160]
jb 0x100be572
mov eax, dword [esi + 0x150]
mov dword [ecx], eax
mov eax, 1
mov dword [esi + 0x150], ecx
mov dword [ebx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x210], 0
push ecx
je 0x100be593
push esi
call fcn.10071700
add esp, 8
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
mov dword [ebx], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], 1
jle 0x100be61f
push 0
push 0x2b
push esi
call fcn.10093fb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100be5f9
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1011a2cc]
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [0x1011a2dc]
movq qword [edi + 0x20], xmm0
mov ax, word [0x1011a2e4]
mov word [edi + 0x28], ax
mov al, byte [0x1011a2e6]
mov byte [edi + 0x2a], al
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x100be59b
cmp ecx, dword [esi + 0x164]
jae 0x100be572
cmp ecx, dword [esi + 0x15c]
jae 0x100be532
jmp 0x100be54e
mov edx, dword [ebp + 0x14]
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x1c], ebx
test edx, edx
je 0x100be6b2
movzx ecx, word [edx + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x1010e858], 3
je 0x100be65f
push str.non_text_filename
push esi
push dword [ebp + 8]
call fcn.100c23a0
add esp, 0xc
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 0x100be683
cmp byte [edx + 0x12], 1
jne 0x100be683
mov edx, dword [edx + 8]
mov eax, ebx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100be6b7
test cl, 1
je 0x100be697
mov eax, ebx
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100be6b7
push 1
push edx
call fcn.100e5f30
mov edx, eax
add esp, 8
mov eax, dword [esi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [esi + 0x3c], eax
jmp 0x100be6b7
mov edx, 0x1011418b
mov ebx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x68]
mov dword [ebp - 0x28], ebx
mov bl, byte [esi + 0x5e]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xfffffffe
mov dword [ebp - 0x30], eax
mov dword [esi + 0x24], ebx
or eax, 6
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], ecx
and ecx, 0xefffafff
shl ebx, 4
or ecx, 0x201
mov dword [esi + 0x20], ecx
mov byte [esi + 0x5e], 0
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebx + eax]
mov ebx, dword [ebx + eax + 4]
mov dword [ebp - 0x38], edi
mov edi, dword [esi + 0x6c]
mov dword [ebp - 0x3c], edi
mov eax, dword [ebx + 4]
mov edi, dword [esi + 0x70]
mov dword [ebp - 0x40], edi
mov edi, dword [esi + 0x74]
mov eax, dword [eax]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0xc], ecx
cmp byte [eax + 0xc], 0
jne 0x100be737
cmp byte [eax + 0x10], 0
mov dword [ebp - 0x14], 0
je 0x100be73e
mov dword [ebp - 0x14], 1
mov eax, dword [esi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
push esi
call fcn.100327d0
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x100beb73
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 4]
mov dword [ebp - 8], edi
je 0x100be7e6
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x20], xmm0
cmp dword [eax], 0
je 0x100be7cc
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.100b47b0
add esp, 8
test eax, eax
jne 0x100be7b0
cmp dword [ebp - 0x1c], eax
jl 0x100be7cc
jg 0x100be7b0
cmp dword [ebp - 0x20], eax
jbe 0x100be7cc
mov eax, dword [ebp + 8]
mov edi, 1
push str.output_file_already_exists
push esi
push eax
call fcn.100c23a0
add esp, 0xc
jmp 0x100beb73
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x10]
or dword [esi + 0x18], 8
movzx ecx, byte [ecx + eax + 8]
mov eax, dword [esi + 0x20]
and eax, 0x38
or ecx, eax
mov dword [ebp - 0x10], ecx
push ebx
call fcn.1008ccb0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + ecx + 0xc]
push dword [ecx + 0x50]
push edi
call fcn.1008e830
push 0
push ebx
call fcn.1008ea10
push eax
push edi
call fcn.1008ea10
mov eax, dword [ebp - 0x10]
or eax, 0x20
push eax
push edi
call fcn.1008e9c0
mov eax, dword [ebp + 8]
push str.BEGIN
push eax
push esi
call fcn.10032640
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x100beb73
cmp dword [ebp + 0x14], eax
mov ecx, 2
push eax
cmove eax, ecx
push eax
push ebx
call fcn.1008bd80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100beb73
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
cmp byte [eax + 5], 5
jne 0x100be870
cmp dword [ebp + 0x14], edi
jne 0x100be870
mov dword [esi + 0x64], edi
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 8]
push 0
push dword [ebp - 0x1c]
push dword [ecx + 0x24]
push edi
call fcn.1008e8e0
add esp, 0x10
test eax, eax
jne 0x100beb6e
cmp dword [ebp - 0x14], eax
jne 0x100be8a9
push eax
push dword [ebp - 0x1c]
push dword [esi + 0x64]
push edi
call fcn.1008e8e0
add esp, 0x10
test eax, eax
jne 0x100beb6e
cmp byte [esi + 0x57], 0
jne 0x100beb6e
mov al, byte [esi + 0x5a]
test al, al
js 0x100be8bf
movsx eax, al
jmp 0x100be8c8
push ebx
call fcn.1008cc00
add esp, 4
push eax
push edi
call fcn.1008e7b0
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp + 8]
mov byte [esi + 0xb0], al
push esi
call fcn.100327d0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x100beb73
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp + 8]
push esi
call fcn.100327d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100beb73
push dword [ebp - 0xc]
mov byte [esi + 0xb0], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp + 8]
push esi
call fcn.100327d0
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100beb73
push dword [ebp - 0xc]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp + 8]
push esi
call fcn.100327d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100beb73
mov dword [ebp - 0xc], eax
nop dword [eax]
mov cl, byte [ebx + 9]
movzx edi, byte [eax + 0x1010e940]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
test cl, cl
je 0x100be98c
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100be98c
push ebx
call fcn.100295f0
mov cl, byte [ebx + 9]
add esp, 4
mov eax, dword [ebp - 0x24]
cmp edi, 0xf
jne 0x100be99b
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
add edi, dword [ebx + 0x14]
jmp 0x100be9a7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + edi*4 + 0x24]
bswap edi
test cl, cl
je 0x100be9ba
add dword [ebx + 0xc], 0xffffffff
jne 0x100be9ba
push ebx
call fcn.100e37a0
add esp, 4
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx + 0x1010e941]
add eax, edi
push eax
movzx eax, byte [ecx + 0x1010e940]
push eax
push dword [ebp - 8]
call fcn.1008f310
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100beb73
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
cmp eax, 0xa
jl 0x100be960
cmp dword [ebp + 0x14], edi
jne 0x100beb2c
cmp byte [ebx + 9], 0
je 0x100bea17
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100bea17
push ebx
call fcn.100295f0
add esp, 4
mov edi, dword [ebp - 8]
cmp byte [edi + 9], 0
je 0x100bea32
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100bea32
push edi
call fcn.100295f0
add esp, 4
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100bea8b
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
cdq
push edx
push eax
push 0
push ecx
call fcn.100fa5d0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0xb
push dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov edi, dword [edi + 0x28]
mov ecx, edi
call dword [0x1010a1d8]
call edi
xor edi, edi
add esp, 0xc
cmp eax, 0xc
cmovne edi, eax
test edi, edi
jne 0x100beafb
mov edi, dword [ebp - 8]
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x74]
push 0x7fffffff
push eax
mov dword [ebp - 0x74], 0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], 1
call sym.e_sqlite3.dll_sqlite3_backup_step
lea eax, [ebp - 0x74]
push eax
call sym.e_sqlite3.dll_sqlite3_backup_finish
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100beaeb
mov eax, dword [ebx + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x100beafb
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
push dword [eax]
call fcn.100b4c70
add esp, 4
mov eax, dword [ebp - 8]
cmp byte [eax + 9], 0
je 0x100beb13
add dword [eax + 0xc], 0xffffffff
jne 0x100beb13
push eax
call fcn.100e37a0
add esp, 4
cmp byte [ebx + 9], 0
je 0x100beb28
add dword [ebx + 0xc], 0xffffffff
jne 0x100beb28
push ebx
call fcn.100e37a0
add esp, 4
test edi, edi
jne 0x100beb73
push dword [ebp - 8]
call fcn.1008c310
mov edi, eax
add esp, 4
test edi, edi
jne 0x100beb73
cmp dword [ebp + 0x14], eax
jne 0x100beb73
mov edi, dword [ebp - 8]
push edi
call fcn.1008cc00
push eax
push ebx
call fcn.1008e7b0
push edi
call fcn.1008ccb0
mov ecx, dword [edi + 4]
push 1
push eax
push dword [ecx + 0x24]
push ebx
call fcn.1008e8e0
add esp, 0x20
mov edi, eax
jmp 0x100beb73
mov edi, 7
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x40]
push 1
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x44]
push 0
mov dword [esi + 0x74], eax
mov al, byte [ebp - 1]
push 0xffffffffffffffff
push ebx
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5e], al
call fcn.1008e8e0
mov ebx, dword [ebp - 0x2c]
add esp, 0x10
mov byte [esi + 0x55], 1
test ebx, ebx
je 0x100bebdd
push dword [ebx + 4]
call fcn.1008c160
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push esi
call fcn.100bd2a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret