Function at 0x6389ec
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], eax
mov ebx, edx
mov dword [ebp - 0x48], 1
cmp byte [ebx + 0x55], 0
jne 0x638a26
mov ecx, str.cannot_VACUUM_from_within_a_transaction
mov edx, ebx
mov eax, edi
call fcn.0064d0d4
mov eax, 1
jmp 0x638e7f
cmp dword [ebx + 0xb8], 1
jle 0x638a47
mov ecx, str.cannot_VACUUM___SQL_statements_in_progress
mov edx, ebx
mov eax, edi
call fcn.0064d0d4
mov eax, 1
jmp 0x638e7f
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], edx
cmp dword [ebp + 8], 0
je 0x638a8c
mov eax, dword [ebp + 8]
call fcn.005e5c8c
cmp eax, 3
je 0x638a78
mov ecx, str.non_text_filename
mov edx, ebx
mov eax, edi
call fcn.0064d0d4
mov eax, 1
jmp 0x638e7f
mov eax, dword [ebp + 8]
call fcn.005e5c6c
and dword [ebx + 0x3c], 0xfffffffe
or dword [ebx + 0x3c], 6
mov esi, eax
jmp 0x638a91
mov esi, 0x67df31
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x14], eax
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x70]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x74]
mov dword [ebp - 0x24], ecx
mov al, byte [ebx + 0x5e]
mov byte [ebp - 0x2d], al
or dword [ebx + 0x20], 0x201
or dword [ebx + 0x18], 6
and dword [ebx + 0x20], 0xefffafff
and dword [ebx + 0x24], 0xfffffffe
mov byte [ebx + 0x5e], 0
mov eax, dword [ebp - 4]
shl eax, 4
mov edx, dword [ebx + 0x10]
mov ecx, dword [edx + eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00630868
call fcn.0064082c
mov dword [ebp - 0x38], eax
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x40], edx
push esi
push str.ATTACH__Q_AS_vacuum_db
push edi
push ebx
call fcn.00638904
add esp, 0x10
mov esi, eax
mov ecx, dword [ebp - 0x2c]
test esi, esi
mov dword [ebx + 0x3c], ecx
jne 0x638e0b
mov ecx, dword [ebp - 0x40]
shl ecx, 4
add ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
cmp dword [ebp + 8], 0
je 0x638bba
mov eax, dword [ebp - 0xc]
call fcn.00630868
call fcn.00640a94
mov ecx, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
cmp dword [ecx], 0
je 0x638b9d
lea edx, [ebp - 0x50]
mov eax, ecx
call fcn.0064e8dc
test eax, eax
jne 0x638b85
cmp dword [ebp - 0x4c], 0
jne 0x638b83
cmp dword [ebp - 0x50], 0
jbe 0x638b9d
jmp 0x638b85
jle 0x638b9d
mov esi, 1
mov ecx, str.output_file_already_exists
mov edx, ebx
mov eax, edi
call fcn.0064d0d4
jmp 0x638e0b
or dword [ebx + 0x18], 8
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x10]
shl edx, 4
mov eax, dword [ebx + 0x20]
and eax, 0x38
movzx edx, byte [ecx + edx + 8]
or eax, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
call fcn.006297fc
mov dword [ebp - 0x3c], eax
cmp dword [ebx + 0x64], 0
je 0x638be7
lea ecx, [ebp - 0x54]
mov eax, ebx
push ecx
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 4]
call fcn.006091ac
cmp dword [ebp - 0x54], 0
je 0x638be7
xor ecx, ecx
mov dword [ebx + 0x64], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x10]
shl eax, 4
mov ecx, dword [edx + eax + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
call fcn.00629690
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.006296b8
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.006296b8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
or edx, 0x20
call fcn.00629714
mov ecx, str.BEGIN
mov edx, edi
mov eax, ebx
call fcn.0063884c
mov esi, eax
test esi, esi
jne 0x638e0b
cmp dword [ebp + 8], 0
jne 0x638c46
mov edx, 2
jmp 0x638c48
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00629f98
mov esi, eax
test esi, esi
jne 0x638e0b
mov eax, dword [ebp - 8]
call fcn.00630868
call fcn.00640df0
cmp eax, 5
jne 0x638c79
cmp dword [ebp + 8], 0
jne 0x638c79
xor edx, edx
mov dword [ebx + 0x64], edx
push 0
mov eax, dword [ebp - 8]
call fcn.006297e8
mov edx, eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0062973c
test eax, eax
jne 0x638cb4
cmp dword [ebp - 0x38], 0
jne 0x638cae
push 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x64]
mov eax, dword [ebp - 0xc]
call fcn.0062973c
test eax, eax
jne 0x638cb4
cmp byte [ebx + 0x57], 0
je 0x638cbe
mov esi, 7
jmp 0x638e0b
cmp byte [ebx + 0x5a], 0
jl 0x638cca
movsx edx, byte [ebx + 0x5a]
jmp 0x638cd4
mov eax, dword [ebp - 8]
call fcn.0062990c
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.006298a8
mov cl, byte [ebp - 0x40]
mov byte [ebx + 0xb0], cl
mov ecx, dword [ebp - 0x44]
push ecx
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
push edi
push ebx
call fcn.00638904
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x638e0b
mov eax, dword [ebp - 0x44]
push eax
push str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
push edi
push ebx
call fcn.00638904
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x638e0b
mov byte [ebx + 0xb0], 0
mov eax, dword [ebp - 0x44]
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
push edi
push ebx
call fcn.00638904
add esp, 0x10
mov esi, eax
and dword [ebx + 0x18], 0xfffffffb
test esi, esi
jne 0x638e0b
mov eax, dword [ebp - 0x44]
push eax
push str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
push edi
push ebx
call fcn.00638904
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x638e0b
xor eax, eax
mov edi, 0x67df24
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x5c]
xor edx, edx
mov dl, byte [edi]
mov eax, dword [ebp - 8]
call fcn.006306a4
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 1]
add ecx, dword [ebp - 0x5c]
xor edx, edx
mov dl, byte [edi]
call fcn.006306f0
mov esi, eax
test esi, esi
jne 0x638e0b
add dword [ebp - 0x60], 2
add edi, 2
cmp dword [ebp - 0x60], 0xa
jl 0x638d6e
cmp dword [ebp + 8], 0
jne 0x638db7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00639888
mov esi, eax
test esi, esi
jne 0x638e0b
mov eax, dword [ebp - 0xc]
call fcn.0062a968
mov esi, eax
test esi, esi
jne 0x638e0b
cmp dword [ebp + 8], 0
jne 0x638de1
mov eax, dword [ebp - 0xc]
call fcn.0062990c
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.006298a8
cmp dword [ebp + 8], 0
jne 0x638e0b
mov eax, dword [ebp - 0xc]
call fcn.006297fc
mov dword [ebp - 0x3c], eax
push 1
mov eax, dword [ebp - 0xc]
call fcn.006297e8
mov edx, eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0062973c
mov esi, eax
mov byte [ebx + 0xb0], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x24], edx
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x68], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebx + 0x70], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x74], ecx
xor ecx, ecx
mov al, byte [ebp - 0x2d]
or edx, 0xffffffff
mov byte [ebx + 0x5e], al
push 1
mov eax, dword [ebp - 8]
call fcn.0062973c
mov byte [ebx + 0x55], 1
cmp dword [ebp - 0x34], 0
je 0x638e76
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 4]
call fcn.00629604
mov edx, dword [ebp - 0x34]
xor eax, eax
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, ebx
call fcn.005cdfd0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4