Function at 0x10094830
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x24], 0
push edi
mov ebx, ecx
cmp byte [esi + 0x51], 0
jne 0x10094871
mov edx, dword [ebx]
test edx, edx
je 0x10094857
mov ecx, esi
call fcn.10111980
mov edx, str.cannot_VACUUM_from_within_a_transaction
mov ecx, esi
call fcn.10111330
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbc], 1
jle 0x100948a1
mov edx, dword [ebx]
test edx, edx
je 0x10094887
mov ecx, esi
call fcn.10111980
mov edx, str.cannot_VACUUM___SQL_statements_in_progress
mov ecx, esi
call fcn.10111330
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x100948fe
movzx eax, word [ecx + 8]
and eax, 0x3f
cmp byte [eax + 0x1013bc38], 3
je 0x100948e5
mov edx, dword [ebx]
test edx, edx
je 0x100948cb
mov ecx, esi
call fcn.10111980
mov edx, str.non_text_filename
mov ecx, esi
call fcn.10111330
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.100e6550
mov ecx, dword [esi + 0x3c]
add esp, 4
and ecx, 0xfffffffe
mov edx, eax
or ecx, 6
mov dword [esi + 0x3c], ecx
jmp 0x10094903
mov edx, 0x10127dbc
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x70]
mov dword [ebp - 0x34], eax
or eax, 0x201
mov dword [ebp - 0x30], edi
or edi, 6
mov dword [esi + 0x18], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
and dword [esi + 0x20], 0xefffafff
mov dword [ebp - 0x44], ecx
mov cl, byte [esi + 0x5a]
shl edi, 4
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x24], ecx
and dword [esi + 0x24], 0xfffffffe
mov byte [esi + 0x5a], 0
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
jne 0x10094987
cmp byte [eax + 0x10], 0
mov dword [ebp - 0x18], 0
je 0x1009498e
mov dword [ebp - 0x18], 1
mov eax, dword [esi + 0x14]
push edx
push str.ATTACH__Q_AS_vacuum_db
push ebx
push esi
mov dword [ebp - 0x1c], eax
call fcn.10094e00
mov edi, eax
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x3c], eax
test edi, edi
jne 0x10094c5d
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], edi
je 0x10094a1e
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
movlpd qword [ebp - 0x50], xmm0
mov ecx, dword [eax]
test ecx, ecx
je 0x10094a1a
lea edx, [ebp - 0x50]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 8
test eax, eax
jne 0x100949ff
cmp dword [ebp - 0x4c], eax
jl 0x10094a1a
jg 0x100949ff
cmp dword [ebp - 0x50], eax
jbe 0x10094a1a
push str.output_file_already_exists
mov edx, esi
mov ecx, ebx
mov edi, 1
call fcn.10111220
add esp, 4
jmp 0x10094c5d
or dword [esi + 0x18], 8
mov ecx, dword [ebp - 8]
call fcn.100f8b80
cmp dword [esi + 0x60], 0
mov dword [ebp - 0x14], eax
je 0x10094a51
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.100438d0
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x10094a51
mov dword [esi + 0x60], 0
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + eax + 0xc]
mov edx, dword [edx + 0x50]
call fcn.100f8dc0
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.100f8d70
mov edx, eax
mov ecx, edi
call fcn.100f8d70
mov edx, 0x21
mov ecx, edi
call fcn.100f8ce0
push str.BEGIN
mov edx, ebx
mov ecx, esi
call fcn.10094e50
mov edi, eax
add esp, 4
test edi, edi
jne 0x10094c5d
mov ecx, dword [ebp - 8]
xor edx, edx
cmp dword [ebp + 0xc], edx
push eax
mov eax, 2
cmove edx, eax
call fcn.100f8310
mov edi, eax
add esp, 4
test edi, edi
jne 0x10094c5d
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp byte [eax + 5], 5
jne 0x10094ad8
cmp dword [ebp + 0xc], edi
jne 0x10094ad8
mov dword [esi + 0x60], edi
mov eax, dword [ecx + 4]
mov edi, dword [ebp - 0x10]
mov ecx, edi
push 0
push dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
call fcn.100f8bf0
add esp, 8
test eax, eax
jne 0x10094c58
cmp dword [ebp - 0x18], eax
jne 0x10094b16
mov edx, dword [esi + 0x60]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.100f8bf0
add esp, 8
test eax, eax
jne 0x10094c58
cmp byte [esi + 0x53], 0
jne 0x10094c58
mov al, byte [esi + 0x56]
test al, al
js 0x10094b2c
movsx eax, al
jmp 0x10094b34
mov ecx, dword [ebp - 8]
call fcn.100f89f0
mov edx, eax
mov ecx, edi
call fcn.100f8a40
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push ebx
push esi
mov byte [esi + 0xb0], al
call fcn.10094e00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10094c5d
push dword [ebp - 0xc]
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push ebx
push esi
call fcn.10094e00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10094c5d
push dword [ebp - 0xc]
mov byte [esi + 0xb0], al
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
push ebx
push esi
call fcn.10094e00
and dword [esi + 0x18], 0xfffffffb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10094c5d
push dword [ebp - 0xc]
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push ebx
push esi
call fcn.10094e00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10094c5d
xor ebx, ebx
movzx edx, byte [ebx + 0x101356c4]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 8]
push eax
call fcn.100f0ce0
movzx eax, byte [ebx + 0x101356c5]
add esp, 4
add eax, dword [ebp - 0x2c]
movzx edx, byte [ebx + 0x101356c4]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.100f0c10
mov edi, eax
add esp, 4
test edi, edi
jne 0x10094c5d
add ebx, 2
cmp ebx, 0xa
jl 0x10094bc2
mov ebx, dword [ebp - 0x10]
cmp dword [ebp + 0xc], eax
jne 0x10094c1b
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.100ee740
mov edi, eax
test edi, edi
jne 0x10094c5d
mov ecx, ebx
call fcn.100f76f0
mov edi, eax
test edi, edi
jne 0x10094c5d
cmp dword [ebp + 0xc], eax
jne 0x10094c5d
mov ecx, ebx
call fcn.100f89f0
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.100f8a40
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 8]
push 1
push dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
call fcn.100f8bf0
add esp, 8
mov edi, eax
jmp 0x10094c5d
mov edi, 7
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
mov ecx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x74], eax
mov al, byte [ebp - 1]
push 1
push 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x5a], al
call fcn.100f8bf0
mov ebx, dword [ebp - 0x24]
add esp, 8
mov byte [esi + 0x51], 1
test ebx, ebx
je 0x10094cc7
mov ecx, dword [ebx + 4]
call fcn.100f8e60
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.100c30d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret