Function at 0x1009f860
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0x24], 0
push esi
push edi
mov edi, ecx
cmp byte [ebx + 0x55], 0
mov dword [esp + 0x14], edi
jne 0x1009f8cd
push 0
push 0x28
mov ecx, ebx
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f8b3
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x10137e54]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x10137e64]
movq qword [esi + 0x20], xmm0
push dword [edi]
push ebx
call fcn.1001ce80
add esp, 8
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
cmp dword [ebx + 0xbc], 1
jle 0x1009f920
push 0
push 0x2b
mov ecx, ebx
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f8b3
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x10137e7c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x10137e8c]
movq qword [esi + 0x20], xmm0
mov ax, word [0x10137e94]
mov word [esi + 0x28], ax
mov al, byte [0x10137e96]
mov byte [esi + 0x2a], al
jmp 0x1009f8b3
mov esi, dword [esp + 0x8c]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ebp
test esi, esi
je 0x1009f9cb
movzx ecx, word [esi + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x101306d0], 3
je 0x1009f97a
push 0
push 0x12
mov ecx, ebx
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f8b3
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x10137ea8]
mov word [esi + 0x10], cx
jmp 0x1009f8b3
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x1009f99e
cmp byte [esi + 0x12], 1
jne 0x1009f99e
mov edx, dword [esi + 8]
mov eax, ebp
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x1009f9d0
test cl, 1
je 0x1009f9b2
mov eax, ebp
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x1009f9d0
mov dl, 1
mov ecx, esi
call fcn.1003eee0
mov edx, eax
mov eax, dword [ebx + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x1009f9d0
mov edx, 0x101315db
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x68]
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x28], ecx
mov cl, byte [ebx + 0x5e]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x28]
and ecx, 0xefffafff
mov dword [esp + 0x38], eax
or ecx, 0x201
mov dword [esp + 0x40], esi
mov esi, dword [ebx + 0x6c]
or eax, 6
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x88]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [esp + 0x44], esi
mov esi, dword [ebx + 0x70]
mov dword [esp + 0x3c], ebp
and ebp, 0xfffffffe
mov dword [ebx + 0x24], ebp
mov byte [ebx + 0x5e], 0
mov ebp, dword [ecx + eax]
mov dword [esp + 0x48], esi
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x4c], esi
mov esi, dword [ecx + eax + 4]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x1009fa63
cmp byte [eax + 0x10], 0
mov dword [esp + 0x20], 0
je 0x1009fa6b
mov dword [esp + 0x20], 1
mov eax, dword [ebx + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
mov dword [esp + 0x34], eax
call fcn.1009f670
mov ebp, eax
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x3c], eax
test ebp, ebp
jne 0x100a0094
mov eax, dword [esp + 0x24]
shl eax, 4
add eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov edi, dword [eax + 4]
cmp dword [esp + 0x8c], ebp
je 0x1009fb6a
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x1009fb4d
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1009faec
cmp dword [esp + 0x34], eax
jl 0x1009fb4d
jg 0x1009faec
cmp dword [esp + 0x30], eax
jbe 0x1009fb4d
push 0
push 0x1b
mov ecx, ebx
mov ebp, 1
call fcn.1001d1c0
mov edx, eax
add esp, 8
mov dword [esp + 0x24], edx
test edx, edx
je 0x1009fb33
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x10137ed4]
movq qword [edx + 0x10], xmm0
mov cx, word [0x10137edc]
mov word [edx + 0x18], cx
mov al, byte [0x10137ede]
mov byte [edx + 0x1a], al
mov edi, dword [esp + 0x14]
push dword [edi]
push ebx
call fcn.1001ce80
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [edi], eax
jmp 0x100a0094
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x88]
or dword [ebx + 0x18], 8
movzx ebp, byte [ecx + eax + 8]
mov eax, dword [ebx + 0x20]
and eax, 0x38
or ebp, eax
jmp 0x1009fb6f
mov ebp, 1
mov cl, byte [esi + 9]
test cl, cl
je 0x1009fb89
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fb89
mov ecx, esi
call fcn.10030c90
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
movzx edx, byte [eax + 0x16]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x24]
sub edx, dword [eax + 0x28]
mov dword [esp + 0x1c], edx
test cl, cl
je 0x1009fbb3
add dword [esi + 0xc], 0xffffffff
jne 0x1009fbb3
mov ecx, esi
call fcn.10030c70
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x30], edx
mov eax, dword [ebx + 0x10]
cmovg edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + eax + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.10033230
xor edx, edx
mov ecx, esi
call fcn.100332d0
mov edx, eax
mov ecx, edi
call fcn.100332d0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x30], eax
je 0x1009fc0b
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009fc0b
mov ecx, edi
call fcn.10030c90
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
or ebp, 0x20
mov edx, ebp
call fcn.1002ab80
cmp byte [edi + 9], 0
je 0x1009fc2a
add dword [edi + 0xc], 0xffffffff
jne 0x1009fc2a
mov ecx, edi
call fcn.10030c70
mov edx, dword [esp + 0x14]
mov ecx, ebx
push str.BEGIN
call fcn.1009f590
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100a0094
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x8c], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10033900
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100a0094
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1009fc87
cmp dword [esp + 0x8c], ebp
jne 0x1009fc87
mov dword [ebx + 0x64], ebp
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [edx + 0x24]
push 0
push ebp
call fcn.10033390
add esp, 8
test eax, eax
jne 0x100a008f
cmp dword [esp + 0x20], eax
jne 0x1009fcc0
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push ebp
call fcn.10033390
add esp, 8
test eax, eax
jne 0x100a008f
cmp byte [ebx + 0x57], 0
jne 0x100a008f
mov al, byte [ebx + 0x5a]
test al, al
js 0x1009fcd6
movsx ebp, al
jmp 0x1009fd1d
mov cl, byte [esi + 9]
test cl, cl
je 0x1009fcf0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fcf0
mov ecx, esi
call fcn.10030c90
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x1009fcfd
xor ebp, ebp
jmp 0x1009fd0c
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x1009fd1d
add dword [esi + 0xc], 0xffffffff
jne 0x1009fd1d
mov ecx, esi
call fcn.10030c70
mov edx, ebp
mov ecx, edi
call fcn.100334d0
push dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x1c]
mov byte [ebx + 0xb0], al
push ebx
call fcn.1009f670
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0094
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push ebx
call fcn.1009f670
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0094
push dword [esp + 0x18]
mov byte [ebx + 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 + 0x1c]
push ebx
call fcn.1009f670
and dword [ebx + 0x18], 0xfffffffb
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0094
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 + 0x1c]
push ebx
call fcn.1009f670
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0094
mov dword [esp + 0x1c], eax
nop
mov cl, byte [esi + 9]
movzx ebp, byte [eax + 0x10128da0]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
test cl, cl
je 0x1009fdec
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fdec
mov ecx, esi
call fcn.10030c90
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x30]
cmp ebp, 0xf
jne 0x1009fdfb
mov eax, dword [eax]
mov ebp, dword [eax + 0x6c]
add ebp, dword [esi + 0x14]
jmp 0x1009fe07
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebp, dword [eax + ebp*4 + 0x24]
bswap ebp
test cl, cl
je 0x1009fe18
add dword [esi + 0xc], 0xffffffff
jne 0x1009fe18
mov ecx, esi
call fcn.10030c70
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ecx + 0x10128da1]
movzx edx, byte [ecx + 0x10128da0]
add eax, ebp
push eax
mov ecx, edi
call fcn.1003b900
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100a0094
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x1009fdc0
cmp dword [esp + 0x8c], ebp
jne 0x1009ff8b
cmp byte [esi + 9], 0
je 0x1009fe78
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fe78
mov ecx, esi
call fcn.10030c90
cmp byte [edi + 9], 0
je 0x1009fe8e
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009fe8e
mov ecx, edi
call fcn.10030c90
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebp, dword [eax + 0x40]
cmp dword [ebp], 0
je 0x1009fedb
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.10117120
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebp]
mov dword [esp + 0x38], edx
push 0xb
push ebp
mov eax, dword [eax + 0x28]
call eax
xor ebp, ebp
add esp, 0xc
cmp eax, 0xc
cmovne ebp, eax
test ebp, ebp
jne 0x1009ff5d
mov eax, dword [edi]
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], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], 1
call fcn.1003d220
lea eax, [esp + 0x58]
push eax
call fcn.1003d830
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x1009ff49
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x1009ff5d
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x1009ff5d
call fcn.10028fd0
cmp byte [edi + 9], 0
je 0x1009ff70
add dword [edi + 0xc], 0xffffffff
jne 0x1009ff70
mov ecx, edi
call fcn.10030c70
cmp byte [esi + 9], 0
je 0x1009ff83
add dword [esi + 0xc], 0xffffffff
jne 0x1009ff83
mov ecx, esi
call fcn.10030c70
test ebp, ebp
jne 0x100a0094
cmp byte [edi + 9], 0
je 0x1009ffa1
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009ffa1
mov ecx, edi
call fcn.10030c90
xor edx, edx
mov ecx, edi
call fcn.10034770
mov ebp, eax
test ebp, ebp
jne 0x1009ffbb
xor edx, edx
mov ecx, edi
call fcn.100348f0
mov ebp, eax
cmp byte [edi + 9], 0
je 0x1009ffce
add dword [edi + 0xc], 0xffffffff
jne 0x1009ffce
mov ecx, edi
call fcn.10030c70
test ebp, ebp
jne 0x100a0094
cmp dword [esp + 0x8c], ebp
jne 0x100a0094
mov cl, byte [edi + 9]
test cl, cl
je 0x1009fffd
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009fffd
mov ecx, edi
call fcn.10030c90
mov cl, byte [edi + 9]
mov edx, dword [edi + 4]
cmp byte [edx + 0x11], 0
jne 0x100a000a
xor ebp, ebp
jmp 0x100a0019
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x100a002a
add dword [edi + 0xc], 0xffffffff
jne 0x100a002a
mov ecx, edi
call fcn.10030c70
mov edx, ebp
mov ecx, esi
call fcn.100334d0
mov al, byte [edi + 9]
test al, al
je 0x100a004d
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100a004d
mov ecx, edi
call fcn.10030c90
mov al, byte [edi + 9]
mov edx, dword [edi + 4]
mov ebp, dword [edx + 0x24]
movzx ecx, byte [edx + 0x16]
sub ebp, dword [edx + 0x28]
mov dword [esp + 0x30], ecx
test al, al
je 0x100a0076
add dword [edi + 0xc], 0xffffffff
jne 0x100a0076
mov ecx, edi
call fcn.10030c70
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [edx + 0x24]
cmp ecx, ebp
push 1
cmovg ebp, ecx
mov ecx, esi
push ebp
call fcn.10033390
add esp, 8
mov ebp, eax
jmp 0x100a0094
mov ebp, 7
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
mov dword [ebx + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x74], eax
mov al, byte [esp + 0x13]
push 1
push 0
mov byte [ebx + 0xb0], 0
mov byte [ebx + 0x5e], al
call fcn.10033390
mov esi, dword [esp + 0x34]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x100a0106
mov ecx, dword [esi + 4]
call fcn.100330d0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.10069140
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x74
ret