Function at 0x1009f820
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 0x1009f88d
push 0
push 0x28
mov ecx, ebx
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f873
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x10137e6c]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x10137e7c]
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 0x1009f8e0
push 0
push 0x2b
mov ecx, ebx
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f873
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x10137e94]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x10137ea4]
movq qword [esi + 0x20], xmm0
mov ax, word [0x10137eac]
mov word [esi + 0x28], ax
mov al, byte [0x10137eae]
mov byte [esi + 0x2a], al
jmp 0x1009f873
mov esi, dword [esp + 0x8c]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ebp
test esi, esi
je 0x1009f98b
movzx ecx, word [esi + 0x10]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x101306d0], 3
je 0x1009f93a
push 0
push 0x12
mov ecx, ebx
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f873
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x10137ec0]
mov word [esi + 0x10], cx
jmp 0x1009f873
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x1009f95e
cmp byte [esi + 0x12], 1
jne 0x1009f95e
mov edx, dword [esi + 8]
mov eax, ebp
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x1009f990
test cl, 1
je 0x1009f972
mov eax, ebp
xor edx, edx
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x1009f990
mov dl, 1
mov ecx, esi
call fcn.1003eea0
mov edx, eax
mov eax, dword [ebx + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [ebx + 0x3c], eax
jmp 0x1009f990
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 0x1009fa23
cmp byte [eax + 0x10], 0
mov dword [esp + 0x20], 0
je 0x1009fa2b
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.1009f630
mov ebp, eax
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x3c], eax
test ebp, ebp
jne 0x100a0054
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 0x1009fb2a
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 0x1009fb0d
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1009faac
cmp dword [esp + 0x34], eax
jl 0x1009fb0d
jg 0x1009faac
cmp dword [esp + 0x30], eax
jbe 0x1009fb0d
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 0x1009faf3
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x10137eec]
movq qword [edx + 0x10], xmm0
mov cx, word [0x10137ef4]
mov word [edx + 0x18], cx
mov al, byte [0x10137ef6]
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 0x100a0054
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 0x1009fb2f
mov ebp, 1
mov cl, byte [esi + 9]
test cl, cl
je 0x1009fb49
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fb49
mov ecx, esi
call fcn.10030c60
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 0x1009fb73
add dword [esi + 0xc], 0xffffffff
jne 0x1009fb73
mov ecx, esi
call fcn.10030c40
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.100331f0
xor edx, edx
mov ecx, esi
call fcn.10033290
mov edx, eax
mov ecx, edi
call fcn.10033290
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x30], eax
je 0x1009fbcb
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009fbcb
mov ecx, edi
call fcn.10030c60
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
or ebp, 0x20
mov edx, ebp
call fcn.1002ab80
cmp byte [edi + 9], 0
je 0x1009fbea
add dword [edi + 0xc], 0xffffffff
jne 0x1009fbea
mov ecx, edi
call fcn.10030c40
mov edx, dword [esp + 0x14]
mov ecx, ebx
push str.BEGIN
call fcn.1009f550
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100a0054
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x8c], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100338c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100a0054
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x1009fc47
cmp dword [esp + 0x8c], ebp
jne 0x1009fc47
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.10033350
add esp, 8
test eax, eax
jne 0x100a004f
cmp dword [esp + 0x20], eax
jne 0x1009fc80
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push ebp
call fcn.10033350
add esp, 8
test eax, eax
jne 0x100a004f
cmp byte [ebx + 0x57], 0
jne 0x100a004f
mov al, byte [ebx + 0x5a]
test al, al
js 0x1009fc96
movsx ebp, al
jmp 0x1009fcdd
mov cl, byte [esi + 9]
test cl, cl
je 0x1009fcb0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fcb0
mov ecx, esi
call fcn.10030c60
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x1009fcbd
xor ebp, ebp
jmp 0x1009fccc
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x1009fcdd
add dword [esi + 0xc], 0xffffffff
jne 0x1009fcdd
mov ecx, esi
call fcn.10030c40
mov edx, ebp
mov ecx, edi
call fcn.10033490
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.1009f630
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0054
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x1c]
push ebx
call fcn.1009f630
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0054
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.1009f630
and dword [ebx + 0x18], 0xfffffffb
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0054
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.1009f630
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100a0054
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 0x1009fdac
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fdac
mov ecx, esi
call fcn.10030c60
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x30]
cmp ebp, 0xf
jne 0x1009fdbb
mov eax, dword [eax]
mov ebp, dword [eax + 0x6c]
add ebp, dword [esi + 0x14]
jmp 0x1009fdc7
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebp, dword [eax + ebp*4 + 0x24]
bswap ebp
test cl, cl
je 0x1009fdd8
add dword [esi + 0xc], 0xffffffff
jne 0x1009fdd8
mov ecx, esi
call fcn.10030c40
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.1003b8c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100a0054
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x1009fd80
cmp dword [esp + 0x8c], ebp
jne 0x1009ff4b
cmp byte [esi + 9], 0
je 0x1009fe38
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009fe38
mov ecx, esi
call fcn.10030c60
cmp byte [edi + 9], 0
je 0x1009fe4e
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009fe4e
mov ecx, edi
call fcn.10030c60
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebp, dword [eax + 0x40]
cmp dword [ebp], 0
je 0x1009fe9b
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.10117080
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 0x1009ff1d
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.1003d1e0
lea eax, [esp + 0x58]
push eax
call fcn.1003d7f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x1009ff09
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x18], cx
jmp 0x1009ff1d
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x1009ff1d
call fcn.10028fd0
cmp byte [edi + 9], 0
je 0x1009ff30
add dword [edi + 0xc], 0xffffffff
jne 0x1009ff30
mov ecx, edi
call fcn.10030c40
cmp byte [esi + 9], 0
je 0x1009ff43
add dword [esi + 0xc], 0xffffffff
jne 0x1009ff43
mov ecx, esi
call fcn.10030c40
test ebp, ebp
jne 0x100a0054
cmp byte [edi + 9], 0
je 0x1009ff61
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009ff61
mov ecx, edi
call fcn.10030c60
xor edx, edx
mov ecx, edi
call fcn.10034730
mov ebp, eax
test ebp, ebp
jne 0x1009ff7b
xor edx, edx
mov ecx, edi
call fcn.100348b0
mov ebp, eax
cmp byte [edi + 9], 0
je 0x1009ff8e
add dword [edi + 0xc], 0xffffffff
jne 0x1009ff8e
mov ecx, edi
call fcn.10030c40
test ebp, ebp
jne 0x100a0054
cmp dword [esp + 0x8c], ebp
jne 0x100a0054
mov cl, byte [edi + 9]
test cl, cl
je 0x1009ffbd
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1009ffbd
mov ecx, edi
call fcn.10030c60
mov cl, byte [edi + 9]
mov edx, dword [edi + 4]
cmp byte [edx + 0x11], 0
jne 0x1009ffca
xor ebp, ebp
jmp 0x1009ffd9
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [esp + 0x30], eax
mov ebp, eax
test cl, cl
je 0x1009ffea
add dword [edi + 0xc], 0xffffffff
jne 0x1009ffea
mov ecx, edi
call fcn.10030c40
mov edx, ebp
mov ecx, esi
call fcn.10033490
mov al, byte [edi + 9]
test al, al
je 0x100a000d
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100a000d
mov ecx, edi
call fcn.10030c60
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 0x100a0036
add dword [edi + 0xc], 0xffffffff
jne 0x100a0036
mov ecx, edi
call fcn.10030c40
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.10033350
add esp, 8
mov ebp, eax
jmp 0x100a0054
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.10033350
mov esi, dword [esp + 0x34]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x100a00c6
mov ecx, dword [esi + 4]
call fcn.10033090
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.10069100
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x74
ret