Function at 0x10096ed0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x24], 0
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp byte [edi + 0x55], 0
jne 0x10096f3e
push 0
push 0x28
mov ecx, edi
call fcn.1000f5d0
mov esi, eax
add esp, 8
test esi, esi
je 0x10096f23
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1011929c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x101192ac]
movq qword [esi + 0x20], xmm0
mov edx, dword [ebx]
test edx, edx
je 0x10096f30
mov ecx, edi
call fcn.1000f1f0
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xbc], 1
jle 0x10096f91
push 0
push 0x2b
mov ecx, edi
call fcn.1000f5d0
mov esi, eax
add esp, 8
test esi, esi
je 0x10096f23
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x101192c4]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x101192d4]
movq qword [esi + 0x20], xmm0
mov ax, word [0x101192dc]
mov word [esi + 0x28], ax
mov al, byte [0x101192de]
mov byte [esi + 0x2a], al
jmp 0x10096f23
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x10097039
movzx ecx, word [esi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x10111ec8], 3
je 0x10096fe6
push 0
push 0x12
mov ecx, edi
call fcn.1000f5d0
mov esi, eax
add esp, 8
test esi, esi
je 0x10096f23
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x101192f0]
mov word [esi + 0x10], cx
jmp 0x10096f23
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x1009700b
cmp byte [esi + 0xa], 1
jne 0x1009700b
mov ecx, dword [edi + 0x3c]
mov edx, dword [esi + 0x10]
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x1009703e
test cl, 1
je 0x10097020
mov ecx, dword [edi + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x1009703e
mov dl, 1
mov ecx, esi
call fcn.10033460
mov ecx, dword [edi + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [edi + 0x3c], ecx
jmp 0x1009703e
mov edx, 0x10112d0f
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x68]
mov esi, dword [edi + 0x24]
mov dword [ebp - 0x38], ecx
and ecx, 0xefffafff
mov dword [ebp - 0x40], ebx
or ecx, 0x201
mov ebx, dword [edi + 0x6c]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
or eax, 6
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x44], ebx
mov ebx, dword [edi + 0x70]
shl ecx, 4
mov dword [ebp - 0x48], ebx
mov ebx, dword [edi + 0x74]
mov dword [ebp - 0x3c], esi
and esi, 0xfffffffe
mov dword [edi + 0x24], esi
mov dword [ebp - 0x4c], ebx
mov bl, byte [edi + 0x5e]
mov byte [edi + 0x5e], 0
mov esi, dword [eax + ecx]
mov dword [ebp - 0x14], esi
mov esi, dword [eax + ecx + 4]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x100970be
cmp byte [eax + 0x10], 0
mov dword [ebp - 0x1c], 0
je 0x100970c5
mov dword [ebp - 0x1c], 1
mov eax, dword [edi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push edi
mov dword [ebp - 0x20], eax
call fcn.10096c50
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x3c], eax
test ebx, ebx
jne 0x10097559
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x24], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 4]
mov dword [ebp - 0x18], eax
je 0x100971ae
mov eax, dword [eax]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x30], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100971a8
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x10097143
cmp dword [ebp - 0x2c], eax
jl 0x100971a8
jg 0x10097143
cmp dword [ebp - 0x30], eax
jbe 0x100971a8
push 0
push 0x1b
mov ecx, edi
mov ebx, 1
call fcn.1000f5d0
mov edx, eax
add esp, 8
mov dword [ebp - 0x20], edx
test edx, edx
je 0x10097189
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x1011931c]
movq qword [edx + 0x10], xmm0
mov cx, word [0x10119324]
mov word [edx + 0x18], cx
mov al, byte [0x10119326]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x100971a1
mov edx, ecx
mov ecx, edi
call fcn.1000f1f0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x10097559
or dword [edi + 0x18], 8
jmp 0x100971b1
mov dword [ebp - 0x18], eax
cmp byte [esi + 9], 0
je 0x100971c7
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100971c7
mov ecx, esi
call fcn.10024160
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x24]
sub edx, dword [eax + 0x28]
cmp byte [esi + 9], 0
movzx ecx, byte [eax + 0x16]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], edx
je 0x100971f3
add dword [esi + 0xc], 0xffffffff
jne 0x100971f3
mov ecx, esi
call fcn.10024140
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 0x10]
cmp ecx, edx
cmovg edx, ecx
mov ecx, ebx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.10026b30
xor edx, edx
mov ecx, esi
call fcn.10026bd0
mov edx, eax
mov ecx, ebx
call fcn.10026bd0
cmp byte [ebx + 9], 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
je 0x10097242
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x10097242
mov ecx, ebx
call fcn.10024160
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [eax + 7], 1
and byte [eax + 0x15], 0xfe
mov byte [eax + 0xb], 0
cmp byte [ebx + 9], 0
je 0x10097266
add dword [ebx + 0xc], 0xffffffff
jne 0x10097266
mov ecx, ebx
call fcn.10024140
mov edx, dword [ebp - 8]
mov ecx, edi
push str.BEGIN
call fcn.10096a70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10097559
xor edx, edx
mov ecx, esi
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10027350
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10097559
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x100972b7
cmp dword [ebp + 0xc], ebx
jne 0x100972b7
mov dword [edi + 0x64], ebx
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
push 0
push dword [ebp - 0x10]
mov edx, dword [eax + 0x24]
call fcn.10026d90
add esp, 8
test eax, eax
jne 0x10097554
cmp dword [ebp - 0x1c], eax
jne 0x100972f5
mov edx, dword [edi + 0x64]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call fcn.10026d90
add esp, 8
test eax, eax
jne 0x10097554
cmp byte [edi + 0x57], 0
jne 0x10097554
mov al, byte [edi + 0x5a]
test al, al
js 0x1009730b
movsx edx, al
jmp 0x10097357
mov cl, byte [esi + 9]
test cl, cl
je 0x10097325
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x10097325
mov ecx, esi
call fcn.10024160
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x10097337
mov dword [ebp - 0x1c], 0
jmp 0x10097343
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x1c], eax
test cl, cl
je 0x10097354
add dword [esi + 0xc], 0xffffffff
jne 0x10097354
mov ecx, esi
call fcn.10024140
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.10026ed0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 8]
mov byte [edi + 0xb0], al
push edi
call fcn.10096c50
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10097559
push dword [ebp - 0x14]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [ebp - 8]
push edi
call fcn.10096c50
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10097559
push dword [ebp - 0x14]
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 [ebp - 8]
push edi
call fcn.10096c50
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10097559
push dword [ebp - 0x14]
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 edi
call fcn.10096c50
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10097559
mov dword [ebp - 0x14], eax
nop dword [eax]
mov cl, byte [esi + 9]
movzx ebx, byte [eax + 0x10112bb4]
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
test cl, cl
je 0x1009741a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009741a
mov ecx, esi
call fcn.10024160
mov cl, byte [esi + 9]
mov eax, dword [ebp - 0x2c]
cmp ebx, 0xf
jne 0x10097429
mov eax, dword [eax]
mov ebx, dword [eax + 0x6c]
add ebx, dword [esi + 0x14]
jmp 0x10097435
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x10097446
add dword [esi + 0xc], 0xffffffff
jne 0x10097446
mov ecx, esi
call fcn.10024140
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx + 0x10112bb5]
movzx edx, byte [ecx + 0x10112bb4]
add eax, ebx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.1002fc10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10097559
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jl 0x100973f0
cmp dword [ebp + 0xc], ebx
jne 0x1009749a
mov edx, dword [ebp - 0xc]
mov ecx, esi
call fcn.10031e70
mov ebx, eax
test ebx, ebx
jne 0x10097559
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 9], 0
je 0x100974b3
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100974b3
mov ecx, ebx
call fcn.10024160
xor edx, edx
mov ecx, ebx
call fcn.100282b0
mov ebx, eax
test ebx, ebx
jne 0x100974ce
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.100284b0
mov ebx, eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 9], 0
je 0x100974e7
add dword [eax + 0xc], 0xffffffff
jne 0x100974e7
mov ecx, eax
call fcn.10024140
mov eax, dword [ebp - 0xc]
test ebx, ebx
jne 0x10097559
cmp dword [ebp + 0xc], ebx
jne 0x10097559
mov cl, byte [eax + 9]
test cl, cl
je 0x1009750c
inc dword [eax + 0xc]
cmp byte [eax + 0xa], bl
jne 0x1009750c
mov ecx, eax
call fcn.10024160
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 9]
mov edx, dword [ebp - 0x18]
xor ebx, ebx
mov edx, dword [edx]
cmp byte [edx + 0x11], bl
je 0x1009751f
cmp byte [edx + 0x12], bl
setne bl
inc ebx
test cl, cl
je 0x10097530
add dword [eax + 0xc], 0xffffffff
jne 0x10097530
mov ecx, eax
call fcn.10024140
mov edx, ebx
mov ecx, esi
call fcn.10026ed0
mov ecx, dword [ebp - 0x18]
push 1
push dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, esi
mov edx, dword [eax + 0x24]
call fcn.10026d90
add esp, 8
mov ebx, eax
jmp 0x10097559
mov ebx, 7
mov eax, dword [ebp - 0x34]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x6c], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x70], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x74], eax
mov al, byte [ebp - 1]
push 1
push 0
mov byte [edi + 0xb0], 0
mov byte [edi + 0x5e], al
call fcn.10026d90
mov esi, dword [ebp - 0x24]
add esp, 8
mov byte [edi + 0x55], 1
test esi, esi
je 0x100975c2
mov ecx, dword [esi + 4]
call fcn.10026920
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, edi
call fcn.1005df50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret