Function at 0x100b8c40
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0x30], 0
push esi
push edi
mov edi, ecx
cmp byte [ebx + 0x55], 0
mov dword [esp + 0x18], edi
jne 0x100b8caf
push 0
push 0x28
mov ecx, ebx
call fcn.10028280
mov esi, eax
add esp, 8
test esi, esi
je 0x100b8c93
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1016e0a4]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x1016e0b4]
movq qword [esi + 0x20], xmm0
mov edx, dword [edi]
test edx, edx
je 0x100b8ca0
mov ecx, ebx
call fcn.10027de0
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp dword [ebx + 0xbc], 1
jle 0x100b8d02
push 0
push 0x2b
mov ecx, ebx
call fcn.10028280
mov esi, eax
add esp, 8
test esi, esi
je 0x100b8c93
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1016e0cc]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [0x1016e0dc]
movq qword [esi + 0x20], xmm0
mov ax, word [0x1016e0e4]
mov word [esi + 0x28], ax
mov al, byte [0x1016e0e6]
mov byte [esi + 0x2a], al
jmp 0x100b8c93
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x100b8daa
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x3f
cmp byte [eax + 0x101665a8], 3
je 0x100b8d59
push 0
push 0x12
mov ecx, ebx
call fcn.10028280
mov esi, eax
add esp, 8
test esi, esi
je 0x100b8c93
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [esi], xmm0
mov cx, word [0x1016e0f8]
mov word [esi + 0x10], cx
jmp 0x100b8c93
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x100b8d7e
cmp byte [ecx + 0x12], 1
jne 0x100b8d7e
mov edx, dword [ecx + 8]
mov ecx, dword [ebx + 0x3c]
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x100b8daf
test dl, 1
je 0x100b8d93
mov ecx, dword [ebx + 0x3c]
xor edx, edx
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x100b8daf
mov dl, 1
call fcn.1004f390
mov ecx, dword [ebx + 0x3c]
mov edx, eax
and ecx, 0xfffffffe
or ecx, 6
mov dword [ebx + 0x3c], ecx
jmp 0x100b8daf
mov edx, 0x101675d3
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x68]
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x34], ecx
mov cl, byte [ebx + 0x5e]
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x34]
and ecx, 0xefffafff
mov dword [esp + 0x40], eax
or ecx, 0x201
mov dword [esp + 0x48], esi
mov esi, dword [ebx + 0x6c]
or eax, 6
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [esp + 0x4c], esi
mov esi, dword [ebx + 0x70]
mov dword [esp + 0x44], ebp
and ebp, 0xfffffffe
mov dword [ebx + 0x24], ebp
mov byte [ebx + 0x5e], 0
mov ebp, dword [ecx + eax]
mov dword [esp + 0x50], esi
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x54], esi
mov esi, dword [ecx + eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x100b8e3c
cmp byte [eax + 0x10], 0
mov dword [esp + 0x2c], 0
je 0x100b8e44
mov dword [esp + 0x2c], 1
mov eax, dword [ebx + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
mov dword [esp + 0x40], eax
call fcn.100b8a50
mov ebp, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x3c], eax
test ebp, ebp
jne 0x100b938e
mov eax, dword [esp + 0x30]
shl eax, 4
add eax, dword [ebx + 0x10]
mov dword [esp + 0x38], eax
mov edi, dword [eax + 4]
cmp dword [esp + 0x64], ebp
je 0x100b8f41
mov eax, dword [edi + 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 0x100b8f27
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100b8ec2
cmp dword [esp + 0x24], eax
jg 0x100b8ec2
jl 0x100b8f27
cmp dword [esp + 0x20], eax
jbe 0x100b8f27
push 0
push 0x1b
mov ecx, ebx
mov ebp, 1
call fcn.10028280
mov edx, eax
add esp, 8
mov dword [esp + 0x30], edx
test edx, edx
je 0x100b8f09
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x1016e124]
movq qword [edx + 0x10], xmm0
mov cx, word [0x1016e12c]
mov word [edx + 0x18], cx
mov al, byte [0x1016e12e]
mov byte [edx + 0x1a], al
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, eax
je 0x100b8f20
mov edx, eax
mov ecx, ebx
call fcn.10027de0
mov edx, dword [esp + 0x30]
mov dword [edi], edx
jmp 0x100b938e
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x3c]
or dword [ebx + 0x18], 8
movzx ebp, byte [ecx + eax + 8]
mov eax, dword [ebx + 0x20]
and eax, 0x38
or ebp, eax
jmp 0x100b8f46
mov ebp, 1
cmp byte [esi + 9], 0
je 0x100b8f5c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100b8f5c
mov ecx, esi
call fcn.1003fd90
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x28]
cmp byte [esi + 9], 0
movzx edx, byte [eax + 0x16]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ecx
je 0x100b8f8c
add dword [esi + 0xc], 0xffffffff
jne 0x100b8f8c
mov ecx, esi
call fcn.1003fd70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x10]
cmp edx, ecx
cmovg ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x60]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.10042a20
xor edx, edx
mov ecx, esi
call fcn.10042ac0
mov edx, eax
mov ecx, edi
call fcn.10042ac0
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
je 0x100b8fdf
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100b8fdf
mov ecx, edi
call fcn.1003fd90
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
or ebp, 0x20
mov edx, ebp
call fcn.100385d0
cmp byte [edi + 9], 0
je 0x100b8ffe
add dword [edi + 0xc], 0xffffffff
jne 0x100b8ffe
mov ecx, edi
call fcn.1003fd70
mov edx, dword [esp + 0x18]
mov ecx, ebx
push str.BEGIN
call fcn.100b8870
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100b938e
mov ecx, dword [esp + 0x64]
xor edx, edx
test ecx, ecx
mov eax, 2
cmove edx, eax
cmp byte [esi + 9], 0
jne 0x100b9044
mov al, byte [esi + 8]
test al, al
je 0x100b9044
cmp al, 1
jne 0x100b90c2
test ecx, ecx
jne 0x100b905e
push 0
mov ecx, esi
call fcn.100430f0
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x100b938e
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x100b9070
test ecx, ecx
jne 0x100b9070
mov dword [ebx + 0x64], ecx
mov eax, dword [esi + 4]
mov ecx, edi
mov ebp, dword [esp + 0x20]
push 0
push ebp
mov edx, dword [eax + 0x24]
call fcn.10042bb0
add esp, 8
test eax, eax
jne 0x100b9389
cmp dword [esp + 0x2c], eax
jne 0x100b90ac
mov edx, dword [ebx + 0x64]
mov ecx, edi
push eax
push ebp
call fcn.10042bb0
add esp, 8
test eax, eax
jne 0x100b9389
cmp byte [ebx + 0x57], 0
jne 0x100b9389
mov al, byte [ebx + 0x5a]
test al, al
js 0x100b90ef
movsx ebp, al
jmp 0x100b9134
test ecx, ecx
jne 0x100b905e
mov eax, dword [esi]
mov edx, dword [eax + 0x1f8]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp edx, dword [ecx + 0x68]
jle 0x100b90e8
cmp byte [ecx + 6], 0
je 0x100b90e8
call fcn.1003afe0
jmp 0x100b9050
xor ebp, ebp
jmp 0x100b9052
cmp byte [esi + 9], 0
je 0x100b9105
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100b9105
mov ecx, esi
call fcn.1003fd90
mov ecx, dword [esi + 4]
cmp byte [ecx + 0x11], 0
jne 0x100b9112
xor ebp, ebp
jmp 0x100b9121
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [esp + 0x3c], eax
mov ebp, eax
cmp byte [esi + 9], 0
je 0x100b9134
add dword [esi + 0xc], 0xffffffff
jne 0x100b9134
mov ecx, esi
call fcn.1003fd70
mov edx, ebp
mov ecx, edi
call fcn.10042cf0
push dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [esp + 0x20]
mov byte [ebx + 0xb0], al
push ebx
call fcn.100b8a50
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100b938e
push dword [esp + 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push dword [esp + 0x20]
push ebx
call fcn.100b8a50
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100b938e
push dword [esp + 0x1c]
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 + 0x20]
push ebx
call fcn.100b8a50
and dword [ebx + 0x18], 0xfffffffb
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100b938e
push dword [esp + 0x1c]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [esp + 0x20]
push ebx
call fcn.100b8a50
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x100b938e
mov dword [esp + 0x20], eax
nop word [eax + eax]
cmp byte [esi + 9], 0
movzx ebp, byte [eax + 0x1015ebb0]
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
je 0x100b9208
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100b9208
mov ecx, esi
call fcn.1003fd90
mov eax, dword [esp + 0x3c]
cmp ebp, 0xf
jne 0x100b9217
mov eax, dword [eax]
mov ebp, dword [eax + 0x6c]
add ebp, dword [esi + 0x14]
jmp 0x100b9223
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebp, dword [eax + ebp*4 + 0x24]
bswap ebp
cmp byte [esi + 9], 0
je 0x100b9236
add dword [esi + 0xc], 0xffffffff
jne 0x100b9236
mov ecx, esi
call fcn.1003fd70
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + 0x1015ebb1]
movzx edx, byte [ecx + 0x1015ebb0]
add eax, ebp
push eax
mov ecx, edi
call fcn.1004b840
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100b938e
mov eax, dword [esp + 0x20]
add eax, 2
mov dword [esp + 0x20], eax
cmp eax, 0xa
jl 0x100b91e0
cmp dword [esp + 0x64], ebp
jne 0x100b928c
mov edx, edi
mov ecx, esi
call fcn.1004db60
mov ebp, eax
test ebp, ebp
jne 0x100b938e
cmp byte [edi + 9], 0
je 0x100b92a2
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100b92a2
mov ecx, edi
call fcn.1003fd90
xor edx, edx
mov ecx, edi
call fcn.10043f80
mov ebp, eax
test ebp, ebp
jne 0x100b92bc
xor edx, edx
mov ecx, edi
call fcn.10044150
mov ebp, eax
cmp byte [edi + 9], 0
je 0x100b92cf
add dword [edi + 0xc], 0xffffffff
jne 0x100b92cf
mov ecx, edi
call fcn.1003fd70
test ebp, ebp
jne 0x100b938e
cmp dword [esp + 0x64], ebp
jne 0x100b938e
cmp byte [edi + 9], 0
je 0x100b92f7
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100b92f7
mov ecx, edi
call fcn.1003fd90
mov ecx, dword [edi + 4]
cmp byte [ecx + 0x11], 0
jne 0x100b9304
xor ebp, ebp
jmp 0x100b9313
xor eax, eax
cmp byte [ecx + 0x12], al
setne al
inc eax
mov dword [esp + 0x3c], eax
mov ebp, eax
cmp byte [edi + 9], 0
je 0x100b9326
add dword [edi + 0xc], 0xffffffff
jne 0x100b9326
mov ecx, edi
call fcn.1003fd70
mov edx, ebp
mov ecx, esi
call fcn.10042cf0
cmp byte [edi + 9], 0
je 0x100b9345
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100b9345
mov ecx, edi
call fcn.1003fd90
mov eax, dword [edi + 4]
mov ebp, dword [eax + 0x24]
movzx ecx, byte [eax + 0x16]
sub ebp, dword [eax + 0x28]
cmp byte [edi + 9], 0
mov dword [esp + 0x3c], ecx
je 0x100b936d
add dword [edi + 0xc], 0xffffffff
jne 0x100b936d
mov ecx, edi
call fcn.1003fd70
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + 4]
cmp ecx, ebp
push 1
cmovg ebp, ecx
mov ecx, esi
push ebp
mov edx, dword [eax + 0x24]
call fcn.10042bb0
add esp, 8
mov ebp, eax
jmp 0x100b938e
mov ebp, 7
mov eax, dword [esp + 0x40]
or edx, 0xffffffff
mov dword [ebx + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x74], eax
mov al, byte [esp + 0x17]
push 1
push 0
mov byte [ebx + 0xb0], 0
mov byte [ebx + 0x5e], al
call fcn.10042bb0
mov esi, dword [esp + 0x40]
add esp, 8
mov byte [ebx + 0x55], 1
test esi, esi
je 0x100b9400
mov ecx, dword [esi + 4]
call fcn.10042820
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov ecx, ebx
call fcn.1007c290
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x4c
ret