Function at 0x10149b80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x4f], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edi
jne 0x10149c32
mov ecx, dword [ebx]
test ecx, ecx
je 0x10149bf6
cmp dword [esi + 0x1e0], 0
je 0x10149bcd
mov edx, ecx
mov ecx, esi
call fcn.100dfdb0
jmp 0x10149bf6
cmp ecx, dword [esi + 0x130]
jb 0x10149bed
cmp ecx, dword [esi + 0x134]
jae 0x10149bed
mov eax, dword [esi + 0x12c]
mov dword [ecx], eax
mov dword [esi + 0x12c], ecx
jmp 0x10149bf6
push ecx
call fcn.100dfd40
add esp, 4
push 0
push 0x28
mov ecx, esi
call fcn.100e0100
mov esi, eax
add esp, 8
test esi, esi
je 0x10149c1a
push 0x28
push str.cannot_VACUUM_from_within_a_transaction
push esi
call fcn.101ec960
add esp, 0xc
mov dword [ebx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xac], 1
jle 0x10149c60
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, esi
call fcn.100e0470
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10149ccf
movzx ecx, word [edi + 8]
mov eax, ecx
and eax, 0x1f
cmp byte [eax + 0x102668c8], 3
je 0x10149c9d
push str.non_text_filename
mov edx, esi
mov ecx, ebx
call fcn.100e0470
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x10149cb6
cmp byte [edi + 0xa], 1
jne 0x10149cb6
mov ecx, dword [edi + 0x10]
jmp 0x10149cd4
test cl, 1
je 0x10149cbf
xor ecx, ecx
jmp 0x10149cd4
mov dl, 1
mov ecx, edi
call fcn.100fffa0
mov edx, dword [ebp - 0x24]
mov ecx, eax
jmp 0x10149cd4
mov ecx, 0x1024c6da
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x64]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x40], eax
or eax, 6
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], edi
and edi, 0xefffaf7f
mov dword [esi + 0x24], eax
or edi, 0x201
mov eax, dword [esi + 0x10]
mov dword [esi + 0x20], edi
shl edx, 4
mov dword [ebp - 0x24], edx
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x48], ebx
mov ebx, dword [esi + 0x68]
mov dword [ebp - 0x4c], ebx
mov bl, byte [esi + 0x58]
mov byte [esi + 0x58], 0
mov edi, dword [edi + eax + 4]
mov edx, dword [edx + eax]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [edi + 4]
mov byte [ebp - 0x16], bl
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [eax]
push esi
mov dword [ebp - 0x14], edx
mov al, byte [eax + 0xc]
mov byte [ebp - 0x15], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x34], eax
call fcn.101499c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a047
mov eax, dword [ebp - 0x34]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
je 0x10149dc2
mov eax, dword [ebx + 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 0x10149dc2
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x10149da6
cmp dword [ebp - 0xc], eax
jl 0x10149dc2
jg 0x10149da6
cmp dword [ebp - 0x10], eax
jbe 0x10149dc2
mov ecx, dword [ebp - 0x1c]
mov edx, esi
push str.output_file_already_exists
mov ebx, 1
call fcn.100e0470
add esp, 4
jmp 0x1014a047
mov ecx, edi
call fcn.100f4ce0
cmp dword [esi + 0x5c], 0
mov dword [ebp - 0x2c], eax
je 0x10149df1
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.101a50d0
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x10149df1
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0xc]
mov ecx, ebx
mov edx, dword [edx + 0x50]
call fcn.100f49b0
xor edx, edx
mov ecx, edi
call fcn.100f4a30
mov edx, eax
mov ecx, ebx
call fcn.100f4a30
mov edx, 0x21
mov ecx, ebx
call fcn.100f4b30
mov edx, dword [ebp - 0x1c]
mov ecx, esi
push str.BEGIN
call fcn.101498e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014a047
xor edx, edx
mov ecx, edi
cmp dword [ebp - 0x28], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100f5350
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014a047
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp byte [eax + 5], 5
jne 0x10149e72
mov dword [esi + 0x5c], ebx
mov edx, dword [edi + 4]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edx, dword [edx + 0x24]
push 0
push dword [ebp - 0x2c]
call fcn.100f4c00
add esp, 8
test eax, eax
jne 0x1014a042
cmp byte [ebp - 0x15], al
jne 0x10149ead
mov edx, dword [esi + 0x5c]
mov ecx, ebx
push eax
push dword [ebp - 0x2c]
call fcn.100f4c00
add esp, 8
test eax, eax
jne 0x1014a042
cmp byte [esi + 0x51], 0
jne 0x1014a042
mov al, byte [esi + 0x54]
test al, al
js 0x10149ec3
movsx eax, al
jmp 0x10149eca
mov ecx, edi
call fcn.100f4e70
mov edx, eax
mov ecx, ebx
call fcn.100f4df0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push dword [ebp - 0x1c]
mov byte [esi + 0xa4], al
push esi
call fcn.101499c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a047
push dword [ebp - 0x14]
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
push dword [ebp - 0x1c]
push esi
call fcn.101499c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a047
push dword [ebp - 0x14]
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 - 0x1c]
push esi
call fcn.101499c0
and dword [esi + 0x18], 0xfffffffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a047
push dword [ebp - 0x14]
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push dword [ebp - 0x1c]
push esi
call fcn.101499c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1014a047
mov dword [ebp - 0x14], eax
mov cl, byte [edi + 9]
movzx ebx, byte [eax + 0x10261b8c]
mov eax, dword [edi + 4]
mov dword [ebp - 0x30], eax
test cl, cl
je 0x10149f8b
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x10149f8b
mov ecx, edi
call fcn.100f22f0
mov cl, byte [edi + 9]
mov eax, dword [ebp - 0x30]
cmp ebx, 0xf
jne 0x10149f9a
mov eax, dword [eax]
mov ebx, dword [eax + 0x64]
add ebx, dword [edi + 0x14]
jmp 0x10149fa6
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + ebx*4 + 0x24]
bswap ebx
test cl, cl
je 0x10149fb7
add dword [edi + 0xc], 0xffffffff
jne 0x10149fb7
mov ecx, edi
call fcn.100f22b0
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx + 0x10261b8d]
movzx edx, byte [ecx + 0x10261b8c]
add eax, ebx
mov ecx, dword [ebp - 0x20]
push eax
call fcn.100fcd00
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014a047
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jl 0x10149f61
cmp dword [ebp - 0x28], ebx
jne 0x1014a003
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.100feca0
mov ebx, eax
test ebx, ebx
jne 0x1014a047
mov ecx, dword [ebp - 0x20]
call fcn.100f64e0
mov ebx, eax
test ebx, ebx
jne 0x1014a047
cmp dword [ebp - 0x28], eax
jne 0x1014a047
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.100f4e70
mov edx, eax
mov ecx, edi
call fcn.100f4df0
mov eax, dword [ebx + 4]
mov ecx, edi
push 1
push dword [ebp - 0x2c]
mov edx, dword [eax + 0x24]
call fcn.100f4c00
add esp, 8
mov ebx, eax
jmp 0x1014a047
mov ebx, 7
mov eax, dword [ebp - 0x40]
or edx, 0xffffffff
mov dword [esi + 0x18], eax
mov ecx, edi
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x68], eax
mov al, byte [ebp - 0x16]
push 1
push 0xffffffffffffffff
mov byte [esi + 0xa4], 0
mov byte [esi + 0x58], al
call fcn.100f4c00
mov edi, dword [ebp - 0x3c]
add esp, 8
mov byte [esi + 0x4f], 1
test edi, edi
je 0x1014a0a4
mov ecx, dword [edi + 4]
call fcn.100f4830
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov ecx, esi
call fcn.101231a0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d506b
mov esp, ebp
pop ebp
ret