Function at 0x100a1720
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, 0x10103106
push edi
mov edi, edx
mov dword [esp + 0x14], ebx
call fcn.100d96c4
cmp byte [edi + 0x4f], 0
mov dword [esp + 0x30], 0
jne 0x100a176f
mov edx, dword [ebx]
test edx, edx
je 0x100a1754
mov ecx, edi
call fcn.1003eb40
mov edx, str.cannot_VACUUM_from_within_a_transaction
mov ecx, edi
call fcn.1003f060
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
cmp dword [edi + 0xac], 1
jle 0x100a17a0
mov edx, dword [ebx]
test edx, edx
je 0x100a1785
mov ecx, edi
call fcn.1003eb40
mov edx, str.cannot_VACUUM___SQL_statements_in_progress
mov ecx, edi
call fcn.1003f060
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov esi, dword [esp + 0x84]
mov ebp, dword [edi + 0x3c]
test esi, esi
je 0x100a1833
movzx ecx, word [esi + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [eax + 0x100e7ab0], 3
je 0x100a17e2
push str.non_text_filename
mov edx, edi
mov ecx, ebx
call fcn.1003f1b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x100a1806
cmp byte [esi + 0xa], 1
jne 0x100a1806
mov ecx, dword [esi + 0x10]
mov eax, ebp
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100a1838
test cl, 1
je 0x100a181a
mov eax, ebp
xor ecx, ecx
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100a1838
mov dl, 1
mov ecx, esi
call fcn.1005dcc0
mov ecx, eax
mov eax, dword [edi + 0x3c]
and eax, 0xfffffffe
or eax, 6
mov dword [edi + 0x3c], eax
jmp 0x100a1838
mov ecx, 0x100eac98
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ebx, dword [edi + 0x64]
mov dword [esp + 0x34], eax
or eax, 6
mov dword [edi + 0x24], esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x38], edx
and edx, 0xefffaf7f
mov dword [esp + 0x40], ebx
or edx, 0x201
mov ebx, dword [edi + 0x68]
shl esi, 4
mov dword [edi + 0x20], edx
mov dword [esp + 0x44], ebx
mov bl, byte [edi + 0x58]
mov byte [edi + 0x58], 0
mov edx, dword [esi + eax]
mov dword [esp + 0x80], esi
mov esi, dword [esi + eax + 4]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov byte [esp + 0x1b], bl
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
push ebx
push edi
mov eax, dword [eax]
mov dword [esp + 0x28], edx
mov al, byte [eax + 0xc]
mov byte [esp + 0x22], al
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], eax
call fcn.100a15d0
mov ebx, eax
mov dword [edi + 0x3c], ebp
add esp, 0x10
test ebx, ebx
jne 0x100a1cf6
mov eax, dword [esp + 0x20]
shl eax, 4
add eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov ebp, dword [eax + 4]
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x84], ebx
je 0x100a1940
mov eax, dword [ebp + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
movlpd qword [esp + 0x28], xmm0
cmp dword [ecx], ebx
je 0x100a193c
lea edx, [esp + 0x28]
call fcn.1003dde0
test eax, eax
jne 0x100a191f
cmp dword [esp + 0x2c], eax
jl 0x100a193c
jg 0x100a191f
cmp dword [esp + 0x28], eax
jbe 0x100a193c
mov ecx, dword [esp + 0x14]
mov edx, edi
push str.output_file_already_exists
mov ebx, 1
call fcn.1003f1b0
add esp, 4
jmp 0x100a1cf6
or dword [edi + 0x18], 8
mov cl, byte [esi + 9]
test cl, cl
je 0x100a195a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100a195a
mov ecx, esi
call fcn.10050a60
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x24]
mov dword [esp + 0x28], edx
test cl, cl
je 0x100a1978
add dword [esi + 0xc], 0xffffffff
jne 0x100a1978
mov ecx, esi
call fcn.10050a00
mov eax, dword [edi + 0x10]
mov ecx, ebp
mov edx, dword [esp + 0x80]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.100531a0
xor edx, edx
mov ecx, esi
call fcn.10053220
mov edx, eax
mov ecx, ebp
call fcn.10053220
mov edx, 0x21
mov ecx, ebp
call fcn.10053320
mov edx, dword [esp + 0x14]
mov ecx, edi
push str.BEGIN
call fcn.100a14c0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100a1cf6
xor edx, edx
mov ecx, esi
cmp dword [esp + 0x84], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.10053a40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100a1cf6
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x100a1a02
mov dword [edi + 0x5c], ebx
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x28]
mov ecx, ebp
mov edx, dword [edx + 0x20]
push 0
push ebx
call fcn.100533f0
add esp, 8
test eax, eax
jne 0x100a1cf1
cmp byte [esp + 0x12], al
jne 0x100a1a3b
mov edx, dword [edi + 0x5c]
mov ecx, ebp
push eax
push ebx
call fcn.100533f0
add esp, 8
test eax, eax
jne 0x100a1cf1
cmp byte [edi + 0x51], 0
jne 0x100a1cf1
mov al, byte [edi + 0x54]
test al, al
js 0x100a1a51
movsx eax, al
jmp 0x100a1a58
mov ecx, esi
call fcn.10053620
mov edx, eax
mov ecx, ebp
call fcn.100535a0
push dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebp
push edi
mov byte [edi + 0xa4], al
call fcn.100a15d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100a1cf6
push dword [esp + 0x18]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push ebp
push edi
call fcn.100a15d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100a1cf6
push dword [esp + 0x18]
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 ebp
push edi
call fcn.100a15d0
and dword [edi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100a1cf6
push dword [esp + 0x18]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebp
push edi
call fcn.100a15d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100a1cf6
xor ebp, ebp
nop
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
movzx ebx, byte [ebp + 0x100e2474]
mov dword [esp + 0x20], eax
test cl, cl
je 0x100a1b1c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100a1b1c
mov ecx, esi
call fcn.10050a60
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x20]
cmp ebx, 0xf
jne 0x100a1b2b
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [esi + 0x14]
jmp 0x100a1b37
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x100a1b48
add dword [esi + 0xc], 0xffffffff
jne 0x100a1b48
mov ecx, esi
call fcn.10050a00
movzx eax, byte [ebp + 0x100e2475]
movzx edx, byte [ebp + 0x100e2474]
add eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.1005aae0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100a1cf6
add ebp, 2
cmp ebp, 0xa
jl 0x100a1af0
cmp dword [esp + 0x84], eax
jne 0x100a1cad
cmp byte [esi + 9], al
je 0x100a1b9c
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x100a1b9c
mov ecx, esi
call fcn.10050a60
mov ebp, dword [esp + 0x1c]
cmp byte [ebp + 9], 0
je 0x100a1bb6
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x100a1bb6
mov ecx, ebp
call fcn.10050a60
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x3c]
cmp dword [ebx], 0
je 0x100a1c01
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x20]
cdq
push edx
push eax
push 0
push ecx
call fcn.100d9890
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx]
mov dword [esp + 0x28], edx
push 0xb
push ebx
mov eax, dword [eax + 0x28]
call eax
xor ebx, ebx
add esp, 0xc
cmp eax, 0xc
cmovne ebx, eax
test ebx, ebx
jne 0x100a1c81
mov eax, dword [ebp]
xorps xmm0, xmm0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push 0x7fffffff
push eax
mov dword [esp + 0x50], 0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], 1
call fcn.1005c1a0
lea eax, [esp + 0x50]
push eax
call fcn.1005c7d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100a1c6d
mov eax, dword [esi + 4]
mov ecx, 0xfffd
and word [eax + 0x16], cx
jmp 0x100a1c81
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp byte [ecx + 0xc], 0
jne 0x100a1c81
call fcn.10049880
cmp byte [ebp + 9], 0
je 0x100a1c94
add dword [ebp + 0xc], 0xffffffff
jne 0x100a1c94
mov ecx, ebp
call fcn.10050a00
cmp byte [esi + 9], 0
je 0x100a1ca7
add dword [esi + 0xc], 0xffffffff
jne 0x100a1ca7
mov ecx, esi
call fcn.10050a00
test ebx, ebx
jne 0x100a1cf6
jmp 0x100a1cb1
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
call fcn.100549b0
mov ebx, eax
test ebx, ebx
jne 0x100a1cf6
cmp dword [esp + 0x84], eax
jne 0x100a1cf6
mov ecx, ebp
call fcn.10053620
mov edx, eax
mov ecx, esi
call fcn.100535a0
mov eax, dword [ebp + 4]
mov ecx, esi
push 1
push dword [esp + 0x2c]
mov edx, dword [eax + 0x20]
call fcn.100533f0
add esp, 8
mov ebx, eax
jmp 0x100a1cf6
mov ebx, 7
mov eax, dword [esp + 0x34]
or edx, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, esi
mov eax, dword [esp + 0x38]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x68], eax
mov al, byte [esp + 0x13]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xa4], 0
mov byte [edi + 0x58], al
call fcn.100533f0
mov ebp, dword [esp + 0x38]
add esp, 8
mov byte [edi + 0x4f], 1
test ebp, ebp
je 0x100a1d5a
mov ecx, dword [ebp + 4]
call fcn.10053020
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
mov ecx, edi
call fcn.1007ed50
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x6c
ret