Function at 0x100c1b20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x2c], 0
mov esi, ecx
mov dword [ebp - 0xc], esi
cmp byte [edi + 0x4f], 0
jne 0x100c1bc4
mov edx, dword [esi]
test edx, edx
je 0x100c1b82
cmp dword [edi + 0x1e8], 0
je 0x100c1b59
mov ecx, edi
call fcn.1004de80
jmp 0x100c1b82
cmp edx, dword [edi + 0x138]
jb 0x100c1b79
cmp edx, dword [edi + 0x13c]
jae 0x100c1b79
mov eax, dword [edi + 0x134]
mov dword [edx], eax
mov dword [edi + 0x134], edx
jmp 0x100c1b82
push edx
call fcn.1004ddd0
add esp, 4
push 0
push 0x28
mov ecx, edi
call fcn.1004e240
add esp, 8
test eax, eax
je 0x100c1bb6
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x101ffce8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x101ffcf8]
movq qword [eax + 0x20], xmm0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0xac], 1
jle 0x100c1c6a
mov ecx, dword [esi]
test ecx, ecx
je 0x100c1c14
cmp dword [edi + 0x1e8], 0
je 0x100c1beb
mov edx, ecx
mov ecx, edi
call fcn.1004de80
jmp 0x100c1c14
cmp ecx, dword [edi + 0x138]
jb 0x100c1c0b
cmp ecx, dword [edi + 0x13c]
jae 0x100c1c0b
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x100c1c14
push ecx
call fcn.1004ddd0
add esp, 4
push 0
push 0x2b
mov ecx, edi
call fcn.1004e240
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100c1c5c
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x101ffd10]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x101ffd20]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x101ffd28]
mov word [ecx + 0x28], ax
mov al, byte [0x101ffd2a]
mov byte [ecx + 0x2a], al
mov dword [esi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x1c], edx
test ebx, ebx
je 0x100c1d56
movzx ecx, word [ebx + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x101ed0b8], 3
je 0x100c1d05
mov ecx, dword [esi]
test ecx, ecx
je 0x100c1cd0
cmp dword [edi + 0x1e8], 0
je 0x100c1ca7
mov edx, ecx
mov ecx, edi
call fcn.1004de80
jmp 0x100c1cd0
cmp ecx, dword [edi + 0x138]
jb 0x100c1cc7
cmp ecx, dword [edi + 0x13c]
jae 0x100c1cc7
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x100c1cd0
push ecx
call fcn.1004ddd0
add esp, 4
push 0
push 0x12
mov ecx, edi
call fcn.1004e240
add esp, 8
test eax, eax
je 0x100c1cf7
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x101ffd3c]
mov word [eax + 0x10], cx
mov dword [esi], 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 0x100c1d29
cmp byte [ebx + 0xa], 1
jne 0x100c1d29
mov ecx, dword [ebx + 0x10]
mov eax, edx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100c1d5b
test cl, 1
je 0x100c1d3d
mov eax, edx
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100c1d5b
mov dl, 1
mov ecx, ebx
call fcn.1006e920
mov ecx, eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100c1d5b
mov ecx, 0x101e84c3
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x64]
mov dword [ebp - 0x34], edx
and edx, 0xefffaf7f
mov dword [ebp - 0x30], eax
or edx, 0x201
mov dword [edi + 0x20], edx
or eax, 6
mov edx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], ebx
mov bl, byte [edi + 0x58]
shl edx, 4
mov byte [edi + 0x58], 0
mov byte [ebp - 3], bl
mov ebx, dword [ebp - 0x28]
mov dword [edi + 0x24], ebx
mov ebx, dword [eax + edx]
mov dword [ebp - 0x10], ebx
mov ebx, dword [eax + edx + 4]
push ecx
mov dword [ebp - 0x38], esi
mov esi, dword [edi + 0x68]
mov eax, dword [ebx + 4]
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0xc]
mov eax, dword [eax]
push esi
push edi
mov dword [ebp + 8], edx
mov al, byte [eax + 0xc]
mov byte [ebp - 2], al
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
call fcn.100c18f0
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x3c], eax
test esi, esi
jne 0x100c232c
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [edi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x2c], eax
mov esi, dword [eax + 4]
mov dword [ebp - 8], esi
je 0x100c1ee5
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x20], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100c1ee1
mov esi, dword [ecx + 0x18]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, esi
call dword [0x101d3368]
call esi
add esp, 8
test eax, eax
jne 0x100c1e4b
cmp dword [ebp - 0x1c], eax
jl 0x100c1ede
jg 0x100c1e4b
cmp dword [ebp - 0x20], eax
jbe 0x100c1ede
mov eax, dword [ebp - 0xc]
mov esi, 1
mov ecx, dword [eax]
test ecx, ecx
je 0x100c1e96
cmp dword [edi + 0x1e8], 0
je 0x100c1e6d
mov edx, ecx
mov ecx, edi
call fcn.1004de80
jmp 0x100c1e96
cmp ecx, dword [edi + 0x138]
jb 0x100c1e8d
cmp ecx, dword [edi + 0x13c]
jae 0x100c1e8d
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x100c1e96
push ecx
call fcn.1004ddd0
add esp, 4
push 0
push 0x1b
mov ecx, edi
call fcn.1004e240
mov edx, eax
add esp, 8
test edx, edx
je 0x100c1ed4
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x101ffd68]
movq qword [edx + 0x10], xmm0
mov cx, word [0x101ffd70]
mov word [edx + 0x18], cx
mov al, byte [0x101ffd72]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x100c232c
mov esi, dword [ebp - 8]
or dword [edi + 0x18], 8
mov cl, byte [ebx + 9]
test cl, cl
je 0x100c1eff
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c1eff
mov ecx, ebx
call fcn.10060a40
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [ebp - 0x14], edx
test cl, cl
je 0x100c1f1c
add dword [ebx + 0xc], 0xffffffff
jne 0x100c1f1c
mov ecx, ebx
call fcn.10060a10
mov eax, dword [edi + 0x10]
mov ecx, esi
mov edx, dword [ebp + 8]
mov edx, dword [eax + edx + 0xc]
mov edx, dword [edx + 0x50]
call fcn.10063040
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 1], cl
test cl, cl
je 0x100c1f5c
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
mov byte [ebp - 1], cl
jne 0x100c1f5c
mov ecx, ebx
call fcn.10060a40
mov al, byte [ebx + 9]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xd4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0x10]
test eax, eax
jns 0x100c1f92
mov eax, dword [ecx + 0x1c]
add eax, dword [ecx + 0x18]
cdq
mov esi, eax
mov eax, ecx
push edx
mov edx, 0xfffffc00
push esi
mov eax, dword [eax + 0x10]
imul edx
push edx
push eax
call fcn.101b00c0
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x14]
cmp eax, ecx
cmovge ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x1c], ecx
je 0x100c1fb3
add dword [ebx + 0xc], 0xffffffff
jne 0x100c1fb3
mov ecx, ebx
call fcn.10060a10
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
mov ecx, esi
call fcn.100630d0
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
je 0x100c1fdb
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c1fdb
mov ecx, esi
call fcn.10060a40
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov word [eax + 7], 1
mov byte [eax + 9], 0
cmp byte [eax + 7], 0
setne cl
dec cl
and cl, 2
mov dl, cl
mov byte [eax + 0xa], cl
shl dl, 2
cmp byte [eax + 8], 0
mov byte [eax + 0xb], dl
je 0x100c2009
or cl, dl
mov byte [eax + 0xb], cl
and byte [eax + 0x14], 0xfe
cmp byte [esi + 9], 0
je 0x100c2020
add dword [esi + 0xc], 0xffffffff
jne 0x100c2020
mov ecx, esi
call fcn.10060a10
mov edx, dword [ebp - 0xc]
mov ecx, edi
push str.BEGIN
call fcn.100c1810
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
xor edx, edx
mov ecx, ebx
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10063880
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100c2075
mov dword [edi + 0x5c], 0
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x20]
mov ecx, esi
push 0
push dword [ebp - 0x14]
call fcn.10063250
add esp, 8
test eax, eax
jne 0x100c2322
cmp byte [ebp - 2], al
jne 0x100c20ad
mov edx, dword [edi + 0x5c]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.10063250
add esp, 8
test eax, eax
jne 0x100c2322
cmp byte [edi + 0x51], 0
jne 0x100c2322
mov al, byte [edi + 0x54]
test al, al
js 0x100c20c3
movsx edx, al
jmp 0x100c210f
mov cl, byte [ebx + 9]
test cl, cl
je 0x100c20dd
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c20dd
mov ecx, ebx
call fcn.10060a40
mov cl, byte [ebx + 9]
mov edx, dword [ebx + 4]
cmp byte [edx + 0x11], 0
jne 0x100c20ef
mov dword [ebp - 0x1c], 0
jmp 0x100c20fb
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x1c], eax
test cl, cl
je 0x100c210c
add dword [ebx + 0xc], 0xffffffff
jne 0x100c210c
mov ecx, ebx
call fcn.10060a10
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10063370
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0xc]
mov byte [edi + 0xa4], al
push edi
call fcn.100c18f0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
push dword [ebp - 0x10]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0xc]
push edi
call fcn.100c18f0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
push dword [ebp - 0x10]
mov byte [edi + 0xa4], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
push dword [ebp - 0xc]
push edi
call fcn.100c18f0
and dword [edi + 0x18], 0xfffffffb
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
push dword [ebp - 0x10]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0xc]
push edi
call fcn.100c18f0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
movzx edx, byte [eax + 0x101e89ec]
mov cl, byte [ebx + 9]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
test cl, cl
je 0x100c21e0
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c21e0
mov ecx, ebx
call fcn.10060a40
mov cl, byte [ebx + 9]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmp edx, 0xf
jne 0x100c21ef
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [ebx + 0x14]
jmp 0x100c21fb
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + edx*4 + 0x24]
bswap eax
mov dword [ebp - 0x24], eax
test cl, cl
je 0x100c220f
add dword [ebx + 0xc], 0xffffffff
jne 0x100c220f
mov ecx, ebx
call fcn.10060a10
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + 0x101e89ed]
add eax, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x101e89ec]
mov ecx, esi
push eax
call fcn.1006b3d0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jl 0x100c21b0
cmp dword [ebp + 0xc], 0
jne 0x100c2265
mov edx, esi
mov ecx, ebx
call fcn.1006d690
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2329
cmp byte [esi + 9], 0
je 0x100c227b
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c227b
mov ecx, esi
call fcn.10060a40
xor edx, edx
mov ecx, esi
call fcn.10064720
mov dword [ebp - 8], eax
test eax, eax
jne 0x100c2297
xor edx, edx
mov ecx, esi
call fcn.100648c0
mov dword [ebp - 8], eax
cmp byte [esi + 9], 0
je 0x100c22aa
add dword [esi + 0xc], 0xffffffff
jne 0x100c22aa
mov ecx, esi
call fcn.10060a10
cmp dword [ebp - 8], 0
jne 0x100c2329
cmp dword [ebp + 0xc], 0
jne 0x100c2329
mov cl, byte [esi + 9]
test cl, cl
je 0x100c22d0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c22d0
mov ecx, esi
call fcn.10060a40
mov cl, byte [esi + 9]
mov edx, dword [esi + 4]
cmp byte [edx + 0x11], 0
jne 0x100c22e2
mov dword [ebp - 0x24], 0
jmp 0x100c22ee
xor eax, eax
cmp byte [edx + 0x12], al
setne al
inc eax
mov dword [ebp - 0x24], eax
test cl, cl
je 0x100c22ff
add dword [esi + 0xc], 0xffffffff
jne 0x100c22ff
mov ecx, esi
call fcn.10060a10
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10063370
mov eax, dword [esi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
call fcn.10063250
add esp, 8
mov esi, eax
jmp 0x100c232c
mov esi, 7
jmp 0x100c232c
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x68], eax
mov al, byte [ebp - 3]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xa4], 0
mov byte [edi + 0x58], al
call fcn.10063250
mov ebx, dword [ebp - 0x2c]
add esp, 8
mov byte [edi + 0x4f], 1
test ebx, ebx
je 0x100c2389
mov ecx, dword [ebx + 4]
call fcn.10062e80
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, edi
call fcn.100939f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret