Function at 0x100993c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x4f]
test ecx, ecx
jne 0x100993fe
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1009c2c0
add esp, 0xc
mov eax, 1
jmp 0x100999c3
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xac], 1
jle 0x10099429
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1009c2c0
add esp, 0xc
mov eax, 1
jmp 0x100999c3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
cmp dword [ebp + 0x14], 0
je 0x10099497
mov eax, dword [ebp + 0x14]
push eax
call fcn.10040a50
add esp, 4
cmp eax, 3
je 0x10099468
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1009c2c0
add esp, 0xc
mov eax, 1
jmp 0x100999c3
mov eax, dword [ebp + 0x14]
push eax
call fcn.100409b0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
or edx, 6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
jmp 0x1009949e
mov dword [ebp - 0x24], 0x1016b425
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x5c], edx
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 0x58]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
or ecx, 0x201
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
or edx, 6
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
and edx, 0xefffaf7f
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x58], 0
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1007abf0
add esp, 4
push eax
call fcn.10090c20
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
push edx
push str.ATTACH__Q_AS_vacuum_db
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10059300
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 8], 0
je 0x1009958d
jmp 0x10099935
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x10099625
mov edx, dword [ebp - 0xc]
push edx
call fcn.1007abf0
add esp, 4
push eax
call fcn.10090af0
add esp, 4
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x10099616
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.1008fbf0
add esp, 8
test eax, eax
jne 0x100995f5
cmp dword [ebp - 0x50], 0
jl 0x10099616
jg 0x100995f5
cmp dword [ebp - 0x54], 0
jbe 0x10099616
mov dword [ebp - 8], 1
push str.output_file_already_exists
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1009c2c0
add esp, 0xc
jmp 0x10099935
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
or eax, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.10078c80
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1007b250
add esp, 8
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.1007b410
add esp, 8
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1007b410
add esp, 8
push 0x21
mov edx, dword [ebp - 0xc]
push edx
call fcn.1007b3d0
add esp, 8
push str.BEGIN
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10059210
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100996a0
jmp 0x10099935
cmp dword [ebp + 0x14], 0
jne 0x100996af
mov dword [ebp - 0x2c], 2
jmp 0x100996b6
mov dword [ebp - 0x2c], 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.100777e0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100996d6
jmp 0x10099935
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1007abf0
add esp, 4
push eax
call fcn.10090c10
add esp, 4
cmp eax, 5
jne 0x100996fa
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x5c], 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10078cc0
add esp, 4
push eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.1007b2e0
add esp, 0x10
test eax, eax
jne 0x1009974b
cmp dword [ebp - 0x3c], 0
jne 0x10099740
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.1007b2e0
add esp, 0x10
test eax, eax
jne 0x1009974b
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x51]
test edx, edx
je 0x10099757
mov dword [ebp - 8], 7
jmp 0x10099935
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x54]
test ecx, ecx
jl 0x1009976e
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x54]
mov dword [ebp - 0x30], eax
jmp 0x1009977d
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10078b30
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.1007b190
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x34]
mov byte [ecx + 0xa4], dl
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10059300
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100997c0
jmp 0x10099935
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10059300
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100997e7
jmp 0x10099935
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xa4], 0
mov ecx, dword [ebp - 0x1c]
push ecx
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10059300
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
and edx, 0xfffffffb
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
cmp dword [ebp - 8], 0
je 0x10099827
jmp 0x10099935
mov ecx, dword [ebp - 0x1c]
push ecx
push str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10059300
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1009984e
jmp 0x10099935
mov dword [ebp - 0x14], 0
jmp 0x10099860
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xa
jge 0x100998b6
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x1013cc2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10078c10
add esp, 0xc
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x1013cc2d]
add ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x1013cc2c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1007b650
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100998b4
jmp 0x10099935
jmp 0x10099857
cmp dword [ebp + 0x14], 0
jne 0x100998cf
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.100780e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100998d7
jmp 0x10099935
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10077f20
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100998ee
jmp 0x10099935
cmp dword [ebp + 0x14], 0
jne 0x1009990d
mov edx, dword [ebp - 0xc]
push edx
call fcn.10078b30
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.1007b190
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x10099935
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10078cc0
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.1007b2e0
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa4], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x48]
mov dword [ecx + 0x64], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x68], ecx
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 1]
mov byte [edx + 0x58], al
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1007b2e0
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x4f], 1
cmp dword [ebp - 0x18], 0
je 0x100999b4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call fcn.10077d20
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100980b0
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret