Function at 0x10087da0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x30], 0
mov ebx, ecx
mov dword [esp + 0x10], ebx
cmp byte [edi + 0x51], 0
jne 0x10087e11
mov edx, dword [ebx]
test edx, edx
je 0x10087dcf
mov ecx, edi
call fcn.10004cc0
push 0
push 0x28
mov ecx, edi
call fcn.10005060
add esp, 8
test eax, eax
je 0x10087e03
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x1010cc34]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x1010cc44]
movq qword [eax + 0x20], xmm0
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xbc], 1
jle 0x10087e7d
mov edx, dword [ebx]
test edx, edx
je 0x10087e27
mov ecx, edi
call fcn.10004cc0
push 0
push 0x2b
mov ecx, edi
call fcn.10005060
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10087e6f
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x1010cc5c]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x1010cc6c]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x1010cc74]
mov word [ecx + 0x28], ax
mov al, byte [0x1010cc76]
mov byte [ecx + 0x2a], al
mov dword [ebx], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x20], esi
test edx, edx
je 0x10087f35
movzx ecx, word [edx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x101183a0], 3
je 0x10087ee3
mov edx, dword [ebx]
test edx, edx
je 0x10087eae
mov ecx, edi
call fcn.10004cc0
push 0
push 0x12
mov ecx, edi
call fcn.10005060
add esp, 8
test eax, eax
je 0x10087ed5
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x1010cc88]
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 0x10087f07
cmp byte [edx + 0xa], 1
jne 0x10087f07
mov edx, dword [edx + 0x10]
mov eax, esi
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x10087f3a
test cl, 1
je 0x10087f1b
mov eax, esi
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x10087f3a
mov ecx, dword [ebp + 0xc]
mov dl, 1
call fcn.100289d0
mov edx, eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x10087f3a
mov edx, 0x101077f8
mov esi, dword [edi + 0x24]
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x68]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x3c], esi
and esi, 0xfffffffe
mov dword [edi + 0x24], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], ebx
mov ebx, dword [edi + 0x6c]
mov dword [esp + 0x34], eax
or eax, 6
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x44], ebx
mov ebx, dword [edi + 0x70]
mov dword [esp + 0x38], ecx
and ecx, 0xefffafff
shl esi, 4
or ecx, 0x201
mov dword [esp + 0x48], ebx
mov ebx, dword [edi + 0x74]
mov dword [edi + 0x20], ecx
mov dword [esp + 0x4c], ebx
mov bl, byte [edi + 0x5a]
mov byte [edi + 0x5a], 0
mov ecx, dword [esi + eax]
mov dword [ebp + 8], esi
mov esi, dword [esi + eax + 4]
mov byte [esp + 0xf], bl
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x10087fc5
cmp byte [eax + 0x10], 0
mov dword [esp + 0x28], 0
je 0x10087fcd
mov dword [esp + 0x28], 1
mov eax, dword [edi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push edi
mov dword [esp + 0x3c], eax
call fcn.10087c70
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [edi + 0x3c], eax
test ebx, ebx
jne 0x10088482
mov eax, dword [esp + 0x2c]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x30], eax
mov ebx, dword [eax + 4]
mov dword [esp + 0x14], ebx
je 0x100880ae
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100880aa
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1008804b
cmp dword [esp + 0x24], eax
jl 0x100880aa
jg 0x1008804b
cmp dword [esp + 0x20], eax
jbe 0x100880aa
mov eax, dword [esp + 0x10]
mov ebx, 1
mov edx, dword [eax]
test edx, edx
je 0x10088061
mov ecx, edi
call fcn.10004cc0
push 0
push 0x1b
mov ecx, edi
call fcn.10005060
mov edx, eax
add esp, 8
test edx, edx
je 0x1008809f
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x1010ccb4]
movq qword [edx + 0x10], xmm0
mov cx, word [0x1010ccbc]
mov word [edx + 0x18], cx
mov al, byte [0x1010ccbe]
mov byte [edx + 0x1a], al
mov eax, dword [esp + 0x10]
mov dword [eax], edx
jmp 0x10088482
or dword [edi + 0x18], 8
mov ecx, esi
call fcn.1001cf70
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edx, dword [edx + ecx + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.1001cc50
xor edx, edx
mov ecx, esi
call fcn.1001ccf0
mov edx, eax
mov ecx, ebx
call fcn.1001ccf0
mov edx, 0x21
mov ecx, ebx
call fcn.1001cdb0
mov edx, dword [esp + 0x10]
mov ecx, edi
push str.BEGIN
call fcn.10087a80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10088482
xor edx, edx
mov ecx, esi
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.1001d4b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10088482
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10088140
cmp dword [ebp + 0xc], ebx
jne 0x10088140
mov dword [edi + 0x60], ebx
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [edx + 0x24]
push 0
push dword [esp + 0x24]
call fcn.1001ce80
add esp, 8
test eax, eax
jne 0x1008847d
cmp dword [esp + 0x28], eax
jne 0x1008817f
mov edx, dword [edi + 0x60]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.1001ce80
add esp, 8
test eax, eax
jne 0x1008847d
cmp byte [edi + 0x53], 0
jne 0x1008847d
mov al, byte [edi + 0x56]
test al, al
js 0x10088195
movsx eax, al
jmp 0x1008819c
mov ecx, esi
call fcn.1001d100
mov edx, eax
mov ecx, ebx
call fcn.1001d080
push dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x18]
mov byte [edi + 0xb0], al
push edi
call fcn.10087c70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10088482
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x18]
push edi
call fcn.10087c70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10088482
push dword [esp + 0x18]
mov byte [edi + 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 [esp + 0x18]
push edi
call fcn.10087c70
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10088482
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x18]
push edi
call fcn.10087c70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10088482
mov dword [esp + 0x18], eax
nop dword [eax]
mov cl, byte [esi + 9]
movzx ebx, byte [eax + 0x10110a7c]
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
test cl, cl
je 0x1008826c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1008826c
mov ecx, esi
call fcn.1001a2d0
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x2c]
cmp ebx, 0xf
jne 0x1008827b
mov eax, dword [eax]
mov ebx, dword [eax + 0x6c]
add ebx, dword [esi + 0x14]
jmp 0x10088287
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x10088298
add dword [esi + 0xc], 0xffffffff
jne 0x10088298
mov ecx, esi
call fcn.1001a290
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + 0x10110a7d]
movzx edx, byte [ecx + 0x10110a7c]
add eax, ebx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10025490
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10088482
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x18], eax
cmp eax, 0xa
jl 0x10088240
cmp dword [ebp + 0xc], ebx
jne 0x1008843b
cmp byte [esi + 9], bl
je 0x100882f4
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x100882f4
mov ecx, esi
call fcn.1001a2d0
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 9], 0
je 0x1008830e
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1008830e
mov ecx, ebx
call fcn.1001a2d0
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1008836b
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x24]
cdq
push edx
push eax
push 0
push ecx
call fcn.101062f0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push 0xb
push dword [esp + 0x34]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x28]
call eax
xor ebx, ebx
add esp, 0xc
cmp eax, 0xc
cmovne ebx, eax
test ebx, ebx
jne 0x1008840d
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
xorps xmm0, xmm0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x50]
push 0x7fffffff
push eax
mov dword [esp + 0x58], 0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x70], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], 1
call sym.sqlite3.dll_sqlite3_backup_step
lea eax, [esp + 0x58]
push eax
call sym.sqlite3.dll_sqlite3_backup_finish
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100883d9
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x1008840d
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x1008840d
inc dword [ecx + 0x6c]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x10088400
mov dword [eax + 0x10], 1
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x100883f2
mov ecx, dword [ecx + 0xe4]
xor edx, edx
call fcn.10010000
mov eax, dword [esp + 0x14]
cmp byte [eax + 9], 0
je 0x10088424
add dword [eax + 0xc], 0xffffffff
jne 0x10088424
mov ecx, eax
call fcn.1001a290
cmp byte [esi + 9], 0
je 0x10088437
add dword [esi + 0xc], 0xffffffff
jne 0x10088437
mov ecx, esi
call fcn.1001a290
test ebx, ebx
jne 0x10088482
mov ecx, dword [esp + 0x14]
call fcn.1001e4a0
mov ebx, eax
test ebx, ebx
jne 0x10088482
cmp dword [ebp + 0xc], eax
jne 0x10088482
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.1001d100
mov edx, eax
mov ecx, esi
call fcn.1001d080
mov eax, dword [ebx + 4]
mov ecx, esi
push 1
push dword [esp + 0x24]
mov edx, dword [eax + 0x24]
call fcn.1001ce80
add esp, 8
mov ebx, eax
jmp 0x10088482
mov ebx, 7
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x38]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x74], eax
mov al, byte [esp + 0xf]
push 1
push 0
mov byte [edi + 0xb0], 0
mov byte [edi + 0x5a], al
call fcn.1001ce80
mov esi, dword [esp + 0x38]
add esp, 8
mov byte [edi + 0x51], 1
test esi, esi
je 0x100884f4
mov ecx, dword [esi + 4]
call fcn.1001c9f0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.10052ea0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret