Function at 0x100c1570
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x38], 0
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
cmp byte [esi + 0x4f], 0
mov dword [ebp - 0x24], ecx
jne 0x100c15f9
mov edx, dword [edi]
test edx, edx
je 0x100c15ad
mov ecx, esi
call fcn.10050db0
push 0
push 0x28
mov ecx, esi
call fcn.100510a0
add esp, 8
test eax, eax
je 0x100c15e1
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x101cf3c8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x101cf3d8]
movq qword [eax + 0x20], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x100c166f
mov edx, dword [edi]
test edx, edx
je 0x100c160f
mov ecx, esi
call fcn.10050db0
push 0
push 0x2b
mov ecx, esi
call fcn.100510a0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100c1657
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x101cf3f0]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x101cf400]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x101cf408]
mov word [ecx + 0x28], ax
mov al, byte [0x101cf40a]
mov byte [ecx + 0x2a], al
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x100c16ee
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x101b9ca0], 3
je 0x100c16d5
mov edx, dword [edi]
test edx, edx
je 0x100c1696
mov ecx, esi
call fcn.10050db0
push 0
push 0x12
mov ecx, esi
call fcn.100510a0
add esp, 8
test eax, eax
je 0x100c16bd
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x101cf41c]
mov word [eax + 0x10], cx
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret
push ecx
call fcn.10077320
mov ecx, dword [esi + 0x3c]
add esp, 4
and ecx, 0xfffffffe
mov edx, eax
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x100c16f3
mov edx, 0x101b2535
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x3c], eax
or eax, 6
mov edi, dword [esi + 0x64]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
and eax, 0xfffffffe
mov cl, byte [esi + 0x58]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x10]
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp - 0x30]
and ecx, 0xefffafff
shl ebx, 4
mov byte [esi + 0x58], 0
or ecx, 0x201
mov dword [esi + 0x20], ecx
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax + ebx]
mov ebx, dword [eax + ebx + 4]
push edx
mov dword [ebp - 0x40], edi
mov edi, dword [esi + 0x68]
mov eax, dword [ebx + 4]
push str.ATTACH__Q_AS_vacuum_db
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [eax]
push edi
push esi
mov dword [ebp - 0x18], ecx
mov al, byte [eax + 0xc]
mov byte [ebp - 0x19], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
call fcn.100c1430
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x100c1aa6
mov eax, dword [ebp - 0x2c]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x38], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
je 0x100c1842
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
movlpd qword [ebp - 0x10], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x100c183e
mov edi, dword [ecx + 0x18]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
test eax, eax
jne 0x100c17de
cmp dword [ebp - 0xc], eax
jl 0x100c183b
jg 0x100c17de
cmp dword [ebp - 0x10], eax
jbe 0x100c183b
mov eax, dword [ebp - 0x14]
mov edi, 1
mov edx, dword [eax]
test edx, edx
je 0x100c17f3
mov ecx, esi
call fcn.10050db0
push 0
push 0x1b
mov ecx, esi
call fcn.100510a0
mov edx, eax
add esp, 8
test edx, edx
je 0x100c1831
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x101cf448]
movq qword [edx + 0x10], xmm0
mov cx, word [0x101cf450]
mov word [edx + 0x18], cx
mov al, byte [0x101cf452]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x100c1aa6
mov edi, dword [ebp - 0x20]
or dword [esi + 0x18], 8
mov ecx, ebx
call fcn.100664c0
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov edx, dword [ecx + edx + 0xc]
mov ecx, edi
mov edx, dword [edx + 0x50]
call fcn.100661f0
xor edx, edx
mov ecx, ebx
call fcn.10066280
mov edx, eax
mov ecx, edi
call fcn.10066280
mov edx, 0x21
mov ecx, edi
call fcn.10066330
mov edx, dword [ebp - 0x14]
mov ecx, esi
push str.BEGIN
call fcn.100c1350
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c1aa6
xor edx, edx
mov ecx, ebx
cmp dword [ebp - 0x24], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10066a80
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c1aa6
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100c18cd
mov dword [esi + 0x5c], edi
mov edx, dword [ebx + 4]
mov edi, dword [ebp - 0x20]
mov ecx, edi
mov edx, dword [edx + 0x24]
push 0
push dword [ebp - 0xc]
call fcn.100663f0
add esp, 8
test eax, eax
jne 0x100c1aa1
cmp byte [ebp - 0x19], al
jne 0x100c1908
mov edx, dword [esi + 0x5c]
mov ecx, edi
push eax
push dword [ebp - 0xc]
call fcn.100663f0
add esp, 8
test eax, eax
jne 0x100c1aa1
cmp byte [esi + 0x51], 0
jne 0x100c1aa1
mov al, byte [esi + 0x54]
test al, al
js 0x100c191e
movsx eax, al
jmp 0x100c1925
mov ecx, ebx
call fcn.10066650
mov edx, eax
mov ecx, edi
call fcn.100665d0
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x14]
mov byte [esi + 0xa4], al
push esi
call fcn.100c1430
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c1aa6
push dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0x14]
push esi
call fcn.100c1430
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c1aa6
push dword [ebp - 0x18]
mov byte [esi + 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 - 0x14]
push esi
call fcn.100c1430
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c1aa6
push dword [ebp - 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x14]
push esi
call fcn.100c1430
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c1aa6
mov dword [ebp - 0x18], eax
nop dword [eax]
mov cl, byte [ebx + 9]
movzx edi, byte [eax + 0x101b569c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
test cl, cl
je 0x100c19ea
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c19ea
mov ecx, ebx
call fcn.10063b20
mov cl, byte [ebx + 9]
mov eax, dword [ebp - 0x28]
cmp edi, 0xf
jne 0x100c19f9
mov eax, dword [eax]
mov edi, dword [eax + 0x64]
add edi, dword [ebx + 0x14]
jmp 0x100c1a05
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + edi*4 + 0x24]
bswap edi
test cl, cl
je 0x100c1a16
add dword [ebx + 0xc], 0xffffffff
jne 0x100c1a16
mov ecx, ebx
call fcn.10063ad0
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ecx + 0x101b569d]
movzx edx, byte [ecx + 0x101b569c]
add eax, edi
mov ecx, dword [ebp - 0x20]
push eax
call fcn.1006e090
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c1aa6
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, 0xa
jl 0x100c19c0
cmp dword [ebp - 0x24], edi
jne 0x100c1a62
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.10070110
mov edi, eax
test edi, edi
jne 0x100c1aa6
mov ecx, dword [ebp - 0x20]
call fcn.100679c0
mov edi, eax
test edi, edi
jne 0x100c1aa6
cmp dword [ebp - 0x24], eax
jne 0x100c1aa6
mov edi, dword [ebp - 0x20]
mov ecx, edi
call fcn.10066650
mov edx, eax
mov ecx, ebx
call fcn.100665d0
mov eax, dword [edi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
call fcn.100663f0
add esp, 8
mov edi, eax
jmp 0x100c1aa6
mov edi, 7
mov eax, dword [ebp - 0x3c]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x68], eax
mov al, byte [ebp - 0x1a]
push 1
push 0
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.100663f0
mov ebx, dword [ebp - 0x38]
add esp, 8
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x100c1b03
mov ecx, dword [ebx + 4]
call fcn.10066030
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.10096e50
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret