Function at 0x100c1fc0
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 0x100c2049
mov edx, dword [edi]
test edx, edx
je 0x100c1ffd
mov ecx, esi
call fcn.10051800
push 0
push 0x28
mov ecx, esi
call fcn.10051af0
add esp, 8
test eax, eax
je 0x100c2031
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x101cf1c8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x101cf1d8]
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.1015c875
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xb0], 1
jle 0x100c20bf
mov edx, dword [edi]
test edx, edx
je 0x100c205f
mov ecx, esi
call fcn.10051800
push 0
push 0x2b
mov ecx, esi
call fcn.10051af0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x100c20a7
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x101cf1f0]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x101cf200]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x101cf208]
mov word [ecx + 0x28], ax
mov al, byte [0x101cf20a]
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.1015c875
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x100c213e
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x101b9c20], 3
je 0x100c2125
mov edx, dword [edi]
test edx, edx
je 0x100c20e6
mov ecx, esi
call fcn.10051800
push 0
push 0x12
mov ecx, esi
call fcn.10051af0
add esp, 8
test eax, eax
je 0x100c210d
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [eax], xmm0
mov cx, word [0x101cf21c]
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.1015c875
mov esp, ebp
pop ebp
ret
push ecx
call fcn.10077d70
mov ecx, dword [esi + 0x3c]
add esp, 4
and ecx, 0xfffffffe
mov edx, eax
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x100c2143
mov edx, 0x101b24b5
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.100c1e80
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x100c24f6
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 0x100c2292
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 0x100c228e
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 0x100c222e
cmp dword [ebp - 0xc], eax
jl 0x100c228b
jg 0x100c222e
cmp dword [ebp - 0x10], eax
jbe 0x100c228b
mov eax, dword [ebp - 0x14]
mov edi, 1
mov edx, dword [eax]
test edx, edx
je 0x100c2243
mov ecx, esi
call fcn.10051800
push 0
push 0x1b
mov ecx, esi
call fcn.10051af0
mov edx, eax
add esp, 8
test edx, edx
je 0x100c2281
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [edx], xmm0
movq xmm0, qword [0x101cf248]
movq qword [edx + 0x10], xmm0
mov cx, word [0x101cf250]
mov word [edx + 0x18], cx
mov al, byte [0x101cf252]
mov byte [edx + 0x1a], al
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x100c24f6
mov edi, dword [ebp - 0x20]
or dword [esi + 0x18], 8
mov ecx, ebx
call fcn.10066f10
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.10066c40
xor edx, edx
mov ecx, ebx
call fcn.10066cd0
mov edx, eax
mov ecx, edi
call fcn.10066cd0
mov edx, 0x21
mov ecx, edi
call fcn.10066d80
mov edx, dword [ebp - 0x14]
mov ecx, esi
push str.BEGIN
call fcn.100c1da0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c24f6
xor edx, edx
mov ecx, ebx
cmp dword [ebp - 0x24], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100674d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c24f6
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100c231d
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.10066e40
add esp, 8
test eax, eax
jne 0x100c24f1
cmp byte [ebp - 0x19], al
jne 0x100c2358
mov edx, dword [esi + 0x5c]
mov ecx, edi
push eax
push dword [ebp - 0xc]
call fcn.10066e40
add esp, 8
test eax, eax
jne 0x100c24f1
cmp byte [esi + 0x51], 0
jne 0x100c24f1
mov al, byte [esi + 0x54]
test al, al
js 0x100c236e
movsx eax, al
jmp 0x100c2375
mov ecx, ebx
call fcn.100670a0
mov edx, eax
mov ecx, edi
call fcn.10067020
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.100c1e80
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c24f6
push dword [ebp - 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0x14]
push esi
call fcn.100c1e80
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c24f6
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.100c1e80
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c24f6
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.100c1e80
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c24f6
mov dword [ebp - 0x18], eax
nop dword [eax]
mov cl, byte [ebx + 9]
movzx edi, byte [eax + 0x101b561c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
test cl, cl
je 0x100c243a
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100c243a
mov ecx, ebx
call fcn.10064570
mov cl, byte [ebx + 9]
mov eax, dword [ebp - 0x28]
cmp edi, 0xf
jne 0x100c2449
mov eax, dword [eax]
mov edi, dword [eax + 0x64]
add edi, dword [ebx + 0x14]
jmp 0x100c2455
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + edi*4 + 0x24]
bswap edi
test cl, cl
je 0x100c2466
add dword [ebx + 0xc], 0xffffffff
jne 0x100c2466
mov ecx, ebx
call fcn.10064520
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ecx + 0x101b561d]
movzx edx, byte [ecx + 0x101b561c]
add eax, edi
mov ecx, dword [ebp - 0x20]
push eax
call fcn.1006eae0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100c24f6
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, 0xa
jl 0x100c2410
cmp dword [ebp - 0x24], edi
jne 0x100c24b2
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.10070b60
mov edi, eax
test edi, edi
jne 0x100c24f6
mov ecx, dword [ebp - 0x20]
call fcn.10068410
mov edi, eax
test edi, edi
jne 0x100c24f6
cmp dword [ebp - 0x24], eax
jne 0x100c24f6
mov edi, dword [ebp - 0x20]
mov ecx, edi
call fcn.100670a0
mov edx, eax
mov ecx, ebx
call fcn.10067020
mov eax, dword [edi + 4]
mov ecx, ebx
push 1
push dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
call fcn.10066e40
add esp, 8
mov edi, eax
jmp 0x100c24f6
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.10066e40
mov ebx, dword [ebp - 0x38]
add esp, 8
mov byte [esi + 0x4f], 1
test ebx, ebx
je 0x100c2553
mov ecx, dword [ebx + 4]
call fcn.10066a80
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.100978a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret