Function at 0x50eaa0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x55]
test ecx, ecx
jne 0x50eade
push str.cannot_VACUUM_from_within_a_transaction
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00512100
add esp, 0xc
mov eax, 1
jmp 0x50f0c3
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xbc], 1
jle 0x50eb09
push str.cannot_VACUUM___SQL_statements_in_progress
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00512100
add esp, 0xc
mov eax, 1
jmp 0x50f0c3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
cmp dword [ebp + 0x14], 0
je 0x50eb77
mov eax, dword [ebp + 0x14]
push eax
call fcn.004b20d0
add esp, 4
cmp eax, 3
je 0x50eb48
push str.non_text_filename
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00512100
add esp, 0xc
mov eax, 1
jmp 0x50f0c3
mov eax, dword [ebp + 0x14]
push eax
call fcn.004b2030
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 0x50eb7e
mov dword [ebp - 0x24], 0x60390c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 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 + 0x68]
mov edx, dword [eax + 0x6c]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x5e]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
or eax, 0x201
mov ecx, dword [edx + 0x24]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
or ecx, 6
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
and ecx, 0xefffafff
mov edx, dword [eax + 0x24]
and edx, 0xfffffffe
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x5e], 0
mov edx, dword [ebp + 0x10]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004eb060
add esp, 4
push eax
call fcn.00505180
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.ATTACH__Q_AS_vacuum_db
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c2ac0
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x3c], edx
cmp dword [ebp - 8], 0
je 0x50ec7b
jmp 0x50f029
mov eax, dword [ebp - 0x34]
shl eax, 4
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x50ed13
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004eb060
add esp, 4
push eax
call fcn.00505050
add esp, 4
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov edx, dword [ebp - 0x28]
cmp dword [edx], 0
je 0x50ed04
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005040d0
add esp, 8
test eax, eax
jne 0x50ece3
cmp dword [ebp - 0x48], 0
jl 0x50ed04
jg 0x50ece3
cmp dword [ebp - 0x4c], 0
jbe 0x50ed04
mov dword [ebp - 8], 1
push str.output_file_already_exists
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00512100
add esp, 0xc
jmp 0x50f029
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
or edx, 8
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004e9440
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0x10]
shl edx, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 0xc]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004eb680
add esp, 8
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004eb860
add esp, 8
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004eb860
add esp, 8
push 0x21
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004eb820
add esp, 8
push str.BEGIN
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c29d0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50ed8e
jmp 0x50f029
cmp dword [ebp + 0x14], 0
jne 0x50ed9d
mov dword [ebp - 0x2c], 2
jmp 0x50eda4
mov dword [ebp - 0x2c], 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004e7ed0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50edc4
jmp 0x50f029
mov eax, dword [ebp - 0x10]
push eax
call fcn.004eb060
add esp, 4
push eax
call fcn.00505170
add esp, 4
cmp eax, 5
jne 0x50edee
cmp dword [ebp + 0x14], 0
jne 0x50edee
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x64], 0
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004e9430
add esp, 4
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004eb710
add esp, 0x10
test eax, eax
jne 0x50ee3f
cmp dword [ebp - 0x3c], 0
jne 0x50ee34
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004eb710
add esp, 0x10
test eax, eax
jne 0x50ee3f
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x57]
test ecx, ecx
je 0x50ee4b
mov dword [ebp - 8], 7
jmp 0x50f029
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x5a]
test eax, eax
jl 0x50ee62
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x5a]
mov dword [ebp - 0x30], edx
jmp 0x50ee71
mov eax, dword [ebp - 0x10]
push eax
call fcn.004e92e0
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004eb5c0
add esp, 8
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x34]
mov byte [eax + 0xb0], cl
mov edx, dword [ebp - 0x1c]
push edx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c2ac0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50eeb4
jmp 0x50f029
mov edx, dword [ebp - 0x1c]
push edx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c2ac0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50eedb
jmp 0x50f029
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xb0], 0
mov eax, dword [ebp - 0x1c]
push eax
push str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c2ac0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
and ecx, 0xfffffffb
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
cmp dword [ebp - 8], 0
je 0x50ef1b
jmp 0x50f029
mov eax, dword [ebp - 0x1c]
push eax
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c2ac0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50ef42
jmp 0x50f029
mov dword [ebp - 0x14], 0
jmp 0x50ef54
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xa
jge 0x50efaa
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x5bdd68]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004e93c0
add esp, 0xc
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x5bdd69]
add eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x5bdd68]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004ec220
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50efa8
jmp 0x50f029
jmp 0x50ef4b
cmp dword [ebp + 0x14], 0
jne 0x50efc3
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004e87d0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50efcb
jmp 0x50f029
mov eax, dword [ebp - 0xc]
push eax
call fcn.004e8610
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50efe2
jmp 0x50f029
cmp dword [ebp + 0x14], 0
jne 0x50f001
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004e92e0
add esp, 4
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004eb5c0
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x50f029
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004e9430
add esp, 4
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004eb710
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xb0], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], edx
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 1]
mov byte [eax + 0x5e], cl
push 1
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call fcn.004eb710
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x55], 1
cmp dword [ebp - 0x18], 0
je 0x50f0b4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call fcn.004e8420
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0050d740
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret